Commit Graph

1931 Commits

Author SHA1 Message Date
Jeremiah Leary 90efd757c1 Updates for issue #450.
Replacing indent_step option with indentSize attribute.
2021-03-01 20:56:43 -06:00
Jeremiah Leary 0604fcf219 Updates for issue #450:
Adding code to handle options align_left true and align_paren true.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rule constant_012
2021-02-28 10:45:42 -06:00
Jeremiah Leary ae36c6b2dd Updates for issue #450
Rule constant_012 now handles options align_left and align_paren:

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rule constant_012
2021-02-27 20:58:54 -06:00
Jeremiah Leary d6bf9f16ab
Merge pull request #524 from Emilv2/speed_up
Use a multiprocessing pool
2021-02-27 08:58:10 -06:00
Jeremiah Leary d4682582aa Updating release date for 3.0.0. 2021-02-24 04:57:14 -06:00
Jeremiah Leary 29ad418ea3 Updates for issue #450:
Fixing table rendering in documentation.
2021-02-23 20:05:39 -06:00
Jeremiah Leary e2809d31d5 Updates for issue #450:
Fixing issue where the last assignment in a list of assignments had too many ending characters.
2021-02-22 17:22:47 -06:00
Jeremiah Leary a70523bda4 Updates for issue #450:
Adding option assign_on_single_line.

  1)  Updated documentation
  2)  Added tests
  3)  Added option to rule constant_016
2021-02-22 17:22:47 -06:00
Jeremiah Leary 46b7a30a70 Updates for issue #450:
Fixing line violation reporting.

  1)  Updated options so they report the correct line number of the violation.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 869e9fdc19 Updates for issue #450:
Fixing ignore_positional argument for new_line_after_comma option.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 9219dc0538 Updates for issue #450:
Rewrote several options to handle others and assignments correctly.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 3a197b3cac Updates for issue #450:
Classifying others as a positional instead of an assignment.
Changed options to a string type.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary d44e801e8d Updates for issue #450:
Changing ignore and ignore_positional options to lowercase.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary f996c9d61d Updates for issue #450:
Fixing new_line_after_comment option when others and assignments were encountered.

  1)  Updated tests to show issue
  2)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary 6a8cc1f41b Updates for issue #450:
Refactoring violation object creation into function.
2021-02-22 17:22:47 -06:00
Jeremiah Leary c84f19e5b1 Updates for issue #450:
Refactoring action dictionary into function.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 5053f9eac1 Updates for issue #450:
Refactoring analyze method.
2021-02-22 17:22:47 -06:00
Jeremiah Leary b18eb98f8b Updates for issue #450:
Adding options to new_line_after_comma option:

  1)  Changed Ignore to Ignore_all
  2)  Added Ignore_positional
  3)  Updated tests
  4)  Updated rule
2021-02-22 17:22:47 -06:00
Jeremiah Leary e711563cf6 Updates for issue #450:
Improving decisions around adding carriage returns for commas and closing parenthesis.

  1)  Added tests
  2)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary d18ba9ba9e Updates for issue #450:
Rule constant_016 honors others clauses.

  1)  Added tests with others clauses
  2)  Added detecting others clauses to rule constant_016
2021-02-22 17:22:47 -06:00
Jeremiah Leary c0b7c378ed Updates for issue #450:
Attempt at adding exceptions for others and slices for rule constant_016.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 3d8b8f2d5b Updates for issue #450:
Fixing issue with alignment if the first parenthesis is on the first line.

  1)  Updated tests
  2)  Changed phase from rule_016 to 1
  3)  Updated code to make tests pass
2021-02-22 17:22:47 -06:00
Jeremiah Leary 4dc186e8f4 Updates for issue #450:
Adding indent_step option to multiline alignment rules.

  1)  Added tests
  2)  Added option
  3)  Updated documentation
2021-02-22 17:22:47 -06:00
Jeremiah Leary 959c2380a3 Updates for issue #450:
Adding align_left option to rule constant_012.

  1)  Added tests
  2)  Updated rule to accept align_left option
2021-02-22 17:22:47 -06:00
Jeremiah Leary dcc57b8bcc Updates for issue #450:
Splitting the structure part of rule constant_012 into constant_016.

  1)  Updated tests
  2)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary a04ac0abe7 Updates for issue #450:
Split documentation for multiline rules into indent and structure.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0690cb5e75 Updates for issue #450:
Adding support for multiple options enabled at the same time:

  1)  Added tests
  2)  Updated code to handle multiple options
2021-02-22 17:22:47 -06:00
Jeremiah Leary d1f4c232d8 Updates for issue #450:
Adding support for fixing option new_line_after_comma.

  1)  Added tests
  2)  Updated code
2021-02-22 17:22:47 -06:00
Jeremiah Leary 94022c46e6 Updates for issue #450:
Adding fix for option close_paren_new_line.

  1)  Added tests
  2)  Added code for fix
2021-02-22 17:22:47 -06:00
Jeremiah Leary 7eb583bace Updates for issue #450:
Adding fix for open_pren_new_line option.

  1)  Added tests
  2)  Added code for fix
2021-02-22 17:22:47 -06:00
Jeremiah Leary bcf17342be Updates for issue #450:
Adding fixing for last_paren_new_line option.

  1)  Added tests
  2)  Added code to fix
2021-02-22 17:22:47 -06:00
Jeremiah Leary f6401c1c55 Updates for issue #450:
Adding fixing of first_paren_new_line option.

  1)  Added tests
  2)  Added fix code
2021-02-22 17:22:47 -06:00
Jeremiah Leary 522276df14 Updates for issue #450:
Adding support for new_line_after_comma option.

  1)  Added tests
  2)  Added support for option
2021-02-22 17:22:47 -06:00
Jeremiah Leary 37697f4c72 Updates for issue #450:
Adding support for close_paren_new_line option.

  1)  Added tests
  2)  Added option
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0d228d00a8 Updates for issue #450:
Adding support for open_paren_new_line option.

  1)  Added tests
  2)  Added code
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0434eca997 Updates for issue #450:
Adding support for last_paren_new_line.

  1)  Added test
  2)  Added code to detect
2021-02-22 17:22:47 -06:00
Jeremiah Leary 5e4000dc83 Updates for issue #450:
Adding first attempt at detecting first_paren_new_line option.
Fixing still needs to be implemented.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0a50b02d0c Updates for issue #450:
Adding intial documentation for configuring multiline rules.
2021-02-22 17:22:47 -06:00
Emil Vanherp a1b81d0507
small style/linting fixes 2021-02-17 23:10:46 +01:00
Emil Vanherp c51fcd768d
use a contextmanager for multiprocessing 2021-02-17 17:18:34 +01:00
Jeremiah Leary fa3e1d9f1c Updates for issue #532:
Process classifer was not honoring the end of a block statement.

  1)  Updated tests to expose the issue
  2)  Updated process classifier
2021-02-13 09:27:55 -06:00
Jeremiah Leary a7e4788306 Updates for issue #504:
Fixing bug in the case there is a single block statement would result in a crash with an index error.
2021-02-12 13:03:36 -06:00
Jeremiah Leary 1b2b3ba11a
Merge pull request #530 from Emilv2/skip_tests
skip test instead of silently passing
2021-02-11 08:13:33 -06:00
Emil Vanherp e3ead22f90
add tests for multiprocessing pool 2021-02-11 14:45:46 +01:00
Emil Vanherp c50dec32d4
Print reports in the same order as the files are supplied 2021-02-11 14:42:49 +01:00
Emil Vanherp 08f1742bda
Fix error message 2021-02-11 14:42:49 +01:00
Emil Vanherp e3e009b278
Don't use global severity objects 2021-02-11 14:42:48 +01:00
Emil Vanherp 81746689da
Work around cpython Windows bug 2021-02-11 14:42:48 +01:00
Emil Vanherp 1a22cef4c8
Add multiprocessing
Use multiprocessing pool to analyse files in parallel
2021-02-11 14:42:45 +01:00
Emil Vanherp 0a966fc7c6
skip test instead of silently passing 2021-02-11 12:23:14 +01:00