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.

[Poll] Do people care about separated EmptyXXXBlock, ThrowXXX and CatchXXX rules?

See original GitHub issue

Now every case has it’s own rule - example EmptyFunctionBlock or ThrowRuntimeException. As each rule visits a whole kotlin file, there is kind of an overhead when ~10 nearly the same rules visit this file.

I favored the above approach in the beginning of detekt because it allowed out-of-the-box-yaml-configuration for each of this rules.

To remove this overhead, there are two options + leaving as it is is option three. Please thumps up or down to vote on the options.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
arturboschcommented, Jun 20, 2017

That’s because I’m on vacation ! 😄

3reactions
arturboschcommented, Jun 20, 2017

Option 3: Like option 2 but with configurable flavours

style:
  ...
  EmptyBlock:
    active: true/false
    allowEmptyFunction: true/false
    allowEmptyCatch: true/false
    allowEmptyElse: true/false
  ...
potential-bugs:
  ...
  TooGeneralExceptionIsThrown:
    active: true/false
    exceptions: "RuntimeException, IndexOutOfBoundException, MyOwnNeedSubclassingException"
  TooGeneralExceptionIsCatched:
    active: true/false
    exceptions: "RuntimeException, IndexOutOfBoundException, MyOwnNeedSubclassingException"
  ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Know Your Rights | Voting Rights | American Civil Liberties ...
I need to register to vote; I need to find my polling place; I'm not sure what to bring to the polls; I...
Read more >
'It's going to be an army': Tapes reveal GOP plan to ... - Politico
Heidi Przybyla is a Washington D.C. journalist. Video recordings of Republican Party operatives meeting with grassroots activists provide an ...
Read more >
Global Trends 2030: Alternative Worlds
I encourage readers to review the complete set of Global Trends 2030 documents, which can be found on the National Intelligence Council's website,...
Read more >
The Future of Free Speech, Trolls, Anonymity and Fake News ...
Many experts fear uncivil and manipulative behaviors on the internet will persist – and may get worse.
Read more >
State Operations Manual Appendix PP - CMS
§483.5 Definitions. §483.10 Resident Rights. §483.12 Freedom from Abuse, Neglect, and Exploitation. §483.15 Admission Transfer and Discharge Rights.
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