Complexity has no default
See original GitHub issueEnabling the complexity
rule with only a severity has no effect. We have tried to give sane defaults to all rules, and I think this should be no exception. I don’t know what a good number would be, though.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Is the time complexity of the empty algorithm O(0)?
So I would say that not only the empty program is O(0), but it is the only one for which that holds. Intuitively,...
Read more >complexity - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Is it possible to write a program that calculates an algorithm's ...
Yes, you are right. There is no program that can calculate all algorithms' time complexity. More formally speaking, there is no Turing ...
Read more >Complexity & Depth - GraphQL Ruby
GraphQL-Ruby ships with some validations based on query analysis. ... If no complexity is defined for a field, it will default to a...
Read more >CLIA Test Complexities | CDC
Tests developed by the laboratory or that have been modified from the approved manufacturer's instructions default to high complexity according to the CLIA...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Lower complexity is of course better, but trying to determine a sensible, one-size-fits-all default is tricky.
If we’re going for an “only stop me if I’m approaching insanity” sort of default, then it sounds like
20
could indeed work, based on the recommendations and anecdotal evidence I’ve assembled below. (Myself, I’d lean toward defaulting to10
or15
.)@Mardak Please open a new issue so we can discuss further. Thanks!