File tree 2 files changed +8
-17
lines changed
2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,7 @@ permissions:
17
17
contents : read
18
18
19
19
jobs :
20
- setup-scripts :
21
- runs-on : ubuntu-latest
22
- steps :
23
- - uses : actions/checkout@v3
24
- - name : Setup lint scripts
25
- run : make setup-scripts
26
-
27
-
28
20
lint :
29
- needs : setup-scripts
30
21
runs-on : ubuntu-latest
31
22
steps :
32
23
- uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7
Original file line number Diff line number Diff line change @@ -194,14 +194,6 @@ define proto_compile
194
194
195
195
endef
196
196
197
- .PHONY : setup-scripts
198
- setup-scripts :
199
- rm -rf .scripts/lint
200
- mkdir -p .scripts/lint
201
- curl -o .scripts/lint/updateLicense.py https://raw.githubusercontent.com/jaegertracing/jaeger/main/scripts/lint/updateLicense.py
202
- curl -o .scripts/lint/import-order-cleanup.py https://raw.githubusercontent.com/jaegertracing/jaeger/main/scripts/lint/import-order-cleanup.py
203
- chmod +x .scripts/lint/* .py
204
-
205
197
.PHONY : lint
206
198
lint : lint-imports lint-nocommit lint-license lint-go
207
199
@@ -212,7 +204,12 @@ lint-go: $(LINT)
212
204
.PHONY : lint-license
213
205
lint-license :
214
206
@echo Verifying that all files have license headers
207
+ @mkdir -p .scripts/lint
208
+ @curl -s -o .scripts/lint/updateLicense.py https://raw.githubusercontent.com/jaegertracing/jaeger/main/scripts/lint/updateLicense.py
209
+ @chmod +x .scripts/lint/updateLicense.py
215
210
@./.scripts/lint/updateLicense.py $(ALL_SRC ) $(SCRIPTS_SRC ) > $(FMT_LOG )
211
+ @[ -s " $( FMT_LOG) " ] || echo " ✅ All files have license headers"
212
+
216
213
217
214
.PHONY : lint-nocommit
218
215
lint-nocommit :
@@ -224,6 +221,9 @@ lint-nocommit:
224
221
.PHONY : lint-imports
225
222
lint-imports :
226
223
@echo Verifying that all files have correctly ordered imports
224
+ @mkdir -p .scripts/lint
225
+ @curl -s -o .scripts/lint/import-order-cleanup.py https://raw.githubusercontent.com/jaegertracing/jaeger/main/scripts/lint/import-order-cleanup.py
226
+ @chmod +x .scripts/lint/import-order-cleanup.py
227
227
@./.scripts/lint/import-order-cleanup.py -o stdout -t $(ALL_SRC ) > $(IMPORT_LOG )
228
228
@[ ! -s " $( IMPORT_LOG) " ] || (echo " Import ordering failures, run 'make fmt'" | cat - $( IMPORT_LOG) && false)
229
229
@[ -s " $( IMPORT_LOG) " ] || echo " ✅ All files have correctly ordered imports"
You can’t perform that action at this time.
0 commit comments