mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
ci: re-enable revive and gosec linters (#17225)
* Reenables revive linter for test files (with an exception for the `unused-parameter` rule) * Reenables gosec linter for test files
This commit is contained in:
+1
-2
@@ -164,6 +164,7 @@ linters-settings:
|
||||
- name: unnecessary-stmt
|
||||
- name: unreachable-code
|
||||
- name: unused-parameter
|
||||
exclude: "**/*_test.go"
|
||||
- name: unused-receiver
|
||||
- name: var-declaration
|
||||
- name: var-naming
|
||||
@@ -195,8 +196,6 @@ issues:
|
||||
- errcheck
|
||||
- forcetypeassert
|
||||
- exhaustruct # This is unhelpful in tests.
|
||||
- revive # TODO(JonA): disabling in order to update golangci-lint
|
||||
- gosec # TODO(JonA): disabling in order to update golangci-lint
|
||||
- path: scripts/*
|
||||
linters:
|
||||
- exhaustruct
|
||||
|
||||
Reference in New Issue
Block a user