Commit Graph

17 Commits

Author SHA1 Message Date
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 01746e70ea Merge branch 'master' into issue-362 2020-03-31 21:16:50 -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
Michał Kruszewski b6226ecb7d Set the default case to lowercase for all case rules. 2020-03-29 21:26:15 +02:00
Jeremiah C Leary 7d940306ec Updates for issue #314 and issue #333:
Issue #314:

Updated all label rules to use utils.extract_label or utils.extract_end_label:

  1) Added utils.extract_end_label
  2) Added more end label attributes to line.py
  3) Updated classifiers to set the new end label attributes
  4) Updated tests
  5) Updated rules to use utils.extract_label or utils.extract_end_label

Issue #333:

Fixed bug where nested generate labels were not updated correctly:

  1)  Added test case
  2)  Updated code
2020-02-23 10:51:44 -06:00
Jeremiah C Leary 61b28c0648 Update for issue #335
Updated for_loop rules to use a dictionary for the violations list.

  1)  Updated code
  2)  Updated tests
2020-02-16 17:32:27 -06:00
Michał Kruszewski e3805c9d54 Replace extract_first_keyword calls with extract_words function. 2020-01-20 21:17:41 +01:00
Jeremiah C Leary bd5b882326 Updates for issue #288:
Updated generate case rules to allow for configuring upper or lower case.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules generate_005 and generate_010 to allow for upper or lower case.
2019-12-01 09:16:49 -06:00
Jeremiah C Leary be51fdff4a Updates for issue #288:
Updated rule for_loop_003 to allow for case configuration.

  1)  Updated documentation
  2)  Updated tests
  3)  Update rule for_loop_003 to allow for upper or lower case.
2019-12-01 07:51:17 -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
Jeremiah C Leary 81ce015d1c Updates for issue #227
Adding three rules:  for_loop_003, for_loop_004, and for_loop_005.

  1)  Added documentation for new rules
  2)  Added tests for new rules
  3)  Refactored tests for rules 001 and 002
  4)  Added rules 003, 004, and 005
2019-04-09 19:36:50 -05: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 98c542bae5 Refactored for_loop rules and added documentation. 2017-12-16 16:11:40 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -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 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 8ddbe1de46 Refactored for loop rules for code climate. 2017-11-26 10:30:10 -06:00