Skip to content

Comment on Sonar is destroying my job and it's driving me to despair

Comments

This sounds truly hellish, like being controlled by a stupid robot straight out of Kafka's "The Trial." They should allow special one off exception that are documented with a comment, similar to how you can disable Ruff warnings in python code for a single like

  # noqa: F401

They do

// Nosonar

Google "nosonar doesn't work" for a million war stories about how this is not a solution.

In my organization's sonarqube configuration (where of course every flag is turned on), `// nosonar` actually shows up as a code smell

And @SuppressWarning for a specific rule id

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.