Commit Graph

31 Commits

Author SHA1 Message Date
Martin Dörfelt b90d94cbcf added rules for generate and process label prefixes 2020-06-25 21:42:27 +02:00
Jeremiah Leary de942890b3 Updates for issue #385:
The rule process_031 was attempting to align variables defined in function and procedures with variables outside functions and procedures in the process declarative region.

  1)  Updated tests to expose issue
  2)  Fixed to make tests pass

Additional issue found with handling indents on processes with just 'process is' when updating tests.

  1)  Fixed code to make tests pass
2020-05-09 09:12:19 -05:00
Jeremiah Leary cafe651a15 Updates for issue #379:
Rule process_019 was not honoring records.

  1)  Updated tests
  2)  Updated clock detection
  3)  Update rule process_019
2020-04-27 20:20:51 -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
Jeremiah C Leary 7d85a98db4 Updates for issue #362:
Interim commit to move all rules to new violation dictionary format.
2020-03-29 13:09:38 -05:00
Jeremiah C Leary b32eb8ffe6 Updates for issue #335:
Updated process rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 09:51:38 -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 aca83b6b03 Updates for issue #335
Updated rules using the single_space_before_character_rule to use dictionaries in the violation attribute.

  1)  Updated tests
  2)  Updated code
2020-02-15 19:13:40 -06:00
Jeremiah C Leary 2dc372a6f4 Updates for issue #335
Updated rules using is_single_space_after_character_rule to use dictionaries for entries in the violation list.

  1)  Updated tests
  2)  Updated code
2020-02-15 18:58:47 -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
Jeremiah C Leary 54cefdb6cf Merge branch 'master' of https://github.com/jeremiah-c-leary/vhdl-style-guide 2020-02-15 10:05:57 -06:00
Jeremiah C Leary e8f3f4ad71 Updates for issue #335
Switched self.dFix in process_018 to use dViolation.

  1) Added additional test case
  2) Updated code
  3) Updated existing test case
  4) Added function to test.utils to add the proper formatting of violations during the check.
2020-02-15 09:53:44 -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 f684b4b0a7 Updates for issue #319:
Added ability to configure either 'event or _edge for clock definitions:

  1)  Updated documentation
  2)  Added isClockDefinition to line object
  3)  Updated process classification to set isClockDefinition
  4)  Updated tests
  5)  Updated rule process_029
2020-01-06 22:18:07 -06:00
Jeremiah C Leary 8acd9604c0 Updates for issue #232:
Updated process_030 to specifically look for a single signal every line of a sensitivity list.

  1)  Updated tests
  2)  Updated rule
2019-06-08 15:22:15 -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 43e0259612 Updates for issue #154
Added process_030 to detect a single signal on a single line of a process sensitivity list, minus the last line.

  1)  Added test
  2)  Added rule
  3)  Added documentation
2018-12-06 17:44:32 -06:00
Jeremiah C Leary 2ac0e8ee8e Updates for issue #184
Added support for processs without sensitivity lists.
2018-12-01 10:09:17 -06: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 b055aa9b1f Removing unused imports to address Codacy issues. 2017-12-24 07:32:32 -06:00
Jeremiah C Leary 14767e773d Updates for issue #96
1)  Added process_029
  2)  Added tests
  3)  Updated code examples
  4)  Added documentation
2017-12-10 18:33:17 -06:00
Jeremiah C Leary 1dcbfd87b6 Updates for issue #101
1)  Removed checking of closing parenthesis from process_020.
  2)  Added process_028 to check for alignment of closing parenthesis.
  3)  Added tests
  4)  Added documentation
2017-12-07 06:34:17 -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 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