File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ linters:
3939 - github.com/wso2-enterprise/agent-manager-service/spec\.PostgresQueryStats
4040 goheader :
4141 template-path : .github/copyright_header.tmpl
42+ values :
43+ regexp :
44+ YEAR : " \\ d{4}"
4245 exclusions :
4346 generated : lax
4447 rules :
Original file line number Diff line number Diff line change 11goimports -w .
22golangci-lint --version
3- golangci-lint run ./... -v -c .github/linters/.golangci.yaml --fix
3+ # Run all linters with --fix except goheader (to prevent modifying existing copyright years)
4+ golangci-lint run ./... -v -c .github/linters/.golangci.yaml --fix --disable goheader
5+ # Run goheader separately without --fix to only verify headers exist without modifying them
6+ golangci-lint run ./... -v -c .github/linters/.golangci.yaml --enable-only goheader
You can’t perform that action at this time.
0 commit comments