File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ lint-install .
1919
2020# Run linters
2121make lint
22+
23+ # Auto-fix issues
24+ make fix
2225```
2326
2427## Why Use It?
@@ -43,32 +46,17 @@ make lint
4346lint-install .
4447make lint
4548
46- # Only Go and Shell linters
47- lint-install -dockerfile=ignore -yaml=ignore -web=ignore .
48-
49- # Preview changes
50- lint-install -dry-run .
49+ # Auto-fix all fixable issues
50+ make fix
5151
5252# CI/CD (GitHub Actions)
5353- run: make lint-install
5454- run: make lint
5555```
5656
57- ## Command Options
58-
59- ```
60- -dockerfile string Dockerfile linting: [ignore, warn, error] (default "error")
61- -go string Go linting: [ignore, warn, error] (default "error")
62- -shell string Shell linting: [ignore, warn, error] (default "error")
63- -yaml string YAML linting: [ignore, warn, error] (default "error")
64- -web string Web linting (JS/TS/HTML/CSS/JSON): [ignore, warn, error] (default "error")
65- -dry-run Preview changes without applying
66- -makefile string Makefile name (default "Makefile")
67- ```
68-
6957## What Gets Added
7058
71- - ** Makefile targets** : ` lint ` , ` lint-<language> ` , ` lint-install `
59+ - ** Makefile targets** : ` lint ` , ` fix ` , ` lint-<language> ` , ` lint-install `
7260- ** Config files** : Only for languages detected in your project
7361 - ` .golangci.yml ` (Go files)
7462 - ` .yamllint ` (YAML files)
You can’t perform that action at this time.
0 commit comments