Jeremiah Leary
abe3cb3418
Updates for issue #393 :
...
Refactoring of library and base rules:
1) Most library rules refactored to use new base item rules
2) Base item rules refactored to use the region method on vhdlFile
3) Tests updated
4) Documentation updated
2020-07-26 12:54:43 -05:00
Jeremiah Leary
02b3835381
Updates for issue #432 :
...
Adding rule architecture_029 to align idenifiers in signal, constant, variable, file, type and subtype declarations.
1) Updated documentation
2) Added tests
3) line class updates
a) Added new architecture attribute
b) Added new method to update the line attributes from tokens
4) Added rule architecture_029
2020-06-25 09:58:49 -05:00
Jeremiah Leary
16126b045d
Updates for issue #398 :
...
Generics starting with "port" were classified as the port keyword:
1) Updated tests to expose issue
2) Updated code to make tests pass
2020-05-18 22:12:21 -05:00
Michał Kruszewski
1ba47f234c
Move comment rule 001 to library rule 009.
2020-03-29 09:21:15 +02:00
Jeremiah C Leary
7d940306ec
Updates for issue #314 and issue #333 :
...
Issue #314 :
Updated all label rules to use utils.extract_label or utils.extract_end_label:
1) Added utils.extract_end_label
2) Added more end label attributes to line.py
3) Updated classifiers to set the new end label attributes
4) Updated tests
5) Updated rules to use utils.extract_label or utils.extract_end_label
Issue #333 :
Fixed bug where nested generate labels were not updated correctly:
1) Added test case
2) Updated code
2020-02-23 10:51:44 -06:00
Jeremiah C Leary
0e2d48fa47
Updates for issue #282 :
...
Adding new line attributes to cover signal assignments spanning multiple lines.
2019-11-03 07:00:41 -06:00
Jeremiah C Leary
c71e025878
Updates for issue #258
...
Rule architecture_014 would not uppercase the entity name if it matched the architecture name.
1) Updated tests
2) Updated rule architecture_014
2019-10-15 18:06:09 -05: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
e6240f87d0
Updates for issue #238 :
...
Added rule to check for blank lines before the ); for port maps.
1) Added documentation
2) Added tests
3) Refactored port tests and added a setUp proc
4) Added rule
2019-06-06 18:44:49 -05:00
Jeremiah C Leary
5cacc551ef
Updates for issue #221 :
...
Fixing function_003 violation for functions without parameters.
1) Added test to detect bug
2) Updated rule to only check if there are any parameters on the function.
2019-03-23 19:47:20 -05:00
Jeremiah C Leary
1948b70444
Updates for Codacy issues:
...
Removing trialing whitespaces.
2019-03-10 12:19:16 -05:00
Jeremiah C Leary
183b9f5c18
Updates for issue #193
...
The class vhdlFile now takes a list instead of a file name.
This removes the responsibility of reading the file from the vhdlFile class.
Which allows for better integration into other tools.
2019-02-24 12:49:25 -06:00
Jeremiah C Leary
436d5c7bb7
Updates for issue #198
...
Fixed issue when signal names starting with "end_" were classified as an architecture end:
1) Added test
2) Updated classification
2019-02-05 16:34:07 -06:00
Jeremiah C Leary
6957c0d62f
Updates for issue #190
...
Fixed crashing issue if port mode was not defined.
1) port_018 now checks if mode is defined before checking if port type is lowercase
2) Added port_023 to check for existance of port mode
3) Added tests
4) Added documentation
2018-12-12 11:41:20 -06:00
Jeremiah C Leary
95b6f907c8
Updates for issue #172
...
Fixed mis-classification of less than or equal to (<=) in concurrent statements:
1) Updated tests
2018-11-01 19:21:41 -05:00
Jeremiah C Leary
fb27c4434a
Updates for issue #166 :
...
1) Fixed classification of "begin" keyword in comments
2) Updated tests
3) Split vhdlFile process tests into their own file
2018-09-13 22:28:22 -05:00
Jeremiah C Leary
49b2ca879e
Updates for issue #157
...
1) Added port rule 022 to remove blank lines after the port keyword.
2) Added tests
3) Updated documentation
2018-08-26 16:44:59 -05:00
Jeremiah C Leary
b455785897
Updates for issue #150 :
...
1) Non VHDL keyword signal types are not flagged by signal_010
2) Fixed error with signal_009 checking colon alignments in the whole file instead of just in the architecture declaration.
3) Updated documentation
4) Updated tests
2018-06-26 20:35:32 -05:00
Jeremiah C Leary
a142f78ef2
Updates for issue #133 :
...
1) Updated classification of functions.
2) Updated tests
2017-12-30 12:27:23 -06:00
jcleary
cef1a0a7a0
Updating classifiers to handle more conditions.
2017-12-29 21:03:16 -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
501c09acdd
Updates for coverage.
2017-12-23 17:38:53 -06:00
Jeremiah C Leary
fb09a153a7
Refactored process rules.
2017-12-23 13:36:08 -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
66cfbc751f
Updates for issue #114
...
1) Fixed classification of the end of the port map.
2) Added port_021
3) Refactored utilities.search_for_and_replace_is_keyword
2017-12-17 13:14:19 -06:00
Jeremiah C Leary
10b2cae01b
Updates for issue #100 :
...
1) Entity ports starting with "use" were being classified as a library use statement.
Classification has been fixed.
2017-12-02 18:31:42 -06:00
Jeremiah C Leary
be298431ad
Updates for issue #59
...
1) Fixed issue where the end function was being classified as an end architecture.
2017-11-25 12:03:00 -06:00
Jeremiah C Leary
b5d0803a7e
Updates for issues #60 and #76
...
1) Classifying "impure" functions as normal functions
2) Fixed issue with code being deleted in if statements when trying to split lines.
2017-11-25 10:50:01 -06:00
Jeremiah C Leary
473b0926ff
Updates for issue #75
...
1) Fixed issue with architecture being added to end loop lines.
2017-11-24 23:10:18 -06:00
Jeremiah C Leary
6a53893319
Updates for issue #64
...
1) Updated rules to detect single quote after else so it can be moved to the next line.
2017-11-23 15:20:38 -06:00
Jeremiah C Leary
5987bd929d
Updates for code coverage.
2017-11-23 10:59:54 -06:00
Jeremiah C Leary
12a585171c
Updates for issue #52 :
...
1) Fixed easy code coverage issues.
2017-11-22 06:45:06 -06:00
Jeremiah C Leary
d525b56925
Added _remove_blank_lines_above method to rule.
...
Refactored entity_016 and library_007 to use new method.
2017-11-19 07:38:40 -06:00
Jeremiah C Leary
7c2d31c81f
Updates for vhdlFile:
...
1) Added hasEntity and hasArchitecture to vhdlFile to assist in file level rule checking.
2017-11-11 06:37:30 -06:00
Jeremiah C Leary
a1382a3474
Updates for generate rules:
...
1) Added for generate detection
2) Added vertical spacing rule
2017-11-05 08:21:45 -06:00
Jeremiah C Leary
024ce45a1b
Updates for type and constant rules:
...
1) Type rules apply to types in packages
2) Constant rules apply to constants in packages
2017-10-16 20:03:16 -05:00
Jeremiah C Leary
bc32304bd6
Updates to case and sequential rules after running against example code:
...
1) Sequential will not flag lines in which there is not code after the <= operator
2) Cases are now detected inside functions
3) Code after => in case when lines are flagged
2017-10-14 13:26:35 -05:00
Jeremiah C Leary
21c2b803f5
Updates for instance rules:
...
1) Fixed issue where function parameter was mistaken for an instance declaration.
2017-10-08 20:09:47 -05:00
Jeremiah C Leary
c4bf737038
Update for function rules:
...
1) Added first function rule for indentation
2017-10-08 14:35:25 -05:00
Jeremiah C Leary
6f714ff3e3
Updates for function rules:
...
1) Added function attributes to line class
2) Added function attribute assignments to vhdlFile class
2017-10-08 11:41:07 -05:00
Jeremiah C Leary
6352da8b3a
Updates for concurrent rules:
...
1) Added rule to flag code after "else" keyword.
2017-10-08 07:15:57 -05:00
Jeremiah Leary
8a2de57acd
Updates for rule renaming:
...
1) Removed rule_ from beginning of rule names
2) Renamed test directories
NOTE: need to rename if rule to if_statement since if is a python keyword.
2017-09-30 07:44:27 -05:00
Jeremiah Leary
f78c2b8f76
Updates after running on new examples.
2017-09-29 22:57:46 -05:00
Jeremiah Leary
a6ea0758a8
Restructered directory using:
...
http://python-packaging.readthedocs.io/en/latest/index.html
as a reference
2017-09-29 21:57:28 -05:00