question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Complexity has no default

See original GitHub issue

Enabling 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:closed
  • Created 8 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SpadeAcemancommented, Dec 29, 2015

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 to 10 or 15.)

0reactions
platinumazurecommented, Apr 30, 2016

@Mardak Please open a new issue so we can discuss further. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found