Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Allow to disable some rules when fixing on save #89

@pvdlg

Description

@pvdlg

The Fix on Save feature is really useful, but with some rules it can sometime get in the way.
For example with the capitalized-comments.

When developing is sometimes to comment out a few lines of code to test something and revert the commenting to re-eanable the code.

With the capitalized-comments rule, if Fix on Save is enable, commenting a few line of code will capitalize the first letter. When un-commenting the capital letter will stay and has to be manually fixed.

For example, this following code might create a problem and I comment it to test:

// if (condition) {
//   createPossibleProblem();
// }

On save if becomes If:

// If (condition) {
//   createPossibleProblem();
// }

When I un-comment the code If stay capitalized.

See the same feature on linter-eslint : AtomLinter/linter-eslint#795

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions