Commit Graph

45 Commits

Author SHA1 Message Date
Michał Kruszewski 0f0ec0f47c Refactor keyword alignment rules - part 2. 2020-03-17 11:22:25 +01:00
Michał Kruszewski 2f08a64bda Refactor keyword alignment rules. 2020-02-24 21:14:44 +01:00
Jeremiah C Leary dd4ff0bb08 Updates for issue #295
Remerging pull request #293.
2019-12-01 16:57:57 -06:00
Jeremiah Leary ed7738c341
Revert "Make instantiation rule_011 inherit from case_rule." 2019-11-23 07:12:04 -06:00
Michał Kruszewski 2a20fbffcf Make instantiation rule_011 inherit from case_rule.
During this change it turned out that there was a bug in how
case was fixed for case rule. It is now fixed, because words that
needs fixing are now stored per line, not per file like it was
previously.
2019-11-21 18:28:57 +01:00
Jeremiah C Leary c9f44e9e32 Updates for issue #282:
VSG would crash if the closing ; was not on the same line as the signal keyword.
Created rule signal_015 to handle the general case of multiple signals declared in a single signal declaration over multiple lines.

  1)  Created test cases
  2)  Updated documentation
  3)  Added rule signal_015
2019-11-10 06:35:50 -06:00
Jeremiah C Leary 5ff258c1fe Updates for issue #267:
Updated rule generate_011 to add generate label to "end generate" line.

  1)  Added test
  2)  Updated rule generate_011
2019-10-14 21:01:48 -05:00
Jeremiah C Leary 23bc434ff6 Updates for issue #257:
Process labels not on the same line as the process must be moved to the same line as the process keyword.

  1)  Updated documentation
  2)  Added tests
  3)  Added rule process_032
2019-10-13 11:16:29 -05:00
Jeremiah C Leary 246ec03dd1 Updates for issue #263
Rules generic_013 and port_016 were not handling std_logic_vectors:

  1)  Updated tests
  2)  Updated rule generic_013
  3)  Updated rule port_016
2019-10-11 15:27:09 -05:00
Michał Kruszewski c63da7b0d5 Make port rule 010 use case_rule as a base. 2019-10-07 13:46:59 +02:00
Jeremiah C Leary 7c68c55ca5 Updates for issue #236:
Updated assert_001 to indent everything after the assert statement.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated assert_001 rule
2019-06-07 22:32:08 -05:00
Jeremiah C Leary aae2fc9a4e Updates for issue #224
Adding case consistency checks for variable names:

  1)  Added documentation
  2)  Added tests
  3)  Added rule variable_011
2019-03-31 09:54:08 -05:00
Jeremiah C Leary ac04afe067 Updates for issue #224
Adding case consistency checks for constants.

  1)  Added documentation
  2)  Added tests
  3)  Added rule constant_013
2019-03-31 07:38:35 -05:00
Jeremiah C Leary 0c87b5bb70 Updates for issue #224
Switched general_001 to signal_014:

  1)  Removed rule general_001
      a)  Removed documentation
      b)  Removed tests
      c)  Removed rule
  2)  Added signal_014 to validate signal names are consistently cased
      a)  Added documentation
      b)  Added tests
      c)  Added rule signal_014
      d)  Added extract_signal_names procedure in utils.py
2019-03-30 20:11:13 -05:00
Jeremiah C Leary c314cd0430 Updates for issue #224
1)  Added general_001 to look for inconsistent capitalization
      a)  Added tests
  2)  Updated variable_010 to ignore everything after the "range" in a variable definition
      a)  Updated tests
2019-03-27 22:42:58 -05:00
Jeremiah C Leary ddf6b89587 Updates for Codacy issues. 2019-03-02 09:13:33 -06:00
Jeremiah C Leary ba0efcec89 Updates for issue #210
1)  Architecture name is now added to the end architecture line
  2)  Updated tests
2019-03-02 08:00:13 -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
Clifton Somers aca8cce884 successfully implemented process label fixingw 2019-02-16 14:04:23 -06:00
Jeremiah C Leary 78ba6e0706 Updates for issue #197
1) Renumbering signal_009 to signal_013 to ensure it runs after signal_012.
2) Fixed code examples
2019-02-10 22:20:29 -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 bf9f5779cd Updates for issue #192
1)  Reduced scope of constant_009 to the architecture declaritive region
  2)  Refactored constant fix tests to be independent using the setUp method
  3)  Updated documentation
2018-12-17 21:03:35 -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 df768040a4 Updates for issue #185
Added rule signal_011 to lowercase all signal names.

  1)  Added rule signal_011
  2)  Made signal_010 disabled by default
  3)  Updated documentation
  4)  Added tests
2018-12-07 18:46:34 -06:00
Jeremiah C Leary c3717b1064 Updates for issue #170
Adding whitespace_011 to enforce at least a single space around math operators.

  1)  Added test
  2)  Added documentation
  3)  Added rule
  4)  Updated code example fixed files
2018-12-07 12:54:08 -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 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 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 3ac8139d5c Updates for issue #146:
1)  Updated remove_spaces_before_character rule which whitespace_004 inherited.
  2)  Updated tests
2018-05-21 04:37:38 -05:00
Jeremiah C Leary aa6ad0f388 Updates for issue #142:
1)  Enhanced test for comment_007
  2)  Updated comment_007 so it actually fixed the indent
2018-05-17 04:49:54 -05: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 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 4ee65c23a2 Code style updates flagged by Codacy. 2017-12-23 21:22:24 -06:00
Jeremiah C Leary ccd896f13e Fixed classification of concurrent assignments when () was in the name. 2017-12-14 20:02:19 -06:00
Jeremiah C Leary 803cc0834e Fixed issue with concurrent_002 not removing extra spaces due to a '.
Fixed issue with instantion_012 not fixing issues from the bottom up.
2017-12-14 10:39:30 -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 2d40fcb43d Updates for issue #83:
1) Fixed splitting of multiple port assignments on a single line.
  2) Added source code example
2017-12-12 20:55:43 -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 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 70a239b107 Updates for issue #112
1)  Added constant_011, generic_017
  2)  Updated signal_010
  3)  Added documentation
  4)  Updated tests
  5)  Updated code examples
2017-12-10 16:43:16 -06:00
Jeremiah C Leary 9d184f4b6a Updates for issue #113
1)  Added whitespace_008
  2)  Updated tests
  3)  Added documentation
2017-12-10 10:14:07 -06:00
Jeremiah C Leary 96d9fc9608 Updates for code example c16. 2017-12-09 21:05:50 -06:00
Jeremiah C Leary c2b9c0a081 Added graphicsaccelerator code sample and updated rules. 2017-12-09 19:58:01 -06:00
Jeremiah C Leary c6a211d080 Adding code examples and tests to verify fixes. 2017-12-09 12:04:49 -06:00