Commit Graph

39 Commits

Author SHA1 Message Date
Jeremiah Leary 7a3fcf9883 Updates for issue #434:
Adding rules to align declaration identifiers:

  1)  Updated documentation
  2)  Removed the following rules
      file_003, constant_003, attribute_003, signal_003, subtype_003, type_003 and variable_003
  3)  Added new rules:
      architecture_029, function_015, package_019, procedure_010 and process_037
  4)  Added tests for new rules
  5)  Updated classifiers to support new rules
2020-06-30 11:36:01 -05:00
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 38d04c2e09 Split package_006. 2020-06-23 11:04:02 +02:00
Michał Kruszewski c5eb7737ec Add suffix and prefix rules for package identifier. 2020-05-17 15:46:12 +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
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
Michał Kruszewski e3805c9d54 Replace extract_first_keyword calls with extract_words function. 2020-01-20 21:17:41 +01:00
Michał Kruszewski a27aaf56b8 Fix case rules for package rules. 2019-12-29 14:36:37 +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 9f1389c8e8 Fix printing solution for case rules. 2019-10-15 15:57:01 +02: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 5f09995b29 Make package rule 004 use case_rule as a base. 2019-10-07 15:07:23 +02:00
Jeremiah C Leary 7cb56ab8f0 Updates for issue #181
Addition refactoring of existing rules to support implementing in file tags.
2019-03-09 18:34:41 -06: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
Jeremiah C Leary 48563434cd Updates to address codeclimate issues. 2019-03-02 09:29:53 -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 8920f6d1ac Refactored package_009. 2017-12-27 20:03:40 -06:00
Jeremiah C Leary 849d1d29a8 Code style updates. 2017-12-27 19:54:21 -06:00
Jeremiah C Leary 7ed612fef8 Refactoring package_008 and package_010 rules. 2017-12-27 19:44:13 -06:00
Jeremiah C Leary f05ca32585 Refactoring package rules. 2017-12-27 18:58:37 -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 3ff13b420e Refactored package rules and added documentation. 2017-12-22 12:18:25 -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 bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00
Jeremiah C Leary f5be815e61 Updates for code climate:
1)  Refactored all insert line rules to use new classes.
2017-12-02 13:01:51 -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 dcfd6aa824 Updates for issue #90
1)  Moved _insert_blank_line_above and _insert_blank_line_below to fix.py
2017-11-29 06:57:16 -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 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 ead0b62c68 Updates for code climate:
1)  Refactored _is_blank_line_* from rule.py to check.py
2017-11-26 16:30:50 -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 4dbf064e6e Refactored package rules to aid in maintainability. 2017-11-26 11:39:17 -06:00