Commit Graph

643 Commits

Author SHA1 Message Date
Jeremiah Leary ffaa52ce6d Merge branch 'master' into issue-393 2020-07-30 20:45:48 -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 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 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 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 a6083d3f53 Updates for issue #399
Addressing codeclimate issues.
2020-07-03 09:10:11 -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 9839f4a164 Updates for #434:
Removing commented out code.
2020-06-30 14:22:56 -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
Jeremiah Leary 58b16cc01b Updates for issue #432:
Abstracting architecture_029 to identifier_alignment_rule.
2020-06-27 08:21:10 -05:00
Martin Dörfelt 99ce2000cf fixed review remarks
- Used a more appropriate method for extracting labels.
- Improved the error message of "prefix_rule".
2020-06-27 08:31:05 +02: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
Michał Kruszewski 0c1224379f Add rules for checking case of "end procedure". 2020-06-23 15:19:52 +02:00
Michał Kruszewski 3ba5136957 Minor fix in procedure_003 Python documentation. 2020-06-23 15:05:32 +02:00
Michał Kruszewski a61f9ad504 Add rules for checking case of "end function". 2020-06-23 14:05:47 +02:00
Michał Kruszewski 38d04c2e09 Split package_006. 2020-06-23 11:04:02 +02:00
Michał Kruszewski c6b7c3ee90 Split if_028. 2020-06-23 10:47:09 +02:00
Michał Kruszewski 3b1942f80d Split architecture_009. 2020-06-23 10:12:32 +02:00
Jeremiah Leary c41bbc1dc5 Updates for issue #427:
VSG was not handling more than two port assignments on a single line correctly for rule instantiation_021:

  1)  Updated tests to expose issue
  2)  Added tokenizing logic
  3)  Added three new utility functions
      a) extract_port_assignments
      b) extract_string_before_string
      c) extract_string_after_string
  4)  Updated code to handle multiple port assignments correctly
2020-06-21 09:21:38 -05:00
Michał Kruszewski 6f9b4c7d0e Fix issue #428. 2020-06-19 11:41:09 +02:00
Jeremiah Leary 8334d0d32a Updates for issue #407:
Rule instantiation_024 could not handle functions in generic or port assignments:

  1)  Added test to expose the issue
  2)  Added remove_parenthesis function to utils
  3)  Updated rule instantiation_024 to handle functions in generic/port assignments
2020-06-06 15:50:21 -05:00
Jeremiah Leary cf081d778b Updates for issue #406:
Rule port_013 was including a port assignment when determining how many ports were defined on a single line.

  1)  Added tests to expose the issue
  2)  Updated code to address the port_013 issue
2020-06-06 14:45:20 -05:00
Michał Kruszewski c5eb7737ec Add suffix and prefix rules for package identifier. 2020-05-17 15:46:12 +02:00
Jeremiah Leary ae97c39b9f Updates for issue #394:
Rule signal_015 did not ignore commas in comments.

  1)  Updated test to expose issue
  2)  Updated code to fix issue
2020-05-11 20:44:03 -05:00
Jeremiah Leary 3fb73a1e43 Updates for issue #392:
Adding support for case generate statements:

  1)  Updated case classifications to differentiate between generate and case statements
  2)  Updated documentation
  3)  Added tests for generate case statements
  4)  Added rule generate_016 to enforce indention on when statements
2020-05-09 21:59:17 -05: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
Michał Kruszewski ed3d4a6ddd Fix typo in constant rule 010. 2020-05-07 17:26:15 +02: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
Michał Kruszewski db485d1842 Adjust prefix/suffix rules to lowercase. 2020-04-03 17:39:47 +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 e60c516548 Updates for Codacy and Codeclimate issues 2020-03-31 21:34:38 -05:00