Commit Graph

337 Commits

Author SHA1 Message Date
Michał Kruszewski d821a00de0 Improve process rules documentation. 2020-05-03 08:54:02 +02:00
Michał Kruszewski 67b5d52150 Improve documentation of procedure rules. 2020-05-03 08:18:42 +02:00
Michał Kruszewski 920db58148 Improve documentation of Generic Rules. 2020-04-08 10:35:34 +02:00
Michał Kruszewski 3afe6961ae Improve Generate Rules documentation. 2020-04-08 10:17:00 +02:00
Michał Kruszewski b21b00e1e4 Improve documentation of component_009. 2020-04-07 10:51:57 +02:00
Michał Kruszewski 2785ecbd82 Improve documentation of File Rules. 2020-04-07 10:49:58 +02:00
Michał Kruszewski cd11cf6973 Improve documentation of comment rules. 2020-04-07 10:48:56 +02:00
Michał Kruszewski 1e0c2d48c4 Improve Function Rules documentation. 2020-04-07 10:44:19 +02:00
Michał Kruszewski 8002817c8f Improve documentation of For Loop Rules. 2020-04-07 10:37:46 +02:00
Michał Kruszewski 4d033ffae4 Improve entity rules documentation.
Make entity rules documentation more
consistent with default rules settings.
2020-04-07 09:51:16 +02:00
Michał Kruszewski 9308f1f6fa Fix component rules documentation. 2020-04-06 20:34:27 +02:00
Michał Kruszewski acaddc02cb Improve architecture rules documentation. 2020-04-06 09:44:41 +02:00
Michał Kruszewski db485d1842 Adjust prefix/suffix rules to lowercase. 2020-04-03 17:39:47 +02:00
Michał Kruszewski e33c21d87a Minor documentation changes. 2020-04-03 16:08:04 +02:00
Jeremiah C Leary 6b4a45791d Updates for issue #362
Changing utils.get_violation_linenumber to utils.get_violation_line_number.
2020-04-01 21:11:38 -05:00
Jeremiah C Leary 01746e70ea Merge branch 'master' into issue-362 2020-03-31 21:16:50 -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 725dd544ee Merge branch 'master' into issue-362
Pulling in latest changes from master to avoid rework.
2020-03-29 13:27:19 -05:00
Jeremiah Leary 79fce00c0a
Merge pull request #358 from jeremiah-c-leary/issue-354
Merging in this pull request.  Issue #362 will perform final cleanup on some issues identified in this pull request.
2020-03-29 10:37:19 -05:00
Jeremiah C Leary e6d691ca06 Updates for issue #362:
Adding documentation for the violation dictionary.
2020-03-29 08:46:48 -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
Michał Kruszewski d90e126c87 Move comment rule 005 to case rule 021. 2020-03-29 11:40:03 +02:00
Michał Kruszewski 1ba47f234c Move comment rule 001 to library rule 009. 2020-03-29 09:21:15 +02:00
Jeremiah C Leary 946bef5ed0 Updates for issue #354:
Changing "Violations" to "Rule" in header.
2020-03-27 07:30:29 -05:00
Jeremiah C Leary 3e0da792b2 Updates for issue #354:
Adding link to online documentation.
2020-03-25 16:58:37 -05:00
Jeremiah C Leary a63a30900c Updates for issue #354
Updated usage documentation to show new output format.
Fixed bug where VSG would crash if there was not a violation found.
2020-03-25 16:45:45 -05:00
Jeremiah C Leary 4437e19f37 Updates for issue #354
Changed VSG output format to improve readability:

  1)  Updated documentation
  2)  Refactored rule and rule_list to move reporting to new report module
      a)  Removed rule.report_violations method
      b)  Added rule.get_violations_at_line method
  3)  Added vsg.report module
      a)  Added individual VSG and syntastic output files
  4)  Updated tests
2020-03-25 16:34:22 -05:00
Jeremiah Leary a3c28f1807
Merge pull request #357 from jeremiah-c-leary/issue-344
Merging in solution to Issue 344
2020-03-21 11:08:03 -05:00
Michał Kruszewski 0f0ec0f47c Refactor keyword alignment rules - part 2. 2020-03-17 11:22:25 +01:00
Jeremiah C Leary b2c2228ba1 Updates for issue #344
Added ability to set rule individual rule configurations.

  1)  Updated documentation
  2)  Updated parsing of configuration files to handle individual rule configurations.
2020-02-28 07:24:26 -06:00
Michał Kruszewski 2f08a64bda Refactor keyword alignment rules. 2020-02-24 21:14:44 +01:00
Jeremiah C Leary 777661841a Fixing headers in documentation. 2020-02-23 19:55:26 -06:00
Jeremiah C Leary 4986454772 Updates for issue #332
Single line concurrent statements are allowed as long as there is only one **else** keyword:

  1)  Updated documentation for rule concurrent_007
  2)  Created new tests
  3)  Updated existing tests
  4)  Updated rule concurrent_007 to allow for single line statements
  5)  Updated rule concurrent_007 to handle lines with multiple **else** keywords
2020-02-23 16:36:34 -06:00
Jeremiah C Leary 02d45aa813 Updating process rules that deal with upper and lower case to point to documentation on how to configure the rules for case. 2020-02-23 10:50:28 -06:00
Jeremiah C Leary 4c962c9bc6 Updates for issue #339:
The configuration of a single rule can be requested:

  1)  Added tests
  2)  Updated documentation
  3)  Updated code
2020-02-22 17:53:31 -06:00
Jeremiah C Leary 0f4f0ba88b Updates for issue #337
Updated rule architecture_005 to move the "of" keyword to the same line as the architecture keyword.

  1)  Updated tests
  2)  Updated code
  3)  Updated documentation
2020-02-21 22:23:28 -06:00
Michał Kruszewski 985ea8da9c Make architecture rules inherit from case rule. 2020-01-20 20:59:49 +01:00
Jeremiah Leary 374e4b0a5d
Delete debug
This was  a debug file I used to check for case rules in the documentation.
2020-01-07 06:52:12 -06: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
Michał Kruszewski c9e5dffefe Make entity and component rule 012 inherit from case_rule. 2020-01-04 10:34:51 +01:00
Michał Kruszewski 380d6856f9 Fix case rules for instantiation rules. 2020-01-02 11:58:32 +01:00
Michał Kruszewski a35faba2b9 Fix case rules for process rules. 2019-12-31 12:41:08 +01:00
Michał Kruszewski a27aaf56b8 Fix case rules for package rules. 2019-12-29 14:36:37 +01:00
Michał Kruszewski 9947bf187c Fix case rules for if_statement rules. 2019-12-28 11:48:06 +01:00
Michał Kruszewski 71b2b64c9d Fix case rules for generic rules. 2019-12-16 14:46:48 +01:00
Michał Kruszewski d166aa461b Fix case rules for port rules. 2019-12-11 21:42:10 +01:00
Michał Kruszewski 22d7c06fb8 Fix case rules for signal rules. 2019-12-07 12:44:36 +01:00
Michał Kruszewski ca1eeae7e4 Fix case rules for variable rules. 2019-12-06 10:44:30 +01:00
Jeremiah C Leary f0c474c695 Updates for issue #280:
The rule process_012 would add the *is* keyword to the end of the process sensitivity list without removing an *is* keyword if it existed on a different line.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated process classifier
  4)  Added isProcessIs line attribute
  5)  Updated rule process_012 to remove the *is* keyword if is exists on a seperate line.
2019-12-05 09:52:59 -06:00
Jeremiah C Leary 1a5aa37f7a Updates for issue #235:
Adding parenthesis alignment to rule concurrent_003.

  1)  Updated documentation
  2)  Added tests
  3)  Updated rule concurrent_003

NOTE:  This in an interim commit before refactoring.
2019-12-04 08:30:41 -06:00
Jeremiah C Leary bd5b882326 Updates for issue #288:
Updated generate case rules to allow for configuring upper or lower case.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules generate_005 and generate_010 to allow for upper or lower case.
2019-12-01 09:16:49 -06:00
Jeremiah C Leary c603a9b5dc Updates for issue #288:
Updated function case rules to allow for configuration of either upper or lower case.

  1)  Updated documentation
  2)  Added tests
  3)  Updated rule function_005 so it can be either upper or lower case
2019-12-01 08:12:17 -06:00
Jeremiah C Leary be51fdff4a Updates for issue #288:
Updated rule for_loop_003 to allow for case configuration.

  1)  Updated documentation
  2)  Updated tests
  3)  Update rule for_loop_003 to allow for upper or lower case.
2019-12-01 07:51:17 -06:00
Jeremiah C Leary 082424a54a Updates for issue #288:
Fixing default values for rule entity_006 and entity_014 from uppercase to lowercase.
2019-11-30 17:29:38 -06:00
Jeremiah C Leary b05b979470 Updates for issue #288:
Updated entity case rules to allow for configuration upper or lower case.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules entity_006 and entity_014
2019-11-30 17:27:32 -06:00
Jeremiah C Leary 620c13ad20 Updates for issue #288:
Updated architecture case rules to allow for upper or lower case.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated the following rules:

      architecture_006
      architecture_012
      architecture_014
2019-11-30 15:16:20 -06:00
Jeremiah C Leary 950c19dd26 Updates for issue #288:
The follow case rules were made configurable:

  architecture_004
  architecture_019
  architecture_020
  architecture_021

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules
2019-11-30 10:29:26 -06:00
Jeremiah C Leary 1b869ff8af Updates for issue #288:
Updated rules architecture_013 and architecture_014 so their case can be user defined.

  1)  Updated documentation
  2)  Added tests
  3)  Updated rules architecture_013 and architecture_014
2019-11-30 08:40:33 -06:00
Jeremiah C Leary 9b7e7b179f Updates for issue #288:
Updated rule architecture_011 to allow the user to set the case for the architecture name.

  1)  Updated documentation
  2)  Added test
  3)  Updated rule arechitecture_011
2019-11-30 08:09:10 -06:00
Jeremiah C Leary a04bb4cd16 Updates for issue #288:
Updated rule entity_012 to allow for upper or lower case.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rule entity_012
2019-11-29 09:42:09 -06:00
Jeremiah C Leary fa3e67d598 Updates for issue #276:
Added two rules to handle setting the case for range keywords **to** and **downto**.

  1)  Added documentation
  2)  Added tests
  3)  Added rules range_001 and range_002
2019-11-29 08:38:30 -06:00
Jeremiah C Leary d4319c1ab6 Fixing heading styles. 2019-11-27 12:28:39 -06:00
Jeremiah C Leary a918976c22 Updates for issue #278:
Added subphases to allow rules within a phase to be executed in the proper order.

  1)  Updated documentation
  2)  Added subphases to rule_list.fix() method
2019-11-27 07:44:27 -06:00
Jeremiah C Leary 144473f164 Updates for issue #271
Adding rule length_001 to check for line length violations:

  1)  Added documentation
  2)  Added tests
  3)  Added rule length_001
2019-11-10 14:53:48 -06:00
Jeremiah C Leary 7b157f86aa Updates for issue #282
Added rule to ensure signal declarations are on a single line.

  1)  Added documentation
  2)  Added tests
  3)  Added rule signal_016
2019-11-10 08:33:38 -06:00
Jeremiah C Leary 8abcf7877b Updating documentation for rule signal_015. 2019-11-10 06:51:34 -06:00
Jeremiah C Leary 5696c3a678 Updates for issue #282:
Adding rule signal_015 to handle a signal declared over multiple lines:

  1)  Added documentation
  2)  Added test
  3)  Added rule signal_015

NOTE:  Only the detection portion has been added.  The fix will be added next.
2019-11-03 20:06:38 -06:00
Jeremiah C Leary 15308e63fc Resolving warnings in documentation.
issue #269
2019-10-17 07:10:31 -05:00
Michał Kruszewski 996febb7a0 Add prefix and suffix rules. 2019-10-16 11:53:58 +02:00
Jeremiah Leary edf8abe371
Adding images to show now to run VSG from Notepad++ 2019-10-13 20:59:52 -04: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 112bb79cd6 Updates for issue #256:
Added rule whitespace_013 to enforce a space around logic operators.

  1)  Added documentation
  2)  Added tests
  3)  Added rule whitespace_013
2019-10-13 07:22:01 -05:00
Jeremiah C Leary 0b4c10ee5c Updates for issue #265:
Adding rule architecture_025 to enforce naming of architectures.

  1)  Added tests
  2)  Added documentation
  3)  Added rule architecture_025
2019-10-12 21:04:43 -05:00
Jeremiah C Leary a0ccff78ab Adding documentation on how to change the default value for lowercase and uppercase rules. 2019-10-12 09:24:25 -05:00
Jeremiah Leary db5023db51
Merge pull request #264 from m-kru/master
Update docs.
2019-10-12 09:34:44 -04:00
Michał Kruszewski fbd038c681 Update docs. 2019-10-12 10:09:50 +02:00
Jeremiah C Leary 1031fac933 Fixing rendering issue for JSON in Note for instantiation rules documentation. 2019-10-11 15:32:03 -05:00
Jeremiah C Leary 1acc2a9623 Updates for issue #260:
Adding information on how to run tests to the contributing section of the documentation.
2019-10-11 15:30:07 -05:00
Michał Kruszewski 2b9c9a7f8d Add rule for checking if generic name starts with G_. 2019-09-24 21:05:28 +02:00
Jeremiah C Leary 2eb03b720a Updates for issue #248:
Added rule after_003 to detect and remove after assignments in a reset portion of a clock process:

  1)  Added documentation
  2)  Added rule after_003
  3)  Added tests
2019-09-08 07:01:39 -05:00
Jeremiah C Leary b49228af3f Updating usage for version argument. 2019-07-03 21:00:43 -05:00
Jeremiah C Leary d9d1940cda Updates for issue #195
Added rule to align after keyword in clock processes.

  1)  Added documentation
  2)  Added rule after_002
  3)  Added tests
2019-06-28 19:31:10 -05:00
Jeremiah C Leary 952e4771b9 Update for issue #196:
Added fix logic for rule after_001.
  1)  Added configurable attributes magnitude and units
  2)  Updated documentation
  3)  Updated tests
  4)  Updated clock process classification to detect clock processes without resets
2019-06-28 18:43:40 -05:00
Jeremiah C Leary e6ff07855c Updates for issue #196
Adding test for after statement in clock process:

  1)  Enhanced testing
  2)  Added after_001 rule
  3)  Updated documentation
  4)  Fixed bug in detecting the end of a sequential statement
  5)  Updated classification logic
2019-06-28 15:12:44 -05:00
Jeremiah C Leary 68c6a3860c Updates for issue #245
Fixed conflict between comment_007 and comment_008.

  1)  Renumbered comment_007 to comment_010.  This ensures it is ran after comment_008.
  2)  Updated documentation
  3)  Updated tests
2019-06-28 10:38:23 -05:00
Jeremiah C Leary 9dfa8c81cc Fixing indent on NOTE. 2019-06-28 10:36:38 -05:00
Jeremiah C Leary 3623151b5b Updates for issue #246
1) Added version argument to display version.
2) Refactored version information to reside in a single file.
   a)  setup.py references this file
   b)  conf.py references this file
   c)  version argument references this file
2019-06-28 07:48:37 -05:00
Jeremiah C Leary 5c2df4e44b Preparing for release 0.38. 2019-06-09 21:11:38 -05:00
Jeremiah C Leary 8c8d89b3e6 Updates for issue #231:
Added more documentation on how to write a rule.
Added comments to methods of rule class.
2019-06-09 15:29:18 -05:00
Jeremiah C Leary 1794194dff Adding instructions on how to align constant, signal, type, subtype, and file declarations. 2019-06-09 15:28:20 -05:00
Jeremiah C Leary 5f24ef6f9b Updates for issue #241:
The spacing after "signal", "constant", "file", "type", and "subtype" keywords is configurable.

  1)  Added tests
  2)  Refactored code to allow for configurable spacing
  3)  Added subtype_003 rule
  4)  Updated documentation
2019-06-09 11:48:07 -05:00
Jeremiah C Leary a7d0aa556d Updates for issue #237
Added rule constant_014 to handle multiline non array constants:

  1)  Added documentation
  2)  Fixed rule constant_012 so it does not fire on non array constants
  3)  Added rule constant_014
  4)  Added tests
  5)  Added classification of array constants
2019-06-08 11:22:31 -05: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 46d57be6db Updates for issue #239:
Clarified constant_010 to state a single space before the :=.

  1)  Updated documentation
  2)  Updated tests to cover more than one space before the :=
  3)  Updated solution for constant_010
2019-06-07 22:16:21 -05:00
Jeremiah C Leary 50f90c2f03 Updates for issue #240:
Updated instantiation_004 rule to allow for comments on the line above an instantiation.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rule
2019-06-07 21:54:12 -05:00
Jeremiah C Leary 4590726788 Updates for issue #233
Added rules for comments above elsif and else keywords:

  1)  Added documentation
  2)  Added tests
  3)  Added comment_008 and comment_009 rules
2019-06-07 21:40:59 -05:00
Jeremiah C Leary fcb59f21d4 Updates for issue #238:
Added generic_019 to check for blank lines above the );.

  1)  Added documentation
  2)  Added tests
  3)  Refactored generic tests to use setUp method
  4)  Implemented rule
2019-06-06 20:08:04 -05:00
Jeremiah C Leary e6240f87d0 Updates for issue #238:
Added rule to check for blank lines before the ); for port maps.

  1)  Added documentation
  2)  Added tests
  3)  Refactored port tests and added a setUp proc
  4)  Added rule
2019-06-06 18:44:49 -05:00
Jeremiah C Leary 7274b684d2 Preparing for release 0.37. 2019-04-29 20:38:10 -05:00
Jeremiah C Leary ddf19ddfd0 Updating documentation. 2019-04-11 08:10:37 -05:00