standardrb / standard

Ruby's bikeshed-proof linter and formatter 🚲
Other
2.64k stars 204 forks source link

Switches in code vs README #592

Open knutsenm opened 7 months ago

knutsenm commented 7 months ago

Leftover questions from #565 are:

I was going to suggest the internal equivalent of standardrb --todo /dev/null, but then I noticed that

  • that option, and --config, have both been dropped from the README (although they're still in the code), and
  • when I try it, I get an error: it's being passed through to rubocop, which doesn't recognize it; a separate bug?

The --config option does seem to work, perhaps because Standard::MergesSettings#without_banned strips it.

Originally posted by @knutsenm in https://github.com/standardrb/standard/issues/565#issuecomment-1570590125