mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
99906da7a6
Enabling misspell and goimports in golangci-lint allows a bit of simplification of tools.go / Makefile. The linters enabled locally also complained about the markdown in README.md a little, so I fixed those complaints. I also enabled auto-fix mode in golangci-lint so that it will just fix any lint issues it runs across (which is how goimports/misspell) was being used. misspell still needs to be included in tools.go unless we decide that we didn't want it to run on markdown files.
17 lines
328 B
YAML
17 lines
328 B
YAML
# See https://github.com/golangci/golangci-lint#config-file
|
|
run:
|
|
issues-exit-code: 1 #Default
|
|
tests: true #Default
|
|
|
|
linters:
|
|
enable:
|
|
- misspell
|
|
- goimports
|
|
|
|
linters-settings:
|
|
misspell:
|
|
locale: US
|
|
#ignore-words:
|
|
# - someword
|
|
goimports:
|
|
local-prefixes: github.com/open-telemetry/opentelemetry-go |