Skip to content

Commit

Permalink
WriteGoodLintBear: Add deprecate_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AsnelChristian committed Aug 17, 2016
1 parent 270f162 commit 60675a9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bears/natural_language/WriteGoodLintBear.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from coalib.bears.requirements.NpmRequirement import NpmRequirement
from coala_utils.param_convertion import negate


@linter(executable='write-good',
Expand All @@ -22,6 +24,14 @@ class WriteGoodLintBear:
CAN_DETECT = {'Formatting', 'Grammar'}

@staticmethod
@deprecate_settings(allow_passive_voice=('check_passive_voice', negate),
allow_so_beginning=('check_so_beginning', negate),
allow_adverbs=('check_adverbs', negate),
allow_repeated_words=('check_repeated_words', negate),
allow_there_is=('check_there_is', negate),
allow_ambiguous_words=('check_ambiguos_words', negate),
allow_extra_words=('check_extra_words', negate),
allow_cliche_phrases=('check_cliche_exists', negate))
def create_arguments(filename, file, config_file,
allow_passive_voice: bool=True,
allow_so_beginning: bool=True,
Expand Down

0 comments on commit 60675a9

Please sign in to comment.