Commit Graph

61 Commits

Author SHA1 Message Date
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
Michał Kruszewski 834071f7b5 Make case rule 015 use case_rule as a base. 2019-10-07 17:45:15 +02:00
Michał Kruszewski a600127dc4 Make type rule 013 use case_rule as a base. 2019-10-07 17:33:26 +02:00
Michał Kruszewski 694625b024 Make case rule 014 use case_rule as a base. 2019-10-07 16:13:27 +02:00
Michał Kruszewski 0a9e172999 Make component rule 004 use case_rule as a base. 2019-10-07 14:55:50 +02:00
Michał Kruszewski abfa9cab24 Replace lowercase_word_after_colon_rule with case_rule. 2019-10-07 14:26:12 +02:00
Michał Kruszewski b2b5e822d5 Remove uppercase_end_label rule. 2019-10-07 14:08:48 +02:00
Michał Kruszewski c63da7b0d5 Make port rule 010 use case_rule as a base. 2019-10-07 13:46:59 +02:00
Michał Kruszewski ee89f6c246 Make component rule 008 use case_rule as a base. 2019-10-07 13:31:11 +02:00
Michał Kruszewski 1ab6239b88 Make entity rule 008 use case_ruse as a base. 2019-10-07 13:26:40 +02:00
Michał Kruszewski 3088c21dac Make instantiation rule 008 use case_rule as a base. 2019-10-07 13:05:15 +02:00
Michał Kruszewski 33995b81bb Make constatnt rule 011 use case_rule as a base. 2019-10-07 11:53:04 +02:00
Michał Kruszewski 9a2a84ba0c Fix failed tests issue. 2019-10-02 13:38:18 +02:00
Michał Kruszewski 43250de2e9 Commit with case_rule concept. 2019-10-02 11:49:39 +02:00
Michał Kruszewski ea870a3e68 Add extract_class_name function. 2019-10-02 10:15:26 +02:00
Michał Kruszewski 761f5fc938 Make extract_type_name function return list. 2019-10-02 09:34:59 +02:00
Michał Kruszewski 5b38a20c6b Replace 3 extract_'vhdl_class'_name(s) functions with single extract function.
According to the VHDL standard there are 4 classes:
constant, variable, signal, file.

This change is a preparation change for unifying case rules.
2019-10-02 09:30:17 +02:00
Jeremiah C Leary 92cd35d427 Updates for issue #252:
Fixed a bug where comment_004 was being flagged after rule concurrent_007 was applied.
Rule concurrent_007 was not handling the comment attributes of the line being split.
It was also not handling the concurrent attributes correctly.

 1)  Updated tests
 2)  Updated rule concurrent_007
2019-09-20 06:55:38 -05:00
Jeremiah C Leary 599a0bb45b Codeclimate updates. 2019-04-10 21:23:17 -05:00
Jeremiah C Leary 08e3680b70 Updates for Codacy:
1)  Removed trailing whitespace
  2)  Removed unused general tests
2019-03-31 10:03:00 -05:00