Commit Graph

53 Commits

Author SHA1 Message Date
Martin Dörfelt 99ce2000cf fixed review remarks
- Used a more appropriate method for extracting labels.
- Improved the error message of "prefix_rule".
2020-06-27 08:31:05 +02:00
Michał Kruszewski db485d1842 Adjust prefix/suffix rules to lowercase. 2020-04-03 17:39:47 +02:00
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 01746e70ea Merge branch 'master' into issue-362 2020-03-31 21:16:50 -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 b6226ecb7d Set the default case to lowercase for all case rules. 2020-03-29 21:26:15 +02: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 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
Michał Kruszewski e3805c9d54 Replace extract_first_keyword calls with extract_words function. 2020-01-20 21:17:41 +01:00
Jeremiah C Leary 86c708a986 Minor formatting updates for Codacy issues. 2020-01-02 11:58:48 -06:00
Michał Kruszewski 71b2b64c9d Fix case rules for generic rules. 2019-12-16 14:46:48 +01:00
Jeremiah C Leary a374867c40 Refactoring fix.upper_case and fix.lower_case to remove unneccessary input. 2019-10-16 21:36:30 -05:00
Michał Kruszewski 996febb7a0 Add prefix and suffix rules. 2019-10-16 11:53:58 +02:00
Michał Kruszewski 9f1389c8e8 Fix printing solution for case rules. 2019-10-15 15:57:01 +02:00
Jeremiah C Leary 246ec03dd1 Updates for issue #263
Rules generic_013 and port_016 were not handling std_logic_vectors:

  1)  Updated tests
  2)  Updated rule generic_013
  3)  Updated rule port_016
2019-10-11 15:27:09 -05:00
Michał Kruszewski c962881e7a Make _extract abstract method for case_rule class. 2019-10-07 20:30:27 +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 5057e084ee Make generic rule 009 use case_rule as a base. 2019-10-07 15:36:52 +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 fcb59f21d4 Updates for issue #238:
Added generic_019 to check for blank lines above the );.

  1)  Added documentation
  2)  Added tests
  3)  Refactored generic tests to use setUp method
  4)  Implemented rule
2019-06-06 20:08:04 -05:00
Jeremiah C Leary 599a0bb45b Codeclimate updates. 2019-04-10 21:23:17 -05:00
Jeremiah C Leary 74391f67d2 Updates for issue #226
Refactoring entity_017, generic_012, and generic_015 to use _pre_analyze method.
2019-04-10 08:27:03 -05:00
Jeremiah C Leary f42e698c31 Updates for issue #219
Changed utilities to utils.
2019-03-23 07:43:53 -05:00
Jeremiah C Leary 352f534084 Refactored the following rules for codeclimate:
generic_010
  instantiation_007
  type_008
2019-03-19 22:11:14 -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 5ff634025c Updates for issue #181
Refactoring more rules to support implementing in file tags.
2019-03-09 16:42:31 -06: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 9278105506 Refactoring generic_005 and generic_014 2017-12-28 09:30:32 -06:00
Jeremiah C Leary 52c9037263 Refactoring indent rules. 2017-12-27 13:23:08 -06:00
Jeremiah C Leary 4ee65c23a2 Code style updates flagged by Codacy. 2017-12-23 21:22:24 -06:00
Jeremiah C Leary c3a84706e5 Refactored generic_018, instantiation_025, and instantiation_026 rules. 2017-12-23 14:31:07 -06:00
Jeremiah C Leary b2fdd4f17c Refactored utilities, generic_013, instantiation_017, and port_016 rules. 2017-12-23 14:07:57 -06:00
Jeremiah C Leary 9ea00c4c66 Updates for handling ('s not on the same line as port and generic keywords.
1)  Added generic_018, port_021, instantiation_025, and instantiation_026
  2)  Added some documentation
  3)  Added test cases
2017-12-19 20:52:38 -06:00
Jeremiah C Leary 1641642910 Refactored generic rules and added documentation. 2017-12-17 09:55:10 -06:00
Jeremiah C Leary 1df3c7b8f1 Refactoring indent rules for code climate. 2017-12-16 10:50:38 -06:00
Jeremiah C Leary 204e5bc28a Refactoring for code climate. 2017-12-16 10:19:48 -06:00
Jeremiah C Leary 70a239b107 Updates for issue #112
1)  Added constant_011, generic_017
  2)  Updated signal_010
  3)  Added documentation
  4)  Updated tests
  5)  Updated code examples
2017-12-10 16:43:16 -06:00
Jeremiah C Leary acb0c44b71 Updates for code climate:
1)  Refactored rules to reduce complexity.
2017-12-10 07:22:22 -06:00
Jeremiah C Leary 96d9fc9608 Updates for code example c16. 2017-12-09 21:05:50 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00
Jeremiah C Leary a0d5e28482 Updates for issue #47
1)  Fix added for generic_016
  2)  Added documentation
  3)  Enhanced testing
2017-12-08 07:05:54 -06:00
Jeremiah C Leary ef5e02b64a Refactoring for code climate.
1) Fixed style issues
 2) Refactored complex functions
2017-12-01 18:26:05 -06:00
Jeremiah C Leary fe0fb074e9 Refactoring fix violations to not require _fix_violations in the rule if the rule is not fixable. 2017-12-01 05:39:58 -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 4cbb53a76d Updates for issue #90
1)  Moved _fix_lower_case and _fix_upper_case to fix.py
2017-11-28 20:28:27 -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 3aec9ca446 Updates for issue #90
1)  Moved _is_lowercase and _is_uppercase to check.py
2017-11-28 19:43:58 -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