codeclimate / codeclimate-eslint

Code Climate Engine for ESLint
MIT License
95 stars 93 forks source link

QUA-146: Fix no rules configured warning #509

Closed noelia-lencina closed 3 years ago

noelia-lencina commented 3 years ago

Report: https://codeclimate.atlassian.net/browse/QUA-146

Root causes

Proposed changes

  1. Stop warning for empty config files to avoid confusion (that's the change in this PR). The disadvantage is that we won't be warning any files, but also the warning is not helping right now as it's always being throw.
  2. Throw the warning with the file path and disclaimers saying that if the file comes from an external source or uses overrides you should probably do nothing --> This would be relatively easy to implement, though it may be noisy and users may have a similar estructure where they have config files without rules and that doesn't necessarily mean there's a problem.

Next steps