Skip to content

Commit

Permalink
JHintBear: use max_parameters
Browse files Browse the repository at this point in the history
Changes ``maxparams``->``max_parameters``.
  • Loading branch information
AsnelChristian committed Jul 27, 2016
1 parent 9ddc2e8 commit 678a7fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bears/js/JSHintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate_config(filename, file,
maxerr: int=50,
maxstatements: bool_or_int=False,
maxdepth: bool_or_int=False,
maxparams: bool_or_int=False,
max_parameters: bool_or_int=False,
cyclomatic_complexity: bool_or_int=False,
shadow: bool_or_str=False,
check_unused_variables: bool_or_str=True,
Expand Down Expand Up @@ -262,8 +262,8 @@ def generate_config(filename, file,
:param maxdepth:
This option lets you control how nested do you want your blocks to
be.
:param maxparams:
Maximum number of formal parameters allowed per function.
:param max_parameters:
Maximum number of parameters allowed per function.
:param cyclomatic_complexity:
Maximum cyclomatic complexity in the code.
:param shadow:
Expand Down Expand Up @@ -348,7 +348,7 @@ def generate_config(filename, file,
"maxerr": maxerr,
"maxcomplexity": cyclomatic_complexity,
"maxdepth": maxdepth,
"maxparams": maxparams,
"maxparams": max_parameters,
"maxstatements": maxstatements,
"shadow": shadow,
"unused": check_unused_variables,
Expand Down
2 changes: 1 addition & 1 deletion tests/js/JSHintBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

settings = {
"maxstatements": "False",
"maxparams": 10,
"max_parameters": 10,
"check_unused_variables": "False",
"shadow": "False",
"allow_last_semicolon": "True",
Expand Down

0 comments on commit 678a7fa

Please sign in to comment.