Commit Graph

631 Commits

Author SHA1 Message Date
Jeremiah Leary 1c1dc3ccd0 Adding generic clause objects. 2020-08-02 11:19:42 -05:00
Jeremiah Leary f32d4e1a1b Adding component objects.
Refactoring objects into a token library instead of a parser file.
2020-08-02 08:48:18 -05:00
Jeremiah Leary b993b2a746 Adding attribute objects. 2020-08-01 18:57:21 -05:00
Jeremiah Leary edc846b549 Added file objects.
Cleaned up some issues with classifiers not checking lower case for keywords.
2020-08-01 18:36:57 -05:00
Jeremiah Leary 16e8c1cb27 Adding variable declaration objects. 2020-08-01 16:48:03 -05:00
Jeremiah Leary ed26959607 Adding assert objects. 2020-08-01 15:24:07 -05:00
Jeremiah Leary 6b7b7142bc Refactoring token generation:
1)  Updated test to expose an issue
  2)  Rewrote tokens.py to be more readable
  3)  Fixed issue which prompted touching tokens.py
2020-08-01 12:15:44 -05:00
Jeremiah Leary 4013b5a783 Adding objects for constants. 2020-07-31 21:27:32 -05:00
Jeremiah Leary 0543b7c198 Added parsing of signals into objects. 2020-07-31 21:01:42 -05:00
Jeremiah Leary d4d9a1460e Adding objects for package bodies. 2020-07-31 15:57:10 -05:00
Jeremiah Leary 585fedfc7a Adding parsing of entity into objects. 2020-07-31 12:33:08 -05:00
Jeremiah Leary 7b61836e8b Adding parsing of architecture elements into objects using the parser. 2020-07-31 10:58:59 -05:00
Jeremiah Leary ffaa52ce6d Merge branch 'master' into issue-393 2020-07-30 20:45:48 -05:00
Jeremiah Leary 33c1136171 Updates for issue #441:
Addressing issue where commented out generic map was being treated as code.

  1)  Updated test to show issue
  2)  Updated code to address issue
2020-07-28 08:18:20 -05:00
Jeremiah Leary 9cf81ea67a Updates for issue #402:
Mocking the number of rules ran to make tests more robust.
2020-07-28 07:32:10 -05:00
Jeremiah Leary 862b5aab77
Merge branch 'master' into issue-402 2020-07-27 20:52:53 -05:00
Jeremiah Leary a0a5be2f3b Updates for issue #393:
Refactored remaining context rules to use rule_item class.
2020-07-27 18:44:34 -05:00
Jeremiah Leary c303b28d23 Updates for issue #393:
Refactoring rules:

  1)  insert blank line base rules refactored
  2)  refactored context_023 and context_025
2020-07-27 17:53:34 -05:00
Jeremiah Leary 1eab03f141 Updates for issue #393:
Refactoring new base rules for maintainability and readability.
2020-07-27 08:28:26 -05:00
Jeremiah Leary ba5ae10b8e Updates for issue #393:
Adding two new library rules:

  1)  Added rules library_010 and library_011
  2)  Added tests
  3)  Added documentation
2020-07-26 14:48:02 -05:00
Jeremiah Leary abe3cb3418 Updates for issue #393:
Refactoring of library and base rules:

  1)  Most library rules refactored to use new base item rules
  2)  Base item rules refactored to use the region method on vhdlFile
  3)  Tests updated
  4)  Documentation updated
2020-07-26 12:54:43 -05:00
Jeremiah Leary 69fc6fdef6 Updates for issue #393:
Adding rules for context references.

  1)  Added context reference rules 001 through 005
  2)  Refactored base rules to allow it to pull code from rule defined regions
  3)  Refactored context rules to match base rule changes
  4)  Added tests
  5)  Updated documentation
  6)  Updated context classifier
  7)  Added set_indent_levels method to vhdlFile class
2020-07-25 20:48:28 -05:00
Jeremiah Leary 711507a2f4 Updates for issue #393:
Add ability to parse context references:

  1)  Added parser classes
  2)  Added test
  3)  Modified context classifier to handle context references
2020-07-25 15:06:01 -05:00
Jeremiah Leary 1b7fe624f0 Updates for issue #393:
Adding another rule:

  1)  Added context_011
  2)  Added another base rule
  3)  Updated tests
  4)  Added context rule documentation to rules.rst
2020-07-24 06:23:37 -05:00
Jeremiah Leary 4468defa09 Updates for issue #393:
1)  Refactored new base rules:
      a)  Including debug message
      b)  Fixed reporting of solutions

  2)  Updated tests
2020-07-23 20:51:27 -05:00
Jeremiah Leary e42d0a3002 Updates for issue #393:
Adding more context rules:

  1)  Added base rule indent_item_rule
  2)  Added indent rules
  3)  Updated classifiers to handle context indents
2020-07-22 18:48:33 -05:00
Jeremiah Leary 12f6047b68 Updates for issue #393:
Adding more context rules:

  1)  Added rules
  2)  Added base rules
  3)  Added tests
  4)  Updated documentation
2020-07-22 15:03:46 -05:00
Jeremiah Leary cfa05b0083 Updates for issue #393:
Adding more context rules:

  1)  Added rule context_008

  2)  Added base rule
      a)  move_item_and_items_to_the_right_to_next_line_rule
2020-07-21 08:35:19 -05:00
Jeremiah Leary 0e226ec6de Updates for issue #393:
Additional context rules added:

  1)  New rules added
      a)  context_007
      b)  context_021
      c)  context_022

  2)  New base rules added
      a)  insert_item_after_item_rule
      b)  copy_item_value_and_insert_new_item_after_item_rule
      c)  move_items_after_item_to_next_line_rule

  3)  Updated classifiers to use objects
      a)  library
      b)  use

  4)  Added tests
2020-07-21 07:45:20 -05:00
Jeremiah Leary 9fda36ecdb Updates for issue #393:
Adding more context rules:

  1) Added two more base rules:
       space_after_item_rule
       space_between_items_rule

  2) Added new context rules:
       context_017
       context_018
       context_019

  3) Added tests

  4) Updated documentation
2020-07-20 08:33:09 -05:00
Jeremiah Leary 328b8b336c Updates for issue #393:
Adding new rules for context declarations:

  1)  Added base rules move_item_rule and new_case_rule
  2)  Added new rules:
        context_006
        context_009
        context_010
        context_011
        context_012
        context_013
        context_014
        context_015
        context_016
  3)  Updated documentation
  4)  Added tests
2020-07-19 20:56:56 -05:00
Jeremiah Leary d1ae9928c3 Updates for issue #393:
Adding new rules for context declarations:

  1)  Added context rule documentation
  2)  Added parsing of context declarations
      a)  Experimenting with using objects
  3)  Adding rules 002, 003, 004 and 005.

NOTE:  These new rules need to be refactored before they are merged back to master.
2020-07-19 16:01:29 -05:00
Jeremiah Leary 3aeca176d7 Updates for issue #414:
Adding debug output capabilities:

  1)  Added --debug CLA

NOTE:  Tests were not updated
NOTE:  Documentation was not updated
(cherry picked from commit a88f44d8ad1fd0570c550b842a50e274aaf69046)
2020-07-18 12:13:59 -05:00
Jeremiah Leary 0c8ee8da31 Updates for issue #404:
Fixing issue where signal_015 would crash if commas existed after the : in the signal declaration.

  1)  Adding test to expose issue
  2)  Updated rule signal_015 to make the test pass

(cherry picked from commit 305124a55f8deb038ec32b63e3553c382e05f81d)
2020-07-18 11:47:55 -05:00
Jeremiah Leary bb123a5a7c
Merge pull request #433 from jeremiah-c-leary/issue-432
Issue 432
2020-07-17 14:40:27 -05:00
Jeremiah Leary b401e92076 Adding filtering of warning severity types from JUNIT file. Issue #402
1)  Updated documentation
  2)  Added tests to validate filtering
  3)  Updated code to make test pass
2020-07-17 07:54:29 -05:00
Jeremiah Leary 095377afbf Updates for issue #402
Refactored code to make it easier to maintain.
2020-07-04 15:34:18 -05:00
Jeremiah Leary 34e0adbf55 Updates for issue #402:
Fixing tests which are failing after adding severity to the configuration list.
2020-07-04 14:11:46 -05:00
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 203f524c1c Updates for issue #399
Adding rule semicolon_001 to check for consecutive semicolons:

  1)  Added documentation
  2)  Added test
  3)  Added helper functions to vsg.utils
  4)  Added rule semicolon_001
2020-07-03 08:47:39 -05:00
Jeremiah Leary c7d7005bdd Updates for issue #434:
Adding ability to configure grouping by comments and blank lines.

  1)  Added tests
  2)  Updated documentation
  3)  Updated code based on keyword_alignment_rule
2020-06-30 14:16:41 -05:00
Jeremiah Leary 7a3fcf9883 Updates for issue #434:
Adding rules to align declaration identifiers:

  1)  Updated documentation
  2)  Removed the following rules
      file_003, constant_003, attribute_003, signal_003, subtype_003, type_003 and variable_003
  3)  Added new rules:
      architecture_029, function_015, package_019, procedure_010 and process_037
  4)  Added tests for new rules
  5)  Updated classifiers to support new rules
2020-06-30 11:36:01 -05:00
Jeremiah Leary ec9b205d51 Merge branch 'master' into issue-432 2020-06-27 09:03:59 -05:00
Martin Dörfelt b90d94cbcf added rules for generate and process label prefixes 2020-06-25 21:42:27 +02:00
Jeremiah Leary 02b3835381 Updates for issue #432:
Adding rule architecture_029 to align idenifiers in signal, constant, variable, file, type and subtype declarations.

  1)  Updated documentation
  2)  Added tests
  3)  line class updates
      a)  Added new architecture attribute
      b)  Added new method to update the line attributes from tokens
  4)  Added rule architecture_029
2020-06-25 09:58:49 -05:00
Jeremiah Leary 5d10da9784 Updates for issue #432:
Reviewed rules which were enforcing single spaces:

  1)  Updated constant_010 to allow to enforce at least 1 space
  2)  Updated tests
2020-06-23 20:16:17 -05:00
Jeremiah Leary a8034d4dd4 Fixing failing test. 2020-06-23 19:51:41 -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 0c1224379f Add rules for checking case of "end procedure". 2020-06-23 15:19:52 +02:00
Michał Kruszewski a61f9ad504 Add rules for checking case of "end function". 2020-06-23 14:05:47 +02:00