diff --git a/.golangci.yml b/.golangci.yml index 8858b83..e8fdbc9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,14 +6,13 @@ linters-settings: min-complexity: 15 goimports: local-prefixes: github.com/golang-templates/seed - govet: - shadow: true misspell: locale: US nolintlint: + allow-leading-space: false # require machine-readable nolint directives (with no leading space) allow-unused: false # report any unused nolint directives require-explanation: true # require an explanation for nolint directives - require-specific: false # don't require nolint directives to be specific about which linter is being skipped + require-specific: true # require nolint directives to be specific about which linter is being skipped revive: confidence: 0 @@ -21,12 +20,13 @@ linters: disable-all: true enable: - bodyclose + - asasalint - dogsled - dupl + - dupword - errcheck - exportloopref - funlen - - gochecknoinits - gocritic - goconst - gocyclo @@ -34,15 +34,18 @@ linters: - goimports - revive - rowserrcheck + - godot - goprintffuncname - gosec - gosimple - govet - ineffassign - misspell + - mnd - nakedret - noctx - nolintlint + - perfsprint - staticcheck - stylecheck - sqlclosecheck @@ -53,5 +56,5 @@ linters: - whitespace issues: - # enable issues excluded by default - exclude-use-default: false + exclude: + - EXC0001 diff --git a/.vscode/settings.json b/.vscode/settings.json index bce7b76..c335420 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,13 +2,13 @@ "[go]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true, + "source.organizeImports": "explicit" }, }, "[go.mod]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true, + "source.organizeImports": "explicit" }, }, // gopls diff --git a/CHANGELOG.md b/CHANGELOG.md index 669f520..5fdb2e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/golang-templates/seed/compare/v0.19.0...HEAD) +### Added + +- Add `asasalint` linter. +- Add `dupword` linter. +- Add `godot` linter. +- Add `mnd` linter. +- Add `perfsprint` linter. +- Add `EXC0001` exclusion as the most common false postive. + +### Changed + +- Change `nolintlint` linter settings to not allow leading space and require to specific about which linter is being skipped. +- Change `govet` linter settings to default. +- Add ` + +### Removed + +- Remove `gochecknoinits` linter. + ## [0.19.0](https://github.com/golang-templates/seed/releases/tag/v0.19.0) ### Added