Commit Graph

12 Commits

Author SHA1 Message Date
Jeremiah Leary 7b94b91ae9 Refactoring all case rules for new parser:
1)  Refactored all rules
  2)  Added tests
  3)  Removed old tests
  4)  Added base rules
      align_consecutive_lines_after_line_starting_with_token_and_stopping_with_token
      align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token
      insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment
      remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace
2020-09-27 15:58:08 -05:00
Jeremiah Leary 663723cd8c Refactoring attribute rules for new parser.
1)  Refactored attribute_001
  2)  Refactored attribute_002
  3)  Changed base rule token_case to accept a list of tokens
      a)  Updated existing rules to pass a list
  4)  Removing old tests
2020-09-26 15:37:42 -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 e3805c9d54 Replace extract_first_keyword calls with extract_words function. 2020-01-20 21:17:41 +01:00
Michał Kruszewski 9f1389c8e8 Fix printing solution for case rules. 2019-10-15 15:57:01 +02:00
Michał Kruszewski 837d2b67b2 Small formatting improvements. 2019-10-07 20:43:45 +02:00
Michał Kruszewski c962881e7a Make _extract abstract method for case_rule class. 2019-10-07 20:30:27 +02:00
Michał Kruszewski 694625b024 Make case rule 014 use case_rule as a base. 2019-10-07 16:13:27 +02:00
Michał Kruszewski 288f1d0e5c Make attribute rule 002 use case_rule as a base. 2019-10-07 15:04:19 +02: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 e09f02c492 Updating style issues to address Codacy issues. 2017-12-25 10:01:14 -06:00
Jeremiah C Leary 03636fe358 Updates for issue #123
1)  Added attribute attributes to line.py
  2)  Added attribute classifier
  3)  Added attribute rules
  4)  Added tests
  5)  Added documentation
2017-12-25 09:50:45 -06:00