Commit Graph

1828 Commits

Author SHA1 Message Date
Emil Vanherp 072ebc9273
remove unused variable 2021-01-13 12:21:44 +01:00
Emil Vanherp b092ad828d
remove unnecessary try except
argparse arguments are None by default and will not throw
AttributeError.
2021-01-13 12:21:44 +01:00
Jeremiah Leary 17a92c182e Updates for issue #506
Refactoring to improve readability.
2021-01-12 08:44:56 -06:00
Jeremiah Leary 41080127d5 Updates for issue #506:
Adding rule to indent multiline report statements.

  1) Added tests
  2) Added rule assert_400
2021-01-11 20:28:20 -06:00
Jeremiah Leary d6e05f6d37
Merge pull request #517 from Emilv2/whitespace
Remove trailing whitespace
2021-01-11 17:21:37 -06:00
Emil Vanherp a283911645
don't add trailing whitespace 2021-01-11 21:56:58 +01:00
Emil Vanherp 73420cdca2
remove trailing whitespace 2021-01-11 21:55:56 +01:00
Jeremiah Leary 42f8f24c5b Updates for issue #515:
Parser would fail on loop statements if preceeded by a simple procedure/function call.

  1)  Updated tests
  2)  Updated interation_scheme parser
2021-01-11 08:56:50 -06:00
Jeremiah Leary d15993e8db Updates for issue #509:
Adding port rule to check for multiple identifiers on port declarations.

  1)  Added documentation
  2)  Added test
  3)  Added rule port_026
2021-01-09 15:35:16 -06:00
Jeremiah Leary 6ffd9b5636 Updates for issue #513
Adding documentation on supported pragmas.
2021-01-09 13:48:40 -06:00
Jeremiah Leary ed3b214e40 Updates for issue #513
Adding support for pragmas vhdl_comp_on and vhdl_comp_off.
The VSG parser will ignore anything between those pragmas.

  1)  Added test
  2)  Added pragma token class
  3)  Added pragma parser
2021-01-09 13:36:27 -06:00
Jeremiah Leary 8086380440 Updates for issue #516:
The file_logical_name was not being properly parsed.

  1)  Updated test to expose issue
  2)  Updated parser to handle file_logical_name expressions
2021-01-08 19:25:01 -06:00
Jeremiah Leary f7b4aae56e Updates for issue #514:
Parser did not accept infinite loops.

  1)  Updated test to expose issue
  2)  Updated parser to allow for infinite loops
2021-01-08 17:26:28 -06:00
Jeremiah Leary fa5acc0794 Updates for issue #511
Parsing of parenthesis in expressions and subtype indications were improved.

  1)  Updated tests
  2)  Ensured all calls to classify_until were lists
  3)  Updated expression and subtype_indication classifiers
2021-01-08 08:51:12 -06:00
Jeremiah Leary 9b7ba24e0b Updates for issue #510:
subtype_indication classifier was incorrectly handling the closing parenthesis.

  1)  Updated tests
  2)  Updated subtype_indication classifier
2021-01-05 19:36:40 -06:00
Jeremiah Leary b9ff42e5b1 Updates for issue #508:
Procedure declarations without a formal parameter list would fail to classify.

  1)  Updated test
  2)  Updated procedure and function classifiers
2021-01-04 17:58:21 -06:00
Jeremiah Leary 65c61ce01a Updates for issue #505:
Rules enforcing whitespace before a token would fail if it was the start of the line.

  1)  Updated whitespace_010 test
  2)  Updated code to ignore whitespace if token is the start of a line
2021-01-02 12:22:26 -06:00
Jeremiah Leary 0d0e35c986 Updates for issue #446:
Updating documentation for rules entity_600 and architectecture_600 to fix minor errors.
2020-12-31 10:07:05 -06:00
Jeremiah Leary e13adaf072 Updates for issue #429:
Replacing : with colon in rule descriptions.
2020-12-30 14:39:28 -06:00
Jeremiah Leary 8d8169dbe3 Updates for issue #446:
Adding rules to check for consisent capitalization of generic identifiers.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
      a) entity_600
      b) architecture_600
2020-12-28 13:49:21 -06:00
Jeremiah Leary 0e4f4a4dca Updates for issue #373:
Fixing center alignment and indenting logic.

  1)  Updated tests
  2)  Updated rules
      a) block_comment_001
      b) block_comment_002
      c) block_comment_003
2020-12-23 12:26:32 -06:00
Jeremiah Leary 73d446a4d1 Updates for issue #373:
Fixing comment_010 violations due to rules aligning comments above keywords.
2020-12-22 18:51:31 -06:00
Jeremiah Leary 89bc825a9a Updates for issue #373:
Updating detection of headers and footers.
Added ability to allow for indented block comments.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules:
      a)  block_comment_001
      b)  block_comment_002
      c)  block_comment_003
2020-12-22 12:26:40 -06:00
Jeremiah Leary e604ad0d91 Updates for issue #501:
Cleaning up documentation.
2020-12-22 09:30:06 -06:00
Jeremiah Leary 61de3b1e11 Updates for issue #501:
Fixing issue in token map where it was returning a list with None if the end pair token was not found.
2020-12-22 09:11:57 -06:00
Jeremiah Leary 1a9da639d3 Updates for issue #503:
Preprocessor commands were being replaced with empty strings.
2020-12-21 15:26:30 -06:00
Jeremiah Leary 585208ad61 Updates for issue #503:
Adding ability to parse preprocessor commands embedded in VHDL code.

  1)  Added preprocessor token
  2)  Added preprocessor classifier
2020-12-21 14:15:48 -06:00
Jeremiah Leary 3a16f97c83 Updates for issue #373:
Fixing centering logic when block comment is indented.
Added special case for Doxygen comments.

  1)  Updated documentation
  2)  Updated tests
  3)  Update rule block_comment_001
2020-12-21 12:11:17 -06:00
Jeremiah Leary 7b9f3327dc Updates for issue #445.
Adding indent_config.yaml to manifest so it will be included while installing.
2020-12-21 10:53:27 -06:00
Jeremiah Leary 10a2f645b6 Updates for issue #368:
Adding rule to align colons in record type definitions.

  1)  Added documentation
  2)  Added test
  3)  Added rule type_400
2020-12-20 20:00:58 -06:00
Jeremiah Leary 805858d766 Updates for issue #445:
Removing debug print message.
2020-12-20 18:20:13 -06:00
Jeremiah Leary b778a030fd Updates for issue #445:
Removing unused file due to refactor.
2020-12-20 18:11:43 -06:00
Jeremiah Leary be88d4a462 Updates for issue #445
Adding ability for the user to adjust the indenting algorithm.

  1)  Added documentation
  2)  Refactored indent algorithm
      a)  Changed algorithm to use a YAML configuration file
  3)  Added indent dictionary to -oc output
  4)  Updated tests to use new YAML configuration file
2020-12-20 18:06:07 -06:00
Jeremiah Leary d7403e6273 Fixing 3.0.0 release date. 2020-12-20 09:17:31 -06:00
Jeremiah Leary 5cd7afd6f4 Updates for issue #373
Adding rules to analyze block comments.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
      a) block_comment_001
      b) block_comment_002
      c) block_comment_003
  4)  Added new extract method
      a) get_consecutive_lines_starting_with_token
2020-12-19 19:48:40 -06:00
Jeremiah Leary b3b245afbc Updates for issue #487
Adding rule to check for blank lines after an architecture body.

  1)  Added documentation
  2)  Added test
  3)  Added rule architecture_200
2020-12-19 11:51:54 -06:00
Jeremiah Leary 17f61baf87 Updates for issue #487
Removing unused code.
2020-12-19 11:45:52 -06:00
Jeremiah Leary 712513d268 Updates for issue #501
Adding rules for alignment of identifiers and colons in generate_statement_body.

  1)  Added documentation
  2)  Added tests
  3)  Added rules
      a)  generate_400
      b)  generate_401
      c)  generate_402
      d)  generate_403
      e)  generate_404
      f)  generate_405
2020-12-19 11:26:28 -06:00
Jeremiah Leary 685494b2ac Updates for issue #487:
Adding links to architecture_rules.
Fixing copyright date.
2020-12-18 18:54:54 -06:00
Jeremiah Leary 312167b3e5 Updates for issue #494:
Updating documentation for rule instantiation_601 to show the correct default prefix value.
2020-12-18 18:40:41 -06:00
Jeremiah Leary f3e77c646c Updates for issue #498:
Minor grammar update in documentation.
2020-12-18 18:30:24 -06:00
Jeremiah Leary 5fbaa0bffb Updates for issue #502:
Fixing issue where indenting comments after a library statement was not being set correctly.

  1)  Updated tests to expose issue
  2)  Updated indent logic to handle the case correctly
2020-12-18 14:58:48 -06:00
Jeremiah Leary 536abbedd7 Updates for issue #401:
Expanding rules for attributes:

  1)  Removed current attribute rules
  2)  Added rules for:
      a) attribute_declaration
      b) attribute_specification
      c) entity_specification
  3)  Added documentation
  4)  Added tests
  5)  Refactored base rules to allow for lists of token types
      a) single_space_after_token
      b) single_space_before_token
2020-12-18 14:13:40 -06:00
Jeremiah Leary 2f3d4c0996 Updates for issue #500
Not all rules were using the rule.add_violation method which enforced code_tags.

  1)  Updated tests
  2)  Changed vsg-disable-next-line to vsg_disable_next_line
  3)  Updated documentation
  4)  Updated all rules to use the add_violation method
2020-12-18 09:04:05 -06:00
Jeremiah Leary e94964d883 Updates for issue #497
Adding support for parsing of protected types.

  1)  Added classification tests
  2)  Added parsing of protected types
  3)  Added protected type tokens
2020-12-17 14:58:48 -06:00
Jeremiah Leary efda079b89 Updates for issue #493:
The single_space_after_rule was not taking the end of the line into account when checking for spaces.

  1)  Updated test to expose the issue
  2)  Updated base rule single_space_after to allow for a carriage_return after the token
2020-12-17 13:36:18 -06:00
Jeremiah Leary a18ab6414d Updates for issue #495:
Parser could not handle alias with parenthesis in the name.

  1)  Updated test to expose the issue
  2)  Updated parser to handle parenthesis in the name
2020-12-17 13:20:50 -06:00
Jeremiah Leary 9300971117 Updates for issue #494:
Changing default prefix to 'inst_' for rule instantiation_601.
2020-12-17 12:56:57 -06:00
Jeremiah Leary f8abca3376 Updates for issue #494:
Adding prefix and suffix rules for instantiation labels:

  1)  Added documentation
  2)  Added tests
  3)  Added rules:
      a)  instantiation_600
      a)  instantiation_601
2020-12-17 12:31:01 -06:00
Jeremiah Leary e4ffbfa047 Updates for issue #492:
Prefix and suffix rules would fail if uppercase prefixes/suffixes were used.

  1)  Added tests to expose the issue
  2)  Updated prefix and suffix base rules to allow upper or lower case.
2020-12-17 12:11:10 -06:00