Commit Graph

55 Commits

Author SHA1 Message Date
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
Jeremiah C Leary aae2fc9a4e Updates for issue #224
Adding case consistency checks for variable names:

  1)  Added documentation
  2)  Added tests
  3)  Added rule variable_011
2019-03-31 09:54:08 -05:00
Jeremiah C Leary f9c6a495b5 Updates for issue #224
Adding case consistency checks for type definitions:

  1)  Added documentation
  2)  Added tests
  3)  Added rule type_014
2019-03-31 08:22:28 -05:00
Jeremiah C Leary ac04afe067 Updates for issue #224
Adding case consistency checks for constants.

  1)  Added documentation
  2)  Added tests
  3)  Added rule constant_013
2019-03-31 07:38:35 -05:00
Jeremiah C Leary 0c87b5bb70 Updates for issue #224
Switched general_001 to signal_014:

  1)  Removed rule general_001
      a)  Removed documentation
      b)  Removed tests
      c)  Removed rule
  2)  Added signal_014 to validate signal names are consistently cased
      a)  Added documentation
      b)  Added tests
      c)  Added rule signal_014
      d)  Added extract_signal_names procedure in utils.py
2019-03-30 20:11:13 -05:00
Jeremiah C Leary c314cd0430 Updates for issue #224
1)  Added general_001 to look for inconsistent capitalization
      a)  Added tests
  2)  Updated variable_010 to ignore everything after the "range" in a variable definition
      a)  Updated tests
2019-03-27 22:42:58 -05:00
Jeremiah C Leary c754653534 Updates for issue #224
Added documentation for new general_001 rule to check capitalization.
Fixed renaming of extract_keywords to extract_non_keywords.
2019-03-27 21:40:49 -05:00