Skip to content

Commit

Permalink
JSONFormatBear: Add deprecate_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AsnelChristian committed Aug 17, 2016
1 parent e06167c commit 33a83e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bears/js/JSONFormatBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from coalib.bears.LocalBear import LocalBear
from coalib.results.Diff import Diff
from coalib.results.Result import Result
from coala_utils.param_convertion import negate


class JSONFormatBear(LocalBear):
Expand All @@ -20,7 +21,8 @@ class JSONFormatBear(LocalBear):
LICENSE = 'AGPL-3.0'
CAN_DETECT = {'Formatting'}

@deprecate_settings(indent_size='tab_width')
@deprecate_settings(indent_size='tab_width',
escape_unicode=('keep_unicode', negate))
def run(self, filename, file,
json_sort: bool=False,
indent_size: int=SpacingHelper.DEFAULT_TAB_WIDTH,
Expand Down

0 comments on commit 33a83e4

Please sign in to comment.