Commit Graph

42 Commits

Author SHA1 Message Date
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 b9abdf8a57 Updates for issue #362:
Updated rules to use consistent violation dictionary:

  1)  Updated check.indent_of_comments_above to use the violation dictionary
  2)  Updated rules to use the violation dictionary
  3)  Updated tests
2020-03-31 20:09:51 -05:00
Michał Kruszewski 0f0ec0f47c Refactor keyword alignment rules - part 2. 2020-03-17 11:22:25 +01:00
Michał Kruszewski 2f08a64bda Refactor keyword alignment rules. 2020-02-24 21:14:44 +01:00
Jeremiah C Leary ad1e1f0da4 Updates for issue #332:
Refactored rule concurrent_007 to improve readability.
2020-02-23 17:00:00 -06:00
Jeremiah C Leary 4986454772 Updates for issue #332
Single line concurrent statements are allowed as long as there is only one **else** keyword:

  1)  Updated documentation for rule concurrent_007
  2)  Created new tests
  3)  Updated existing tests
  4)  Updated rule concurrent_007 to allow for single line statements
  5)  Updated rule concurrent_007 to handle lines with multiple **else** keywords
2020-02-23 16:36:34 -06:00
Jeremiah C Leary 7d940306ec Updates for issue #314 and issue #333:
Issue #314:

Updated all label rules to use utils.extract_label or utils.extract_end_label:

  1) Added utils.extract_end_label
  2) Added more end label attributes to line.py
  3) Updated classifiers to set the new end label attributes
  4) Updated tests
  5) Updated rules to use utils.extract_label or utils.extract_end_label

Issue #333:

Fixed bug where nested generate labels were not updated correctly:

  1)  Added test case
  2)  Updated code
2020-02-23 10:51:44 -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 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 0baf666392 Final updates to fix Codacy issues. 2020-01-02 14:02:20 -06:00
Jeremiah C Leary 86c708a986 Minor formatting updates for Codacy issues. 2020-01-02 11:58:48 -06:00
Jeremiah C Leary e7a91cef71 Fixing formatting issues flagged by Codacy. 2020-01-02 11:23:09 -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 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 ead143be3d Updates for issue #226
Refactoring concurrent_003 to use _pre_analyze.
2019-04-10 08:17:00 -05:00
Jeremiah C Leary 6a04dae1c3 Updates for issue #181
1)  Adding vsg off checking to rules which override the base rule class analysis method.
2019-03-10 11:50:46 -05:00
Jeremiah C Leary 2fd456aec3 Updates for issue #181
Refactoring rules to support implementing in file tags.
2019-03-09 15:38:39 -06:00
Jeremiah C Leary 95b6f907c8 Updates for issue #172
Fixed mis-classification of less than or equal to (<=) in concurrent statements:

  1)  Updated tests
2018-11-01 19:21:41 -05:00
Ryan Fitzsimon 79456cf1a2 Use explicit relative imports
Implicit relative imports are not supported in Python 3 (see pep-0404).

Using explicit relative imports also helps avoid name clashes.
2018-08-31 11:24:13 +10:00
Jeremiah C Leary 765b6f894d Updates for issue #147:
1)  else's in comments are ignored
  2)  Updated tests
2018-05-24 04:55:10 -05:00
Jeremiah C Leary 7a77f509d9 Refactoring concurrent_002. 2017-12-29 08:08:23 -06:00
Jeremiah C Leary 07750250ad Fixing code style issues. 2017-12-29 07:17:16 -06:00
Jeremiah C Leary 64274e5010 Refactored architecture_006, concurrent_006, and concurrent_008 rules. 2017-12-28 16:26:57 -06:00
Jeremiah C Leary b055aa9b1f Removing unused imports to address Codacy issues. 2017-12-24 07:32:32 -06:00
Jeremiah C Leary 9d59246cea Style updates for Codacy. 2017-12-23 21:47:07 -06:00
Jeremiah C Leary bca183b159 Fixing build error in concurrent_006. 2017-12-15 11:47:18 -06:00
Jeremiah C Leary f3d160c8b9 Added concurrent rule documentation.
Refactored concurrent rules for code climate.
2017-12-15 11:35:41 -06:00
Jeremiah C Leary 803cc0834e Fixed issue with concurrent_002 not removing extra spaces due to a '.
Fixed issue with instantion_012 not fixing issues from the bottom up.
2017-12-14 10:39:30 -06:00
Jeremiah C Leary c2b9c0a081 Added graphicsaccelerator code sample and updated rules. 2017-12-09 19:58:01 -06:00
Jeremiah C Leary b65ad81d27 Updates for code climate:
1)  Refactored process_010, concurrent_005, if_statement_012 and entity_012.
2017-12-08 21:53:32 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00
Jeremiah C Leary 0d933f04df Updates for code climate:
1)  Refactored code with suggestions from code climate
  2)  Moved change_word from fix.py to utilities.py
2017-12-02 06:59:54 -06:00
Jeremiah C Leary 7ed5a6c5dd Updates for issue #90
1)  moved enforce_one_space_after_word and enforce_one_space_before_word to fix.py
2017-11-28 20:41:11 -06:00
Jeremiah C Leary 723ed891f7 Updates for issue #90
1)  moved _fix_multiline_alignment to fix.py
2017-11-28 20:14:01 -06:00
Jeremiah C Leary 6dd1bca851 Updates for issue #90
1)  moved _fix_keyword_alignment to fix.py
2017-11-28 20:09:42 -06:00
Jeremiah C Leary 3302988886 Updates for issue #90
1)  Moved _fix_indent to fix.py
2017-11-28 19:59:48 -06:00
Jeremiah C Leary b7a568d537 Updates for issue #90
1)  Moved _check_multiline_alignment to check.py
2017-11-28 19:32:53 -06:00
Jeremiah C Leary eee146f5c4 Updates for issue #90
1)  Moving _check_keyword_alignment to check.py
2017-11-28 19:26:34 -06:00
Jeremiah C Leary a4304575fc Refactoring for code climate:
1)  Added check.py to hold all checks.
      checks from rule.py will be moved here
  2)  Moved _check_indent to check.indent
2017-11-26 16:13:21 -06:00
Jeremiah C Leary 7226ce847f Refactoring concurrent rules to aid in maintainability. 2017-11-26 09:48:14 -06:00