Commit Graph

566 Commits

Author SHA1 Message Date
Jeremiah C Leary 0559084674 Updates for issue #335
Updated type_definition rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 22:37:35 -06:00
Jeremiah C Leary 576aafc50e Updates for issue #335
Updated whitespace rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 22:25:10 -06:00
Jeremiah C Leary cd43aabb42 Updates for issue #335
Updated variable rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 21:58:58 -06:00
Jeremiah C Leary fc388f8c30 Updates for issue #335
Updated package rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 21:42:42 -06:00
Jeremiah C Leary b3904f6b8b Updates for issue #335
Updated sequential rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 21:36:13 -06:00
Jeremiah C Leary 955c60a5a4 Updates for issue #335
Updated ? rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 21:34:05 -06:00
Jeremiah C Leary df72883c68 Updates for issue #335
Updated if rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:44:42 -06:00
Jeremiah C Leary 1bcb1eb9a5 Updates for issue #335
Updated after rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:36:10 -06:00
Jeremiah C Leary 833804e93f Updates for issue #335
Updated comment rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:33:01 -06:00
Jeremiah C Leary 2aa2792d5e Updates for issue #335
Updated entity rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:30:13 -06:00
Jeremiah C Leary cb53ad4c91 Updates for issue #335
Updated function rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:22:53 -06:00
Jeremiah C Leary f7fc866fbc Updates for issue #335
Updated case rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:49:23 -06:00
Jeremiah C Leary b06ee2ee63 Updates for issue #335
Updated component rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:44:25 -06:00
Jeremiah C Leary 3c98701255 Updates for issue #335
Updated when rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:36:50 -06:00
Jeremiah C Leary 61b28c0648 Update for issue #335
Updated for_loop rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:32:27 -06:00
Jeremiah C Leary c7d0da3377 Updates for issue #335
Updated generate rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:27:00 -06:00
Jeremiah C Leary 3f5d3b803f Updates for issue #335:
Updated generic rules to use dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 15:03:59 -06:00
Jeremiah C Leary 885c25f2c6 Updates for issue #335:
Updated signal rules to use a dictionary for the violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 14:56:15 -06:00
Jeremiah C Leary dd1a693ce2 Updates for issue #335
Updated length rule to use dictionary for the violations list.

  1)  Updated code
  2)  Updated test
2020-02-16 10:04:20 -06:00
Jeremiah C Leary 9c65ccbe56 Updates for issue #335
Updated variable_assignment rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 10:00:47 -06:00
Jeremiah C Leary b80491d673 Updates for issue #335
Updated concurrent rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 09:56:46 -06:00
Jeremiah C Leary b32eb8ffe6 Updates for issue #335:
Updated process rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 09:51:38 -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 C Leary ddc32f8ed9 Updates for issue #335:
Updated tests using the indent base rule to use dictionaries for the violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 08:27:55 -06:00
Jeremiah C Leary f370aeadd1 Updates for issue #335
Updated rules using single_space_before_rule to use dictionaries for items in the violations list.

  1)  Updated tests
  2)  Updated code
2020-02-15 19:23:21 -06:00
Jeremiah C Leary aca83b6b03 Updates for issue #335
Updated rules using the single_space_before_character_rule to use dictionaries in the violation attribute.

  1)  Updated tests
  2)  Updated code
2020-02-15 19:13:40 -06:00
Jeremiah C Leary 2dc372a6f4 Updates for issue #335
Updated rules using is_single_space_after_character_rule to use dictionaries for entries in the violation list.

  1)  Updated tests
  2)  Updated code
2020-02-15 18:58:47 -06:00
Jeremiah C Leary 590292f272 Updates for issue #335
Updating tests that use the search_for_and_replace_keyword_rule base rule to use dictionaries in the violation list.

  1)  Updated tests
  2)  Updated code
2020-02-15 18:47:49 -06:00
Jeremiah C Leary ad8a349baa Updates for issue #335:
Updated tests using remove_spaces_before_character_rule to use the violation list with dictionaries.

  1)  Updated tests
  2)  Updated code
2020-02-15 18:43:17 -06:00
Jeremiah C Leary 1457ef9316 Updates for issue #335:
Updated tests using base rule vsg.rules.remove_blank_lines_above_rule to use the violations attribute as a list of violation dictionaries.

  1)  Updated code
  2)  Updated tests
2020-02-15 18:38:51 -06:00
Jeremiah C Leary fb4c5ca972 Updates for issue #335:
Updated rules based on the single_space_after_rule and multiple_spaces_after_rule base rules:

  1)  Updated rules to use violations list for the fix phase
  2)  Updated tests
2020-02-15 16:12:47 -06:00
Jeremiah C Leary 53969af391 Updates for issue #335
Updated rules based on rules.line_below_rule to use the violations attribute to fix violations.

  1)  Updated base rule rules.line_below_rule
  2)  Updated tests
2020-02-15 15:36:42 -06:00
Jeremiah C Leary 128b080f49 Updates for issue #335
Updated rules based on the line_above_rule.

  1)  Updated line_above_rule
  2)  Updated tests
2020-02-15 15:13:57 -06:00
Jeremiah C Leary 54cefdb6cf Merge branch 'master' of https://github.com/jeremiah-c-leary/vhdl-style-guide 2020-02-15 10:05:57 -06:00
Jeremiah C Leary e8f3f4ad71 Updates for issue #335
Switched self.dFix in process_018 to use dViolation.

  1) Added additional test case
  2) Updated code
  3) Updated existing test case
  4) Added function to test.utils to add the proper formatting of violations during the check.
2020-02-15 09:53:44 -06:00
Michał Kruszewski 7666fae485 Make case_rule to use violations attribute for fixing errors. 2020-02-15 16:51:01 +01: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 b27d70864b Make range rules inherit from case rule. 2020-01-18 11:51:08 +01:00
Jeremiah C Leary 947a32a44a Added exception handling for invalid clock configurations. 2020-01-08 21:03:25 -06:00
Will Kamp ab97fcbaff Update signal_015 to only count commas between the signal keyword and the colon - not in any following initialization statement.
Fixes False violation on "signal sig : std_logic_vector(5 downto 0) := (5 => '1', others => '0');"
2020-01-08 17:53:46 +13: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 3fc726654e Various changes so that hyphens inside double quotes are not treated as a comment marker. 2020-01-08 17:46:21 +13:00
Will Kamp be00b2f20d Fix for rule whitespace_011, it was confused by hyphens quoted strings (don't cares).
'-' is a std_logic don't care.
"-" is a std_logic_vector don't care.
"-1-0H-X" is a std_logic_vector with don't cares.
2020-01-08 10:09:17 +13:00
Will Kamp 7475368837 Fix rule comment_004 to use the comment location in oLine, such that it picks up the fix for comment detection. 2020-01-08 10:09:17 +13:00
Jeremiah C Leary f684b4b0a7 Updates for issue #319:
Added ability to configure either 'event or _edge for clock definitions:

  1)  Updated documentation
  2)  Added isClockDefinition to line object
  3)  Updated process classification to set isClockDefinition
  4)  Updated tests
  5)  Updated rule process_029
2020-01-06 22:18:07 -06:00
Michał Kruszewski c9e5dffefe Make entity and component rule 012 inherit from case_rule. 2020-01-04 10:34:51 +01:00
Jeremiah C Leary 0baf666392 Final updates to fix Codacy issues. 2020-01-02 14:02:20 -06:00