Skip to content

Commit 260d775

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
update usage
1 parent b11bb38 commit 260d775

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

README.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ lint-install .
1919

2020
# Run linters
2121
make lint
22+
23+
# Auto-fix issues
24+
make fix
2225
```
2326

2427
## Why Use It?
@@ -43,32 +46,17 @@ make lint
4346
lint-install .
4447
make 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)

0 commit comments

Comments
 (0)