Commit Graph

52 Commits

Author SHA1 Message Date
Jeremiah Leary d164cba484 Updates for issue #402:
Adding rule severity feature:

  1)  Added documentation
  2)  Code updates
      a)  Added new module vsg.severity
      b)  Upated code to handle rule severities
  3)  Added tests vsg/tests/severity
2020-07-04 13:55:15 -05:00
Jeremiah Leary f477a560f8
Merge pull request #397 from jeremiah-c-leary/issue-350
Implementation of Issue 350
2020-06-23 18:53:37 -05:00
Michał Kruszewski c6b7c3ee90 Split if_028. 2020-06-23 10:47:09 +02:00
Jeremiah Leary a1322167a4 Updates for issue #350:
Refactored methods fix and check_rules on rule_list class to use defaults:

  1)  Updated methods fix and check_rules
  2)  Updated tests
2020-05-20 07:14:05 -05:00
Jeremiah Leary 7d7712a6e7 Updates for issue #350:
Adding minimal style:

  1)  Added minimal configuration YAML file
  2)  Added Ability to skip phases via style configuration
  3)  Added style tests
2020-05-19 16:53: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 9cab593876 Move comment rules 008 and 009 to if rules 032 and 033. 2020-03-29 12:46:52 +02:00
Jeremiah C Leary df72883c68 Updates for issue #335
Updated if rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:44:42 -06:00
Jeremiah C Leary ddc32f8ed9 Updates for issue #335:
Updated tests using the indent base rule to use dictionaries for the violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 08:27:55 -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 1457ef9316 Updates for issue #335:
Updated tests using base rule vsg.rules.remove_blank_lines_above_rule to use the violations attribute as a list of violation dictionaries.

  1)  Updated code
  2)  Updated tests
2020-02-15 18:38:51 -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
Jeremiah C Leary 53969af391 Updates for issue #335
Updated rules based on rules.line_below_rule to use the violations attribute to fix violations.

  1)  Updated base rule rules.line_below_rule
  2)  Updated tests
2020-02-15 15:36:42 -06:00
Jeremiah C Leary 128b080f49 Updates for issue #335
Updated rules based on the line_above_rule.

  1)  Updated line_above_rule
  2)  Updated tests
2020-02-15 15:13:57 -06:00
Michał Kruszewski 7666fae485 Make case_rule to use violations attribute for fixing errors. 2020-02-15 16:51:01 +01: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 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