Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Add default limit to complexity (fixes #4808) #4836

Merged
merged 1 commit into from
Dec 31, 2015
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Dec 31, 2015

No description provided.

@@ -12,7 +12,7 @@

module.exports = function(context) {

var THRESHOLD = context.options[0];
var THRESHOLD = (typeof context.options[0] !== "undefined") ? context.options[0] : 20;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't do a simple context.options[0] || 20 here, because it would change an explicit 0 into 20.

@nzakas
Copy link
Member

nzakas commented Dec 31, 2015

Lgtm

nzakas added a commit that referenced this pull request Dec 31, 2015
Update: Add default limit to `complexity` (fixes #4808)
@nzakas nzakas merged commit 994c8ee into master Dec 31, 2015
@alberto alberto deleted the issue4808 branch January 6, 2016 23:56
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants