Commit Graph

44 Commits

Author SHA1 Message Date
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
Jeremiah C Leary 09d9de4473 Updates for issue #79
1)  Added function_006 to enforce a blank line above functions
  2)  Added function_007 to enforce a blank line below functions
2017-12-02 18:49:10 -06:00
Jeremiah C Leary 6aee8bad9b Updates for issue #90
1) Moved _get_word and _get_first_word from rule.py to utilities.py
2017-11-30 06:33:49 -06:00
Jeremiah C Leary 7ed5a6c5dd Updates for issue #90
1)  moved enforce_one_space_after_word and enforce_one_space_before_word to fix.py
2017-11-28 20:41:11 -06:00
Jeremiah C Leary 4cbb53a76d Updates for issue #90
1)  Moved _fix_lower_case and _fix_upper_case to fix.py
2017-11-28 20:28:27 -06:00
Jeremiah C Leary 3302988886 Updates for issue #90
1)  Moved _fix_indent to fix.py
2017-11-28 19:59:48 -06:00
Jeremiah C Leary 3aec9ca446 Updates for issue #90
1)  Moved _is_lowercase and _is_uppercase to check.py
2017-11-28 19:43:58 -06:00
Jeremiah C Leary a4304575fc Refactoring for code climate:
1)  Added check.py to hold all checks.
      checks from rule.py will be moved here
  2)  Moved _check_indent to check.indent
2017-11-26 16:13:21 -06:00
Jeremiah C Leary 29ad012cfc Refactored function rules to aid in maintainability. 2017-11-26 10:34:58 -06:00