Commit Graph

34 Commits

Author SHA1 Message Date
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
Michał Kruszewski 9cab593876 Move comment rules 008 and 009 to if rules 032 and 033. 2020-03-29 12:46:52 +02:00
Michał Kruszewski d90e126c87 Move comment rule 005 to case rule 021. 2020-03-29 11:40:03 +02:00
Michał Kruszewski 1ba47f234c Move comment rule 001 to library rule 009. 2020-03-29 09:21:15 +02:00
Michał Kruszewski 0f0ec0f47c Refactor keyword alignment rules - part 2. 2020-03-17 11:22:25 +01:00
Michał Kruszewski 2f08a64bda Refactor keyword alignment rules. 2020-02-24 21:14:44 +01:00
Jeremiah C Leary 833804e93f Updates for issue #335
Updated comment rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 19:33:01 -06:00
Will Kamp 3fc726654e Various changes so that hyphens inside double quotes are not treated as a comment marker. 2020-01-08 17:46:21 +13:00
Will Kamp 7475368837 Fix rule comment_004 to use the comment location in oLine, such that it picks up the fix for comment detection. 2020-01-08 10:09:17 +13:00
Jeremiah C Leary 68c6a3860c Updates for issue #245
Fixed conflict between comment_007 and comment_008.

  1)  Renumbered comment_007 to comment_010.  This ensures it is ran after comment_008.
  2)  Updated documentation
  3)  Updated tests
2019-06-28 10:38:23 -05:00
Jeremiah C Leary 596bbdb7a1 Fixing solution statement to be more specific. 2019-06-28 08:22:26 -05:00
Jeremiah C Leary 4590726788 Updates for issue #233
Added rules for comments above elsif and else keywords:

  1)  Added documentation
  2)  Added tests
  3)  Added comment_008 and comment_009 rules
2019-06-07 21:40:59 -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 d66381f1ab Updates for issue #143:
1)  Swapped comment_001 and comment_007 to fix order execution
  2)  Updated documents
  3)  Updated tests
2018-05-18 06:28:32 -05:00
Jeremiah C Leary aa6ad0f388 Updates for issue #142:
1)  Enhanced test for comment_007
  2)  Updated comment_007 so it actually fixed the indent
2018-05-17 04:49:54 -05:00
Jeremiah C Leary 1be7b4d329 Updates for issue #138:
1)  Added comment_007 to handle comments above use keywords
  2)  Added documentation
  3)  Added tests
  4)  Updated function in check.py
2018-05-16 20:47:35 -05:00
Jeremiah C Leary a742f6c486 Refactoring rules. 2017-12-29 07:40:03 -06:00
Jeremiah C Leary 52c9037263 Refactoring indent rules. 2017-12-27 13:23:08 -06:00
Jeremiah C Leary b055aa9b1f Removing unused imports to address Codacy issues. 2017-12-24 07:32:32 -06:00
Jeremiah C Leary 98a3ee9dbd Code style updates. 2017-12-16 10:24:39 -06:00
Jeremiah C Leary f76641f115 Refactored comment rules for code climate. 2017-12-15 09:49:26 -06:00
Jeremiah C Leary 59864c2d00 Refactoring issues found by code climate. 2017-12-15 09:29:40 -06:00
Jeremiah C Leary 9d558d4df6 Updates for issue #57:
1)  Added rule comment_006
  2)  Added documentation
  3)  Added tests
2017-12-14 06:19:38 -06:00
Jeremiah C Leary b02506109f Updates for issue #16
1)  Added rule comment_005
  2)  Added documentation
  3)  Added test cases
  4)  Refactored case classification to remove indenting comments above when keywords
      a)  Updated tests
2017-12-13 22:16:07 -06:00
Jeremiah C Leary c6a211d080 Adding code examples and tests to verify fixes. 2017-12-09 12:04:49 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -06:00
Jeremiah C Leary b21c44d768 Updates for issue #55
Removed comment_002.
  This rule has been superceeded by specific rules checking for alignment of comments.
2017-12-08 06:21:51 -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 6dd1bca851 Updates for issue #90
1)  moved _fix_keyword_alignment to fix.py
2017-11-28 20:09:42 -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 eee146f5c4 Updates for issue #90
1)  Moving _check_keyword_alignment to check.py
2017-11-28 19:26:34 -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 3337d55c52 Refactoring comment rules to ease maintainability. 2017-11-26 09:28:50 -06:00