Jeremiah Leary
9d48d94a99
Updates for issue #644
...
Updating remaining case rules to allow for prefix/suffix exceptions.
2021-10-26 07:38:43 -05:00
Jeremiah Leary
91db3f001f
Updates for issue #644
...
Additional changes:
1) Added new base rule token_case_with_prefix_suffix
2) Changed required rules to use new base rule
3) Refactored shared logic into package
2021-10-25 06:25:00 -05:00
Jeremiah Leary
389a731ae0
Updates for issue #560
...
Adding depricated rules.
1) Updated documentation to provide links to new rules
2) Added tests for depricated rules
3) Added rules that were depricated back to rule set using the depricated rule class
2021-05-08 07:56:51 -05:00
imd
14a0dbe633
variable suffix rule
2021-05-01 21:46:11 +01:00
imd
046cf644fa
comment error
2021-05-01 21:44:58 +01:00
Jeremiah Leary
4721ae0322
Updates for Codacy flagged issues.
2020-12-04 13:27:19 -06:00
Jeremiah Leary
f9982dac4d
Refactoring rules to improve consistent case performance.
...
1) Adding more exclusions to each rule
2020-12-04 09:20:22 -06:00
Jeremiah Leary
9bf3d71b60
Refactoring signal_005 and variable_005 to use the single_space_after base rule.
2020-11-26 20:55:22 -06:00
Jeremiah Leary
e4cdef673a
Making consistent case rules ignore entity names.
2020-11-25 14:15:39 -06:00
Jeremiah Leary
a0a9813d89
Codacy fixes.
2020-11-24 17:14:00 -06:00
Jeremiah Leary
0a06afbe1e
Refactoring additional generic, variable, port and signal rules for new parser.
2020-10-24 13:37:03 -05:00
Jeremiah Leary
dca6ed4dbb
Refactoring additional variable and signal rules for new parser.
2020-10-24 09:48:58 -05:00
Jeremiah Leary
f95fa99028
Refactoring additional variable rules for new parser.
2020-10-24 09:21:23 -05:00
Jeremiah Leary
6e04be1bc9
Refactoring variable rules for new parser.
2020-10-18 14:06:57 -05:00
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
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
7d85a98db4
Updates for issue #362 :
...
Interim commit to move all rules to new violation dictionary format.
2020-03-29 13:09:38 -05:00
Michał Kruszewski
2f08a64bda
Refactor keyword alignment rules.
2020-02-24 21:14:44 +01:00
Jeremiah C Leary
cd43aabb42
Updates for issue #335
...
Updated variable rules to use violation dictionary for violation list.
1) Updated code
2) Updated tests
2020-02-16 21:58:58 -06:00
Michał Kruszewski
ca1eeae7e4
Fix case rules for variable rules.
2019-12-06 10:44:30 +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
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
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
599a0bb45b
Codeclimate updates.
2019-04-10 21:23:17 -05:00
Jeremiah C Leary
aae2fc9a4e
Updates for issue #224
...
Adding case consistency checks for variable names:
1) Added documentation
2) Added tests
3) Added rule variable_011
2019-03-31 09:54:08 -05:00
Jeremiah C Leary
c314cd0430
Updates for issue #224
...
1) Added general_001 to look for inconsistent capitalization
a) Added tests
2) Updated variable_010 to ignore everything after the "range" in a variable definition
a) Updated tests
2019-03-27 22:42:58 -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
Jeremiah C Leary
b71322773e
Updates for issue #192
...
Removing rule variable_011 because it was obsoleted by process_031
1) Updated documentation
2) Updated tests
3) Removed rule variable_011
2018-12-17 21:16:16 -06:00
Jeremiah C Leary
5d1881a153
Updates for issue #187
...
Fixed variable : alignments so process variables are not aligned between processes or with variables in the architecture declarative region.
1) Restricted variable_009 to only operate in the architecture declarative region
2) Added variable_011 to align :'s in processes
3) Added/Updated tests
4) Added and updated documentation
2018-12-12 10:28:34 -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
b08f8d6560
Refactored variable rules and added documentation.
2017-12-23 08:42:26 -06:00
Jeremiah C Leary
80ce625de6
Refactoring rules.
2017-12-17 10:18:10 -06:00
Jeremiah C Leary
1df3c7b8f1
Refactoring indent rules for code climate.
2017-12-16 10:50:38 -06:00
Jeremiah C Leary
bf92c91551
Updates for codestyle.
2017-12-08 19:48:15 -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
6aee8bad9b
Updates for issue #90
...
1) Moved _get_word and _get_first_word from rule.py to utilities.py
2017-11-30 06:33:49 -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
6c89e81f2a
Refactoring variable rules to aid in maintainability.
2017-11-26 13:32:55 -06:00