summaryrefslogtreecommitdiff
path: root/.golangci.yml
AgeCommit message (Collapse)Author
2024-04-14build(ci): fix godot config (#7167)James Elliott
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-09-04test: refactor linting (#5956)James Elliott
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2023-09-04test: add forbidigo (#5953)James Elliott
Use forbidigo to prevent print statements except in relevant locations. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
2022-09-09ci(golangci-lint): fix revive false positives (#3992)Amir Zarrinkafsh
2021-06-11ci(golangci-lint): replace golint with revive linter (#2078)Amir Zarrinkafsh
Remove deprecated `golint` linter and replace with `revive` linter. Also fix outstanding issues due to upgraded linters.
2021-04-11ci: add yamllint (#1895)James Elliott
This change implements yamllint and adjusts all yaml files to abide by our linting setup. This excludes config.template.yml as this will be done in an alternate commit.
2021-03-30ci: publish docker images to ghcr (#1860)Amir Zarrinkafsh
* ci: publish docker images to ghcr * ci: remove ghcr images with no tags * ci: remove unnecessary ghcr jq args for empty tags * ci: move ghcr empty tag clean up Publishes Docker container images on both DockerHub and GitHub Container Registry.
2020-05-06[CI] Add gocritic linter (#977)Amir Zarrinkafsh
* [CI] Add gocritic linter * Implement gocritic recommendations The outstanding recommendations are due to be addressed in #959 and #971 respectively. * Fix implementation tests * Fix remaining linting issues. * Fix tests. Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-05-05[CI] Add wsl linter (#980)Amir Zarrinkafsh
* [CI] Add wsl linter * Implement wsl recommendations Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-05-05[CI] Enable gosec linter (#979)James Elliott
* fix tee append * convert DB table names from var to const * fixed file modes * ignored gosec where relevant and safe
2020-05-05[CI] Add linters: asciicheck, nolintlint and unconvert (#978)Amir Zarrinkafsh
2020-05-02[CI] Add goconst linter (#961)Amir Zarrinkafsh
* [CI] Add goconst linter * Implement goconst recommendations * Rename defaultPolicy to denyPolicy * Change order for test constants Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-05-02[CI] Add godot linter (#958)Amir Zarrinkafsh
* [CI] Add godot linter * Implement godot recommendations
2020-04-28[CI] Adjust linting default excludes to align with goreportcard (#934)Amir Zarrinkafsh
2020-04-09[Buildkite] Introduce CI linting with golangci-lint and reviewdog (#832)Amir Zarrinkafsh
* [Buildkite] Introduce CI linting with golangci-lint and reviewdog * Initial pass of golangci-lint * Add gosimple (megacheck) recommendations * Add golint recommendations * [BUGFIX] Migrate authentication traces from v3 mongodb * Add deadcode recommendations * [BUGFIX] Fix ShortTimeouts suite when run in dev workflow * Add unused recommendations * Add unparam recommendations * Disable linting on unfixable errors instead of skipping files * Adjust nolint notation for unparam * Fix ineffectual assignment to err raised by linter. * Export environment variable in agent hook * Add ineffassign recommendations * Add staticcheck recommendations * Add gocyclo recommendations * Adjust ineffassign recommendations Co-authored-by: Clement Michaud <clement.michaud34@gmail.com>