Skip to content

Commit 1975070

Browse files
add go license header check task
1 parent 4ac03c3 commit 1975070

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Taskfile.yml

+7
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ tasks:
142142
- easyjson arduino/cores/packageindex/index.go
143143
- easyjson arduino/libraries/librariesindex/json.go
144144

145+
go:check-license-headers:
146+
desc: Check go license headers
147+
cmds:
148+
- go install github.com/google/[email protected]
149+
- addlicense -c "ARDUINO SA (http://www.arduino.cc/)" -f ./license_header.tpl *.go
150+
145151
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
146152
markdown:check-links:
147153
desc: Check for broken links
@@ -309,6 +315,7 @@ tasks:
309315
cmds:
310316
- task: go:vet
311317
- task: go:lint
318+
- task: go:check-license-headers
312319
- task: protoc:check
313320

314321
check-legacy:

0 commit comments

Comments
 (0)