Commit Graph

17 Commits

Author SHA1 Message Date
JHertz5 ce86655850
Issue#1236: Rule for case in hexadecimal constants and base specifier (#1237)
* Issue#1236: Updated parser to recognise bit string literals.

* Issue#1236: Added rules bit_string_literal_500 and bit_string_literal_501.

* Issue#1236: Updated bit string literal tokens to combine quote tokens into bit_value string token.

* Issue#1236: Updated case_utils to add exeption for bit string literals.

* Issue#1236: Updated parser to separate bit_string_literal integer token from bit_string_literal base_specifier token.

* Issue#1236: Added test for bit_string_literal classification.

* Issue#1236: Added test for bit_string_literal_500.

* Issue#1236: Added test for bit_string_literal_501.

* Issue#1236: Updated rules and rule tests.

* Issue#1236: Style updates.

* Issue#1236: Updated classification result.

* Issue#1236: Changed bit_string_literal_501 to default to upper case.

* Issue#1236: Updated tests for bit_string_literal_501 default to upper case change.

* Issue#1236: Formatting changes.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Updated fixed versions of code examples.

* Issue#1236: Code refactoring to reduce duplication.

* Issue#1236: Code refactoring to improve names and remove unused code.

* Issue#1236: Formatting changes.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Refactored code to reduce congitive complexity.

* Issue#1236: Added bit string literal rules to top-level rules documentation.

* Issue#1236: Used compiled regular expressions to improve bit_string_literal parsing.

* Issue#1236: Changed regex strings to raw strings to avoid warnings about invalid escape sequences.

* Issue#1236: Removed unused import.
2024-10-07 20:09:53 -05:00
Jeremiah Leary f0d3dd7da6
Issue#1182: Adding regex option to prefix and suffix rules. (#1185)
* Issue#1182:  Adding regex option to prefix and suffix rules.

* Fixing style issues.
2024-06-26 21:20:40 -05:00
Jeremiah Leary 091f78d274
Issue#1177: Updating prefix and suffix rules to check for prefix or suffix if both exceptions are provided. (#1181) 2024-06-17 20:16:39 -05:00
Alon Bar-Lev c22a86025f style: apply black
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev b8c49b5946 style: python encoding
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev f9c2653e54 style: apply codespell
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:34 +02:00
Jeremiah Leary 6d663af5f1
Issue#1047: Adding upper_or_lower option to case rules. (#1048) 2023-12-13 07:22:39 -06:00
Jeremiah Leary 963da61b3a
Issue#924: Adding ability to check for camelCase and PascalCase. (#1037)
* Issue#924:  Adding ability to check for camelCase and PascalCase.

* Updating solution for camelCase and PascalCase.

* Removing unused base rule.

* Adding support for prefixes, suffixes and case exceptions.

* Refactored case_utils.py to reduce number of functions.

* Adding function mapping dictionaries to reduce the number of functions.

* Removing compare function.
2023-11-14 06:01:32 -06:00
Jeremiah Leary 4b16b817bb
Updates for issue #855 (#858)
Adding expection to case rules for values that are enclosed with double quotes.
2022-11-07 05:56:06 -06:00
Jeremiah Leary 267b17e72a
Updates for issue #730 (#741)
* Updates for issue #730

Adding rules to handle case for use_clause selected names.

  1)  Added new tokens to use_clause
  2)  selected names now parsed with new tokens
  3)  Added rules:
      a)  use_clause_500
      b)  use_clause_501
      c)  use_clause_502
      d)  use_clause_503
  4)  Added tests

Resolves #730

* Refactoring to reduce duplication.
Removing trailing whitespace.

* Changing exceptions to case_exceptions.

1)  case::name rules allow case_exceptions by default
2)  Updated instantiated_unit to split entity_name with a library name
3)  Rule instantiation_028 simplified
4)  Removed unused test file

* Refactoring to reduce complexity.

* Refactoring to improve readability.

* Fixed isue with procedure_506 crashing VSG due to missing variable.

* Fixing missing call to lowercase list.

* Adding the following rules:

  context_ref_500
  context_ref_501

Deprecated the following rules:

  context_ref_004

* Placing common code into a single file.

* Removing trailing whitespace.

* Refactoring to reduce the number of parameters.
2022-04-19 19:21:20 -05:00
Jeremiah Leary c6beda290b Updates for issue #644
Codacy updates.
2021-10-27 07:18:21 -05:00
Jeremiah Leary 46a935b140 Updates for issue #644:
Refactorings to address codeclimate issues.
  a)  Removed trailing whitespace
  b)  token_case_subtype_indication now extends token_case
  c)  token_case_in_range_bounded_by_tokens now extends token_case
2021-10-27 07:14:53 -05:00
Jeremiah Leary fee5353422 Updates for issue #644
Codacy fixes.
2021-10-27 07:01:39 -05:00
Jeremiah Leary d95becec23 Updates for issue #644
Refactoring case_utils to improve readability.
2021-10-27 06:33:59 -05:00
Jeremiah Leary fc2f82b787 Updates for issue #644
Minor refacatoring to improve readability.
2021-10-26 07:47:23 -05:00
Jeremiah Leary 9d48d94a99 Updates for issue #644
Updating remaining case rules to allow for prefix/suffix exceptions.
2021-10-26 07:38:43 -05:00
Jeremiah Leary 91db3f001f Updates for issue #644
Additional changes:

  1)  Added new base rule token_case_with_prefix_suffix
  2)  Changed required rules to use new base rule
  3)  Refactored shared logic into package
2021-10-25 06:25:00 -05:00