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
b06ee2ee63
Updates for issue #335
...
Updated component rules to use violation dictionary for violation list.
1) Updated code
2) Updated tests
2020-02-16 17:44:25 -06:00
Jeremiah C Leary
f370aeadd1
Updates for issue #335
...
Updated rules using single_space_before_rule to use dictionaries for items in the violations list.
1) Updated tests
2) Updated code
2020-02-15 19:23:21 -06:00
Jeremiah C Leary
fb4c5ca972
Updates for issue #335 :
...
Updated rules based on the single_space_after_rule and multiple_spaces_after_rule base rules:
1) Updated rules to use violations list for the fix phase
2) Updated tests
2020-02-15 16:12:47 -06:00
Michał Kruszewski
e3805c9d54
Replace extract_first_keyword calls with extract_words function.
2020-01-20 21:17:41 +01:00
Michał Kruszewski
c9e5dffefe
Make entity and component rule 012 inherit from case_rule.
2020-01-04 10:34:51 +01:00
Jeremiah C Leary
e7a91cef71
Fixing formatting issues flagged by Codacy.
2020-01-02 11:23:09 -06:00
Jeremiah C Leary
7ab8f9f6fb
Updating rule component_012 to improve code coverage:
...
1) Removed unused elif code because it could never be executed.
2) Updated documentation for component classifier.
3) Updated tests for rule component_012 to cover the _get_solution method.
2020-01-02 10:10:38 -06:00
Michał Kruszewski
49aa53ab61
Replace extract_word function with extract_words.
2019-12-28 11:39:32 +01:00
Jeremiah C Leary
620c13ad20
Updates for issue #288 :
...
Updated architecture case rules to allow for upper or lower case.
1) Updated documentation
2) Updated tests
3) Updated the following rules:
architecture_006
architecture_012
architecture_014
2019-11-30 15:16:20 -06: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
837d2b67b2
Small formatting improvements.
2019-10-07 20:43:45 +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
1684855079
Make component rule 010 use case_rule as a base.
2019-10-07 15:40:24 +02:00
Michał Kruszewski
0a9e172999
Make component rule 004 use case_rule as a base.
2019-10-07 14:55:50 +02:00
Michał Kruszewski
ee89f6c246
Make component rule 008 use case_rule as a base.
2019-10-07 13:31:11 +02: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
522ba311a3
Refactoring rules for codeclimate.
2019-03-10 22:10:33 -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
Jeremiah C Leary
d6470d0911
Updates for issue #180
...
Adding rule component_020:
1) Added test for comment alignment in component declarations
2) Added rule to detect and fix alignment of comments
3) Added documentation
2018-11-26 20:36:30 -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
f584accb4a
Refactoring component_008, entity_008, instantiation_008, port_010.
2017-12-28 15:56:08 -06:00
Jeremiah C Leary
32997c99c3
Refactored component_002 and constant_006 rules.
2017-12-28 11:16:37 -06:00
Jeremiah C Leary
52c9037263
Refactoring indent rules.
2017-12-27 13:23:08 -06:00
Jeremiah C Leary
7ac441a603
Removed unused variables to address Codacy issues.
2017-12-24 07:21:09 -06:00
Jeremiah C Leary
4ee65c23a2
Code style updates flagged by Codacy.
2017-12-23 21:22:24 -06:00
Jeremiah C Leary
204e5bc28a
Refactoring for code climate.
2017-12-16 10:19:48 -06:00
Jeremiah C Leary
5a882a7475
Refactoring for code climate.
2017-12-16 09:59:34 -06:00
Jeremiah C Leary
34d90b9749
Refactored component rules for code climate.
2017-12-16 09:37:00 -06:00
Jeremiah C Leary
796879e240
Updates for style.
2017-12-10 06:52:33 -06:00
Jeremiah C Leary
c2b9c0a081
Added graphicsaccelerator code sample and updated rules.
2017-12-09 19:58:01 -06:00
Jeremiah C Leary
bf92c91551
Updates for codestyle.
2017-12-08 19:48:15 -06:00
Jeremiah C Leary
75a783149b
Updates for issue #93
...
1) Added instantiation_023 and component_019 to remove comments after ports and generics
2) Added documentation
3) Added tests
2017-12-06 21:48:33 -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
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
29d9e75d41
Updates for code climate:
...
1) Created rules for inserting lines above and below.
2017-12-02 11:12:22 -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
618eeb135e
Updates for issue #90
...
1) move _remove_blank_lines_above and _remove_blank_lines_below to fix.py
2017-11-29 06:40:57 -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