Commit Graph

41 Commits

Author SHA1 Message Date
Jeremiah C Leary 86c708a986 Minor formatting updates for Codacy issues. 2020-01-02 11:58:48 -06: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 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 df584dfec8 Make variable rule 002 use case_rule as a base. 2019-10-07 14:47:24 +02:00
Michał Kruszewski 417f29f3dc Make varabiel rule 004 use case_rule as a base. 2019-10-07 12:00:46 +02:00
Michał Kruszewski 33995b81bb Make constatnt rule 011 use case_rule as a base. 2019-10-07 11:53:04 +02:00
Michał Kruszewski 43250de2e9 Commit with case_rule concept. 2019-10-02 11:49:39 +02:00
Michał Kruszewski ff011c762d Use case_rule for constant_rule_002.py 2019-10-02 10:57:42 +02:00
Michał Kruszewski 5b38a20c6b Replace 3 extract_'vhdl_class'_name(s) functions with single extract function.
According to the VHDL standard there are 4 classes:
constant, variable, signal, file.

This change is a preparation change for unifying case rules.
2019-10-02 09:30:17 +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 596bbdb7a1 Fixing solution statement to be more specific. 2019-06-28 08:22:26 -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 a7d0aa556d Updates for issue #237
Added rule constant_014 to handle multiline non array constants:

  1)  Added documentation
  2)  Fixed rule constant_012 so it does not fire on non array constants
  3)  Added rule constant_014
  4)  Added tests
  5)  Added classification of array constants
2019-06-08 11:22:31 -05:00
Jeremiah C Leary 46d57be6db Updates for issue #239:
Clarified constant_010 to state a single space before the :=.

  1)  Updated documentation
  2)  Updated tests to cover more than one space before the :=
  3)  Updated solution for constant_010
2019-06-07 22:16:21 -05:00
Jeremiah C Leary 599a0bb45b Codeclimate updates. 2019-04-10 21:23:17 -05:00
Jeremiah C Leary 175621833c Updates for issue #226
Refactoring code tags logic to improve code coverage.
2019-04-05 07:57:24 -05:00
Jeremiah C Leary ac04afe067 Updates for issue #224
Adding case consistency checks for constants.

  1)  Added documentation
  2)  Added tests
  3)  Added rule constant_013
2019-03-31 07:38:35 -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 bf9f5779cd Updates for issue #192
1)  Reduced scope of constant_009 to the architecture declaritive region
  2)  Refactored constant fix tests to be independent using the setUp method
  3)  Updated documentation
2018-12-17 21:03:35 -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 a742f6c486 Refactoring rules. 2017-12-29 07:40:03 -06:00
Jeremiah C Leary 32997c99c3 Refactored component_002 and constant_006 rules. 2017-12-28 11:16:37 -06:00
Jeremiah C Leary 9354bf3d0d Refactored constant_011 and signal_010 rules. 2017-12-28 11:09:03 -06:00
Jeremiah C Leary f61ca71212 Updates for issue #126
1)  Added classification for multiline constants
  2)  Added constant_012 rule
  3)  Added tests
  4)  Added documentation
2017-12-27 14:18:13 -06:00
Jeremiah C Leary 9675eb0264 Refactoring constant rules and adding documentation. 2017-12-16 12:07:08 -06:00
Jeremiah C Leary 1df3c7b8f1 Refactoring indent rules for code climate. 2017-12-16 10:50:38 -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 bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00
Jeremiah C Leary fbe562e056 Updates for issue #85
1)  Added constant_010
  2)  Added tests
  3)  Added sphinx documentation
2017-12-04 21:37:06 -06:00
Jeremiah C Leary 28497a587d Updates for code climate:
1)  Refactored some rules to use keyword_alignment_rule class.
2017-12-02 16:29:59 -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 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
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 19761ea22b Refactored constant rules for code climate. 2017-11-26 10:27:38 -06:00