Commit Graph

58 Commits

Author SHA1 Message Date
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
imd 8edac1b5a3 use merge terminology 2021-06-20 14:57:47 +01:00
imd b5925e9691 depircated function_002/003 2021-06-20 14:55:44 +01:00
imd 149e9d19b4 added rule 100 2021-06-20 14:44:49 +01:00
imd cb01baee12 added function_101 2021-06-20 08:56:21 +01:00
imd 121ff94492 added function_502/506 2021-06-18 18:13:39 +01:00
imd e6e0f00b2e added function_201/202/203/204 2021-06-18 17:45:35 +01:00
imd e134d91c3e new function_300 rule works 2021-06-02 12:22:05 +01:00
Jeremiah Leary fd8d67e0c8 Updates for issue #568
Alignment of colons were occuring before alignment of identifier.

  1)  Changed rule function_012 to run in subphase 2 after the alignment of the identifier
2021-04-29 08:51:31 -05:00
Jeremiah Leary c117fa55f6 Updates for issue #504:
Renaming blank_line_above_line_starting_with_token to previous_line to make room for dedicated blank_line_above_line_starting_with_token base rule.
2021-01-30 14:28:16 -06:00
Jeremiah Leary cd64cdeae0 Updates for issue #474
Adding rule function_017 to handle the case of function designators.

  1)  Added documentation
  2)  Added test
  3)  Added rule function_017
2020-12-04 17:03:00 -06:00
Jeremiah Leary f9982dac4d Refactoring rules to improve consistent case performance.
1)  Adding more exclusions to each rule
2020-12-04 09:20:22 -06:00
Jeremiah Leary 55edb03ed7 Hardning updates for existing code examples:
1)  Added single_space_before_token to handle case_rule_005
  2)  Added insert_carriage_return.......
  3)  Improved existing tests
2020-11-15 09:51:21 -06:00
Jeremiah Leary cccf9b7d7c Updates during jcl style validation.
1)  Added rule function_016 to handle return statements in functions
      a)  Updated documentation
      b)  Created tests
      c)  Added rule
  2)  Updated rules to match existing jcl style output
2020-11-14 17:07:48 -06:00
Jeremiah Leary 64f4871faf Refactoring procedure rules for new parser. 2020-10-14 21:54:37 -05:00
Jeremiah Leary 0a69106717 Refactoring function rules for new parser. 2020-10-03 23:00:54 -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
Michał Kruszewski a61f9ad504 Add rules for checking case of "end function". 2020-06-23 14:05: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 b9abdf8a57 Updates for issue #362:
Updated rules to use consistent violation dictionary:

  1)  Updated check.indent_of_comments_above to use the violation dictionary
  2)  Updated rules to use the violation dictionary
  3)  Updated tests
2020-03-31 20:09:51 -05:00
Jeremiah C Leary 95f3580c92 Updates for issue #341:
Removing rule function_011 which is not being used.
2020-02-25 07:37:24 -06:00
Michał Kruszewski 2f08a64bda Refactor keyword alignment rules. 2020-02-24 21:14:44 +01:00
Jeremiah C Leary cb53ad4c91 Updates for issue #335
Updated function rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:22:53 -06:00
Jeremiah C Leary ddc32f8ed9 Updates for issue #335:
Updated tests using the indent base rule to use dictionaries for the violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 08:27:55 -06:00
Jeremiah C Leary 86c708a986 Minor formatting updates for Codacy issues. 2020-01-02 11:58:48 -06:00
Michał Kruszewski 49aa53ab61 Replace extract_word function with extract_words. 2019-12-28 11:39:32 +01: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 5cb0a35cc9 Updates for issue #287:
Fixed two issues:

  1)  VSG was misclassifying function parameters as variables.
  2)  VSG was not setting an indent level for the end of a function.
2019-11-27 07:13:29 -06:00
Jeremiah C Leary a374867c40 Refactoring fix.upper_case and fix.lower_case to remove unneccessary input. 2019-10-16 21:36:30 -05:00
Michał Kruszewski 9f1389c8e8 Fix printing solution for case rules. 2019-10-15 15:57:01 +02:00
Michał Kruszewski c962881e7a Make _extract abstract method for case_rule class. 2019-10-07 20:30:27 +02:00
Michał Kruszewski 957ef8702d Refactor extracting VHDL keywords. 2019-10-07 19:46:17 +02:00
Michał Kruszewski 215dae1647 Make function rule 004 use case_rule as a base. 2019-10-07 17:57:57 +02:00
Michał Kruszewski 33995b81bb Make constatnt rule 011 use case_rule as a base. 2019-10-07 11:53:04 +02:00
Michał Kruszewski 761f5fc938 Make extract_type_name function return list. 2019-10-02 09:34:59 +02:00
Jeremiah C Leary 599a0bb45b Codeclimate updates. 2019-04-10 21:23:17 -05:00
Jeremiah C Leary f2da8b4fe0 Updates for issue #224
Adding consistency case checks for function names.

  1)  Added documentation
  2)  Added tests
  3)  Added rule function_010
2019-03-31 09:10:41 -05:00
Jeremiah C Leary 5cacc551ef Updates for issue #221:
Fixing function_003 violation for functions without parameters.

  1)  Added test to detect bug
  2)  Updated rule to only check if there are any parameters on the function.
2019-03-23 19:47:20 -05:00
Jeremiah C Leary f42e698c31 Updates for issue #219
Changed utilities to utils.
2019-03-23 07:43:53 -05:00
Jeremiah C Leary 5ff634025c Updates for issue #181
Refactoring more rules to support implementing in file tags.
2019-03-09 16:42:31 -06:00
Ryan Fitzsimon 79456cf1a2 Use explicit relative imports
Implicit relative imports are not supported in Python 3 (see pep-0404).

Using explicit relative imports also helps avoid name clashes.
2018-08-31 11:24:13 +10:00
Jeremiah C Leary a142f78ef2 Updates for issue #133:
1)  Updated classification of functions.
  2)  Updated tests
2017-12-30 12:27:23 -06:00
Jeremiah C Leary dd88efba0d Refactored classifiers and function_009. 2017-12-27 15:00:41 -06:00
Jeremiah C Leary 52c9037263 Refactoring indent rules. 2017-12-27 13:23:08 -06:00
Jeremiah C Leary 464004cae6 Fixing style issues for Codacy. 2017-12-25 15:09:09 -06:00
Jeremiah C Leary 86ec8e697e Updates for issue #84
1) Added function_008 and function_009
  2) Added tests
  3) Added documentation
2017-12-25 12:45:01 -06:00
Jeremiah C Leary 9d59246cea Style updates for Codacy. 2017-12-23 21:47:07 -06:00
Jeremiah C Leary 53e193cb7e Refactoring function rules and adding documentation. 2017-12-16 16:55:57 -06:00
Jeremiah C Leary acb0c44b71 Updates for code climate:
1)  Refactored rules to reduce complexity.
2017-12-10 07:22:22 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00