Commit Graph

80 Commits

Author SHA1 Message Date
Jeremiah Leary 9c0fc9fb2a Removing unused code. 2020-11-24 19:34:05 -06:00
Jeremiah Leary caa686c85c Updates for severity feature:
1)  Fixed several solution output messages
  2)  Fixed issue with JUnit generation
  3)  Updated tests
2020-11-15 14:21:29 -06:00
Jeremiah Leary b50809347e Fixing bug with architecture_027 in which consecutive skip lines were not fixed. 2020-11-10 07:38:33 -06:00
Jeremiah Leary bea43bcf15 Removing all calls to line.py.
NOTE:  Still need to keep it around to support testing of the tokenizer.
2020-11-09 21:46:59 -06:00
Jeremiah Leary 945c005299 Refactored remove_blank_lines_above_item_rule to use _analyze_regions method. 2020-08-09 10:12:50 -05:00
Jeremiah Leary 4468defa09 Updates for issue #393:
1)  Refactored new base rules:
      a)  Including debug message
      b)  Fixed reporting of solutions

  2)  Updated tests
2020-07-23 20:51:27 -05:00
Jeremiah Leary a6083d3f53 Updates for issue #399
Addressing codeclimate issues.
2020-07-03 09:10:11 -05:00
Jeremiah Leary 203f524c1c Updates for issue #399
Adding rule semicolon_001 to check for consecutive semicolons:

  1)  Added documentation
  2)  Added test
  3)  Added helper functions to vsg.utils
  4)  Added rule semicolon_001
2020-07-03 08:47:39 -05:00
Jeremiah Leary 3e987c7a39 Updates for issue #427:
Fixed corner case in detecting port assignments in utils.extract_port_assignment:

  1)  Update instantiation_021 test case
  2)  Updated code to address issue
2020-06-21 10:08:29 -05:00
Jeremiah Leary c41bbc1dc5 Updates for issue #427:
VSG was not handling more than two port assignments on a single line correctly for rule instantiation_021:

  1)  Updated tests to expose issue
  2)  Added tokenizing logic
  3)  Added three new utility functions
      a) extract_port_assignments
      b) extract_string_before_string
      c) extract_string_after_string
  4)  Updated code to handle multiple port assignments correctly
2020-06-21 09:21:38 -05:00
Jeremiah Leary 16503930e6 Updates for issue #420:
VSG was considering commas inside parenthesis as a delimiter for a port inside an instantiation.

  1)  Updated tests to expose the issue
  2)  Updated code to make test pass
2020-06-20 13:17:19 -05:00
Jeremiah Leary 8334d0d32a Updates for issue #407:
Rule instantiation_024 could not handle functions in generic or port assignments:

  1)  Added test to expose the issue
  2)  Added remove_parenthesis function to utils
  3)  Updated rule instantiation_024 to handle functions in generic/port assignments
2020-06-06 15:50:21 -05:00
Jeremiah Leary cf081d778b Updates for issue #406:
Rule port_013 was including a port assignment when determining how many ports were defined on a single line.

  1)  Added tests to expose the issue
  2)  Updated code to address the port_013 issue
2020-06-06 14:45:20 -05:00
Jeremiah Leary 37d6fcb9b8 Updates for issue #389:
VSG was analyzing comments for rule instantiation_011:

  1)  Updated test to expose the issue
  2)  Updated code to make the test pass
2020-05-09 12:21:42 -05:00
Jeremiah C Leary 6b4a45791d Updates for issue #362
Changing utils.get_violation_linenumber to utils.get_violation_line_number.
2020-04-01 21:11:38 -05:00
Jeremiah C Leary e60c516548 Updates for Codacy and Codeclimate issues 2020-03-31 21:34:38 -05:00
Jeremiah C Leary 7d85a98db4 Updates for issue #362:
Interim commit to move all rules to new violation dictionary format.
2020-03-29 13:09:38 -05:00
Jeremiah C Leary bfccd5b80d Updates for issue #325:
The utils.change_word function was ignoring case.

  1)  Added tests for case
  2)  Updated code
2020-02-23 15:09:12 -06:00
Jeremiah C Leary 650a4b13b9 Updates for issue #314:
utils.extract_label will now extract a label from the beginning or end of a line.

It calls either utils.extract_begin_label or utils.extract_end_label.
2020-02-23 11:22:22 -06:00
Jeremiah C Leary f81a777bc1 Updates for issue #335:
Updated architecture tests to use a dictionary for the violation list.

  1)  Updated code
      a)  Added utils.create_violation_dict function
      b)  Updated architecture rules
  2)  Updated tests
2020-02-16 09:12:39 -06:00
Jeremiah Leary 322050acc1
Merge pull request #329 from willkamp/quickfixes
Fixes required to handle double hyphens in quoted strings so they are not considered a comment marker.
2020-01-24 11:34:59 -06:00
Jeremiah Leary ad07e2ed58
Merge pull request #327 from m-kru/first_keyword
Replace extract_first_keyword calls with extract_words function.
2020-01-24 11:32:21 -06:00
Michał Kruszewski e3805c9d54 Replace extract_first_keyword calls with extract_words function. 2020-01-20 21:17:41 +01:00
Michał Kruszewski 985ea8da9c Make architecture rules inherit from case rule. 2020-01-20 20:59:49 +01:00
Michał Kruszewski 3dc7d9d7d1 Make extract functions operate on lineNoComment. 2020-01-10 11:40:26 +01:00
Will Kamp 9e701cfd45 Update remove comment function. Now handles quoted double hyphens. Strips trailing whitespace. 2020-01-08 17:50:28 +13:00
Will Kamp 822eae8f5f Fix for stripping comments that understands that double quoted stings with hyphens in it doesn't count. 2020-01-08 10:09:17 +13:00
Michał Kruszewski c9e5dffefe Make entity and component rule 012 inherit from case_rule. 2020-01-04 10:34:51 +01:00
Michał Kruszewski 380d6856f9 Fix case rules for instantiation rules. 2020-01-02 11:58:32 +01:00
Michał Kruszewski 49aa53ab61 Replace extract_word function with extract_words. 2019-12-28 11:39:32 +01:00
Michał Kruszewski d166aa461b Fix case rules for port rules. 2019-12-11 21:42:10 +01:00
Jeremiah C Leary 1a5aa37f7a Updates for issue #235:
Adding parenthesis alignment to rule concurrent_003.

  1)  Updated documentation
  2)  Added tests
  3)  Updated rule concurrent_003

NOTE:  This in an interim commit before refactoring.
2019-12-04 08:30:41 -06:00
Jeremiah C Leary dd4ff0bb08 Updates for issue #295
Remerging pull request #293.
2019-12-01 16:57:57 -06:00
Jeremiah C Leary fa3e67d598 Updates for issue #276:
Added two rules to handle setting the case for range keywords **to** and **downto**.

  1)  Added documentation
  2)  Added tests
  3)  Added rules range_001 and range_002
2019-11-29 08:38:30 -06:00
Jeremiah Leary ed7738c341
Revert "Make instantiation rule_011 inherit from case_rule." 2019-11-23 07:12:04 -06:00
Jeremiah Leary a02e679113
Merge pull request #293 from m-kru/inst_rule_011
Make instantiation rule_011 inherit from case_rule.
2019-11-23 08:07:43 -05:00
Jeremiah C Leary c8932ae3c3 Fixing import issue so it will work with python 2.7 2019-11-23 07:00:13 -06:00
Michał Kruszewski 2a20fbffcf Make instantiation rule_011 inherit from case_rule.
During this change it turned out that there was a bug in how
case was fixed for case rule. It is now fixed, because words that
needs fixing are now stored per line, not per file like it was
previously.
2019-11-21 18:28:57 +01:00
Michał Kruszewski c7aa7a7f36 Fix bug where no type on signal declaration line raised exception. 2019-11-21 14:55:22 +01:00
Michał Kruszewski 4613eef819 Fix import line in vsg/utils.py 2019-11-20 18:51:27 +01:00
Jeremiah C Leary c9f44e9e32 Updates for issue #282:
VSG would crash if the closing ; was not on the same line as the signal keyword.
Created rule signal_015 to handle the general case of multiple signals declared in a single signal declaration over multiple lines.

  1)  Created test cases
  2)  Updated documentation
  3)  Added rule signal_015
2019-11-10 06:35:50 -06:00
Jeremiah C Leary ac3fb3a385 Updates for issue #283:
Whitespace_011 would add a space between a - and a number.
This is a partial fix to not flag this issue.
Additional work is needed to handle the generic case.
2019-10-27 21:02:12 -05:00
Michał Kruszewski 996febb7a0 Add prefix and suffix rules. 2019-10-16 11:53:58 +02:00
Jeremiah C Leary f866d1d89b Updates for Codacy issues. 2019-10-15 18:40:43 -05:00
Michał Kruszewski 837d2b67b2 Small formatting improvements. 2019-10-07 20:43:45 +02:00
Michał Kruszewski c962881e7a Make _extract abstract method for case_rule class. 2019-10-07 20:30:27 +02:00
Michał Kruszewski 957ef8702d Refactor extracting VHDL keywords. 2019-10-07 19:46:17 +02:00
Michał Kruszewski c25421efac Make case rule 018 use case_rule as a base. 2019-10-07 18:25:50 +02:00
Michał Kruszewski ed63a1e65e Make case rule 016 use case_rule as a base. 2019-10-07 18:17:21 +02:00
Michał Kruszewski 215dae1647 Make function rule 004 use case_rule as a base. 2019-10-07 17:57:57 +02:00