Commit Graph

31 Commits

Author SHA1 Message Date
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 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 fdcdf2d909 Updates issue #335:
Updated rules using vsg.check.has_prefix to use the violations list in the fix phase:

  1)  Updated tests
  2)  Updated vsg.check.has_prefix to push a dictionary into the violation list
2020-02-15 16:25:59 -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 4a07b2b1ba Updates for issue #335
Updated check.has_suffix function to use dictionaries instead of line numbers.

  1)  Updated vsg.check.has_suffix
  2)  Updated tests
2020-02-15 10:23:29 -06:00
Michał Kruszewski 7666fae485 Make case_rule to use violations attribute for fixing errors. 2020-02-15 16:51:01 +01:00
Will Kamp 41c3b72dc6 Use setdefault function to initialise dictionaries. 2020-01-08 17:47:51 +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
Jeremiah C Leary 86c708a986 Minor formatting updates for Codacy issues. 2020-01-02 11:58:48 -06:00
Jeremiah C Leary b70f6aa77b Minor formatting updates for Codacy issues. 2020-01-02 11:40:27 -06:00
Jeremiah C Leary 24b722b7f9 Updates for issue #235:
Additional tests to catch corner cases.

  1)  Updated tests
  2)  Updated rule concurrent_003
2019-12-04 10:07:54 -06:00
Jeremiah C Leary 5a98adb4b7 Updates for issue #235:
Refactored code to improve readability.
2019-12-04 08:51:16 -06: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 086a694306 Updates for issue #269:
Updated failing tests for new prefix and suffix rules.

  1)  Updated tests
  2)  Updated has_prefix to be case insensitive
2019-10-16 18:57:58 -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 9a2a84ba0c Fix failed tests issue. 2019-10-02 13:38:18 +02:00
Michał Kruszewski ff011c762d Use case_rule for constant_rule_002.py 2019-10-02 10:57:42 +02:00
Michał Kruszewski 2b9c9a7f8d Add rule for checking if generic name starts with G_. 2019-09-24 21:05:28 +02:00
Jeremiah C Leary 52ceb5c34a Updates for issue #242
Added new functions to handle checking and fixing multiple spaces.
The original functions which checked single spaces call the new functions.
2019-09-07 17:35:20 -05:00
Jeremiah C Leary 5f24ef6f9b Updates for issue #241:
The spacing after "signal", "constant", "file", "type", and "subtype" keywords is configurable.

  1)  Added tests
  2)  Refactored code to allow for configurable spacing
  3)  Added subtype_003 rule
  4)  Updated documentation
2019-06-09 11:48:07 -05:00
Jeremiah C Leary e49349fc76 Codeclimate updates. 2019-04-10 21:28:55 -05:00
Jeremiah C Leary 74778a393d Updates for issue #220:
Completed bug fix:

  1)  Added rule procedure_006
      a)  Added documentation
      b)  Added test
      c)  Added rule
  2)  Fixed misclassification of procedure parameters as variable assignments
      a)  Enhanced tests for procedures
      b)  Enhanced tests for variable_assignments
      c)  Fixed variable_assignment classifier to ignore component parameters
2019-03-23 07:29:22 -05:00
Jeremiah C Leary aebe2de87f Fixing style issues flagged by code climate. 2019-03-19 21:54:22 -05:00
Jeremiah C Leary 9b3349f4c3 Codacy updates. 2019-03-19 21:04:11 -05:00
Jeremiah C Leary 2384a6c840 Refactored check.py to improve readability. 2019-03-10 21:38:28 -05:00