Commit Graph

38 Commits

Author SHA1 Message Date
Jeremiah Leary 6056c9df9d Updates for issue #382:
VSG was classifying the when keyword in a sequential assignment as a case when keyword.

  1)  Updated tests to detect the issue
  2)  Updated code to make test pass
2020-05-01 18:36:23 -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 d90e126c87 Move comment rule 005 to case rule 021. 2020-03-29 11:40:03 +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 f7fc866fbc Updates for issue #335
Updated case rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:49:23 -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 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
Michał Kruszewski 694625b024 Make case rule 014 use case_rule as a base. 2019-10-07 16:13:27 +02:00
Jeremiah C Leary 1948b70444 Updates for Codacy issues:
Removing trialing whitespaces.
2019-03-10 12:19:16 -05:00
Jeremiah C Leary ddf6b89587 Updates for Codacy issues. 2019-03-02 09:13:33 -06: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 ec35a15d3a Updates for issue #191
Added rules case_019 and case_020 to remove labels on case statements:

  1)  Added rule case_019
  2)  Added rule case_020
  3)  Added documentation
  4)  Added tests
  5)  Fixed mis-classification of cases with labels
2018-12-12 19:03:15 -06:00
Jeremiah C Leary e8de82199d Updates for codacy issues. 2018-12-12 15:45:40 -06:00
Jeremiah C Leary de63c043aa Updates for issue #184
1)  Added case_018 to check for lower case "case" keyword in "end case"
  2)  Fixed documentation for case_017
  3)  Added strip semicolon function to utilities
  4)  Updated lower case rule to strip semicolons
2018-11-29 21:26:58 -06:00
Jeremiah C Leary f8e2bc0e13 Updates for issue #184
1)  Added case_017 rule to check for lowercase end keyword in end case.
2018-11-29 21:01:23 -06:00
Jeremiah C Leary 04d960a6b9 Updates for issue #184
1)  Added case_016 to check for lowercase when keyword
2018-11-29 20:49:45 -06:00
Jeremiah C Leary 2b92cd1830 Updates for issue #184
1)  Added case_015 to check for lowercase is keyword
  2)  Refactored lower_case_rule.py to check every word in a non commented line instead of just the first.
2018-11-29 20:33:58 -06:00
Jeremiah C Leary 2788662c4d Updates for issue #184
Added case_014 to check for lowercase "case" keyword.
2018-11-29 20:10:36 -06:00
Jeremiah C Leary 7f4230fddb Updates for issue #158:
1)  Allowing comments on line before case keyword
  2)  Updated tests
  3)  Updated documentation
2018-08-28 14:14:52 -05:00
Jeremiah C Leary ec29156679 Updates for issue #155
1)  Updated tests to detect issue
  2)  Updated utilities.reclassify_line to not classify null statements as sequential statements
2018-08-18 07:17:11 -05:00
Jeremiah C Leary 4ccbfc5f75 Updates for issue #156
1)  Updated tests to detect comment issue
  2)  Updated utilities.reclassify_line to detect comment
2018-08-18 06:54:40 -05:00
Jeremiah C Leary b055aa9b1f Removing unused imports to address Codacy issues. 2017-12-24 07:32:32 -06:00
Jeremiah C Leary b02506109f Updates for issue #16
1)  Added rule comment_005
  2)  Added documentation
  3)  Added test cases
  4)  Refactored case classification to remove indenting comments above when keywords
      a)  Updated tests
2017-12-13 22:16:07 -06:00
Jeremiah C Leary 38cc1c4ae9 Updates for case_012:
1)  Fixed crashing issue
  2)  Fixed indenting of code after =>
2017-12-13 19:22:19 -06:00
Jeremiah C Leary 185d891b77 Updates for issue #87 and #89
1)  Fixed when being classified as a sequential statement
  2)  Refactored if_022 and if_024
  3)  Added code example
  4)  Enhanced testing
2017-12-13 06:26:19 -06:00
Jeremiah C Leary 65ab5066ff Updates for issue #95
1)  New test class indent_rule added
  2)  Added rule for indenting nulls in cases
2017-12-02 19:21:25 -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 cd908b8e78 Updates for issue #78
1)  Fixed issue in which lines being split were being deleted instead.
2017-11-25 11:23:19 -06:00
Jeremiah C Leary d3fed0055e Updates for issue #23
1)  Added fixes for rules
2017-11-22 21:23:36 -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 86d82ccb42 Updates for issuei #15:
1)  Added detection for case(boolean)is
2017-11-13 20:04:46 -06: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 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