Skip to content

Commit

Permalink
CoffeeLintBear: Add deprecate_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AsnelChristian committed Aug 17, 2016
1 parent 14a1bf4 commit 0e42009
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion bears/coffee_script/CoffeeLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from coalib.bears.requirements.NpmRequirement import NpmRequirement
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.Result import Result
from coala_utils.param_convertion import negate


@linter(executable='coffeelint',
Expand Down Expand Up @@ -32,7 +33,26 @@ def create_arguments(filename, file, config_file):
return '--reporter=raw', '--stdin', '-f', config_file

@staticmethod
@deprecate_settings(indent_size='tab_width')
@deprecate_settings(indent_size='tab_width',
allow_increment=(
'no_decr_or_incrementation_operators', negate),
allow_no_parameters=(
'no_empty_parameter_list', negate),
allow_empty_functions=('no_empty_functions', negate),
allow_this_statements=('no_this', negate),
allow_implicit_parentheses=(
'no_implicit_parentheses', negate),
allow_interpolation_in_single_quotes=(
'no_interpolation_in_single_quotes', negate),
allow_stand_alone_at_sign=(
'no_stand_alone_at_sign', negate),
allow_throwing_strings=(
'disable_throwing_strings', negate),
allow_unnecessary_double_quotes=(
'no_unnecessary_double_quotes', negate),
allow_bitwise_operators=(
'use_english_operator', negate),
force_braces='no_implicit_braces')
def generate_config(filename, file,
max_line_length: int=79,
max_line_length_affect_comments: bool=True,
Expand Down

0 comments on commit 0e42009

Please sign in to comment.