You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +02:00 
			
		
		
		
	Lock down golangci-lint config (#2602)
Disable all default linters prior to enabling the ones we want to ensure that no upgrade that include new default linters introduce changes to the CI system.
This commit is contained in:
		| @@ -4,11 +4,26 @@ run: | ||||
|   tests: true #Default | ||||
|  | ||||
| linters: | ||||
|   # Disable everything by default so upgrades to not include new "default | ||||
|   # enabled" linters. | ||||
|   disable-all: true | ||||
|   # Specifically enable linters we want to use. | ||||
|   enable: | ||||
|     - misspell | ||||
|     - goimports | ||||
|     - revive | ||||
|     - deadcode | ||||
|     - errcheck | ||||
|     - gofmt | ||||
|     - goimports | ||||
|     - gosimple | ||||
|     - govet | ||||
|     - ineffassign | ||||
|     - misspell | ||||
|     - revive | ||||
|     - staticcheck | ||||
|     - structcheck | ||||
|     - typecheck | ||||
|     - unused | ||||
|     - varcheck | ||||
|  | ||||
|  | ||||
| issues: | ||||
|   exclude-rules: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user