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
3f094345a2
Updates for issue #208
...
1) Added "when" attributes to line object
2) Added classification of "when" constructs
3) Added tests
2019-02-17 09:28:19 -06:00
Jeremiah C Leary
3a44c978e2
Updated for issue #194
...
Added whitespace_012 to enforce a maximum number of consecutive blank lines.
1) Added documentation
2) Added test
3) Added rule
2019-02-05 19:34:20 -06:00
Jeremiah C Leary
9a68c25937
Fixing issues identified by Codacy.
2018-12-18 08:43:16 -06:00
Jeremiah C Leary
3123a1ff7f
Updates for issue #188
...
Added feature to ensure a blank line before the first "if" statement unless there is a comment.
1) Added tests
2) Added documentation
3) Updated tests to match new rule
2018-12-12 09:54:25 -06:00
Jeremiah C Leary
56419e0bde
Updates for issue #109
...
Added if_030 to enforce at least one blank line after the last "end if" keyword.
1) Added rule
2) Added tests
3) Updated fixed code examples
4) Updated if spliting rules to clear the isLastEndIf line attribute
2018-12-06 16:52:35 -06:00
Jeremiah C Leary
3af2b46496
Updates for issue #109 :
...
Blank line after "end if" keyword is now enforced.
1) Added test case
2) Updated documentation
3) Added rule
2018-12-03 19:53:51 -06:00
Jeremiah C Leary
45d19397e8
Modifying if statement tests to validate rule 029 fix.
2018-11-15 18:48:07 -06:00
Jeremiah C Leary
69e569c992
Updates for issue #149 :
...
1) Added command line option --fix_phase which will apply fixes up to and including that phase.
Analysis will then be ran on all remaining phases.
2) Updated tests
2018-06-20 19:47:49 -05:00
Jeremiah C Leary
8a05a77c81
Removing unused import.
2017-12-26 17:14:28 -06:00
Jeremiah C Leary
37de340900
Updates for issue #130
...
1) Refactored check and fix functions to take an **unless** parameter to allow for a single blank line.
2) Updated if rules 006, 007, 008, 010, and 011.
3) Updated tests
2017-12-26 17:05:00 -06:00
Jeremiah C Leary
613a399688
Fixing minor test issue.
2017-12-26 15:48:09 -06:00
Jeremiah C Leary
0b0c30444c
Updates for code coverage:
...
1) Updated tests for uncovered conditions
2) Added pragma: no cover to tests that are checking for failures that should not exist
2017-12-26 08:28:01 -06:00
Jeremiah C Leary
e09f02c492
Updating style issues to address Codacy issues.
2017-12-25 10:01:14 -06:00
Jeremiah C Leary
327f3a01e9
Updates for issue #122 :
...
1) Added if rules to lower case if, then, elsif, else, and end if keywords.
2) Added tests
3) Added documentation
2017-12-25 08:29:50 -06:00
Jeremiah C Leary
b055aa9b1f
Removing unused imports to address Codacy issues.
2017-12-24 07:32:32 -06:00
Jeremiah C Leary
9600b1235a
Refactored rule_list.list into rule_list.rule_list to address Codacy issue.
2017-12-24 06:48:22 -06:00
Jeremiah C Leary
9d59246cea
Style updates for Codacy.
2017-12-23 21:47:07 -06:00
Jeremiah C Leary
2c0aa6567d
Refactored if statement rules and added documentation.
2017-12-21 20:00:18 -06:00
Jeremiah C Leary
dbbb0bfb80
Updates for issue #117
...
1) Fixed if rules to detect keywords next to semicolons and closing parenthesis.
2017-12-17 11:36:12 -06:00
Jeremiah C Leary
dea12145b6
Updates for issue #77
...
1) Initial commit of code to fix indenting issue
2) Ranamed rules so they would execute in the correct order
3) Added documentation
4) Updated test cases
2017-12-12 19:59:45 -06:00
Jeremiah C Leary
9ef9e14566
Updates for issue #110
...
1) Elses in comments are no longer classified as "else" keywords.
2017-12-05 19:52:05 -06:00
Jeremiah C Leary
4a880fca23
Updates for issue #90
...
1) Moved utils.py under tests directory as it was related only to tests.
2017-11-30 06:18:57 -06:00
Jeremiah C Leary
5db415b2c2
Updates for issue #86
...
1) Fixed indenting issue for code move to next line after "then" keyword.
2017-11-25 16:17:13 -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
1325a35380
Updates for issue #67
...
1) Added rule if_015.
2017-11-23 19:55:09 -06:00
Jeremiah C Leary
47e464a7de
Updates for issue #33
...
1) Added fixes for if rules
2) Updated tests to improve coverage
NOTE: had to add two pragmas to eliminate issue where "continues" were not covered.
2017-11-22 20:03:04 -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
3769a7ff61
Updates for issue #20 :
...
1) Added more fixes for indents.
2017-11-17 22:15:07 -06:00
Jeremiah C Leary
fcf825890b
Updates for if rules:
...
1) If rules flag if else or elsif or endif do not begin their own lines.
2017-10-14 11:09:48 -05:00
Jeremiah C Leary
e21443baaf
Updates for if rules:
...
1) Fixed issue when a case statement ends above a else keyword.
2017-10-08 20:14:39 -05:00
Jeremiah C Leary
af26a0993b
Updates for if rules:
...
1) Code after else statement is flagged to be on the next line.
2017-10-08 14:08:18 -05:00
Jeremiah C Leary
f909c944d1
Updates for if rules:
...
1) Added rule to catch sequential assignments on same line as then keyword.
2017-10-08 07:06:07 -05:00
Jeremiah C Leary
2302960e03
Updated after another run against an example:
...
1) Updated spacing around if and case keywords
2) Remove comments within multiline sequential statements
2017-10-07 19:48:13 -05:00
Jeremiah C Leary
d4a8315af3
Updates after running on another example:
...
1) Updated conflict between case and if rules
2) Updated concurrent rule for spacing after =>
3) Updated instantion to detect port assignments on same line as port map keyword
4) Update case to ensure sequential assignment is not on same line as when keyword
5) Updated port assignment to ensure at least one space before :
2017-10-07 18:44:08 -05:00
Jeremiah Leary
d890e70dd8
Updates for rule renaming:
...
1) Renamed if rule to if_statement
2017-09-30 07:48:44 -05:00