Skip to content

Commit

Permalink
JSHintBear: Use allow_argument_caller_and_callee
Browse files Browse the repository at this point in the history
Changes ``prohibit_arg``->``allow_argument_caller_and_callee``.
  • Loading branch information
AsnelChristian committed Aug 13, 2016
1 parent 8b2a21d commit 3946808
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bears/js/JSHintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate_config(filename, file,
allow_filter_in_forin: bool=True,
allow_funcscope: bool=False,
allow_iterator_property: bool=False,
prohibit_arg: bool=True,
allow_argument_caller_and_callee: bool=False,
allow_comma_operator: bool=True,
allow_non_breaking_whitespace: bool=False,
prohibit_new: bool=False,
Expand Down Expand Up @@ -131,8 +131,8 @@ def generate_config(filename, file,
:param allow_funcscope:
This option suppresses warnings about declaring variables inside of
control structures while accessing them later from outside.
:param prohibit_arg:
This option prohibits the use of ``arguments.caller`` and
:param allow_argument_caller_and_callee:
This option allows the use of ``arguments.caller`` and
``arguments.callee``.
:param allow_comma_operator:
This option allows the use of the comma operator.
Expand Down Expand Up @@ -292,7 +292,7 @@ def generate_config(filename, file,
"forin": allow_filter_in_forin,
"funcscope": allow_funcscope,
"iterator": allow_iterator_property,
"noarg": prohibit_arg,
"noarg": not allow_argument_caller_and_callee,
"nocomma": not allow_comma_operator,
"nonbsp": not allow_non_breaking_whitespace,
"nonew": prohibit_new,
Expand Down

0 comments on commit 3946808

Please sign in to comment.