You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-19Lines changed: 51 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,35 +112,55 @@ Override `lint-all` in your justfile to add Java, Node, Python, etc.:
112
112
```just
113
113
java_lint := devtools_dir + "/linters/java"
114
114
115
-
# Extend base linters with Java-specific ones
116
-
lint-all: _ensure-devtools lint-java
117
-
#!/usr/bin/env bash
118
-
source "{{colors}}"
119
-
just --justfile {{devtools_dir}}/justfile lint-base
120
-
just_success "All linting checks completed"
115
+
# Run all linters with summary (automatically detects Java linters)
116
+
lint-all: _ensure-devtools
117
+
@{{devtools_dir}}/scripts/verify.sh
121
118
119
+
# Run all Java linters together (convenience command)
122
120
lint-java:
123
121
@{{java_lint}}/lint.sh
122
+
123
+
# Individual Java linters (auto-detected by verify.sh)
124
+
lint-java-checkstyle:
125
+
@{{java_lint}}/checkstyle.sh
126
+
127
+
lint-java-pmd:
128
+
@{{java_lint}}/pmd.sh
129
+
130
+
lint-java-spotbugs:
131
+
@{{java_lint}}/spotbugs.sh
124
132
```
125
133
134
+
When you run `just lint-all` or `just verify`, the verify script automatically detects `lint-java-checkstyle`, `lint-java-pmd`, and `lint-java-spotbugs` recipes and runs them individually with a summary table. You can also run `just lint-java` to execute all Java linters together.
135
+
126
136
See [`examples/java-justfile`](examples/java-justfile) for a complete example.
127
137
128
138
### Node/TypeScript Project
129
139
130
140
```just
131
141
node_lint := devtools_dir + "/linters/node"
132
142
133
-
# Extend base linters with Node linters
134
-
lint-all: _ensure-devtools lint-node
135
-
#!/usr/bin/env bash
136
-
source "{{colors}}"
137
-
just --justfile {{devtools_dir}}/justfile lint-base
138
-
just_success "All linting checks completed"
143
+
# Run all linters with summary (automatically detects Node linters)
144
+
lint-all: _ensure-devtools
145
+
@{{devtools_dir}}/scripts/verify.sh
139
146
147
+
# Run all Node linters together (convenience command)
140
148
lint-node:
141
149
@{{node_lint}}/lint.sh
150
+
151
+
# Individual Node linters (auto-detected by verify.sh)
152
+
lint-node-eslint:
153
+
@{{node_lint}}/eslint.sh
154
+
155
+
lint-node-format:
156
+
@{{node_lint}}/format.sh check
157
+
158
+
lint-node-ts-types:
159
+
@{{node_lint}}/types.sh
142
160
```
143
161
162
+
When you run `just lint-all` or `just verify`, the verify script automatically detects `lint-node-*` recipes and runs them individually with a summary table. You can also run `just lint-node` to execute all Node linters together.
163
+
144
164
See [`examples/node-justfile`](examples/node-justfile) for a complete example.
145
165
146
166
### Python Project
@@ -203,21 +223,33 @@ lint-rust:
203
223
### Minimal Project (base linters only)
204
224
205
225
```just
206
-
# Run all linters (uses base linters only)
226
+
# Run all linters with summary (base linters only)
0 commit comments