Skip to content

Commit

Permalink
disable staticcheck for ST1003 and back to golangci binary usage in GA
Browse files Browse the repository at this point in the history
  • Loading branch information
ja88a committed Jan 25, 2024
1 parent 33c0824 commit 7cb24a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# skip-build-cache: true

# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
install-mode: "goinstall"
# install-mode: "goinstall"
- name: Run golangci-lint on vrfs-fs
uses: golangci/golangci-lint-action@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ linters:
- gosec # inspects source code for security problems
- govet # suspicious constructs (enabled by default)
- ineffassign # assignments to existing variables are not used (enabled by default)
# - rowserrcheck # Err of rows is checked successfully
# - sqlclosecheck # sql.Rows and sql.Stmt are closed
- staticcheck
# - rowserrcheck # Err of rows is checked successfully
# - sqlclosecheck # sql.Rows and sql.Stmt are closed
# - staticcheck
- typecheck # (enabled by default)
- unparam # reports unused function parameters
- unused # unused constants, variables, functions and types (enabled by default)
Expand All @@ -57,7 +57,7 @@ linters:

initialisms: [
# Common.
"ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "IP", "JSON", "QPS", "RAM", "RPC", "SLA",
"ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA",
"SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS",
"SIP", "RTP", "AMQP", "DB", "TS",
# Domain specific.
Expand Down

0 comments on commit 7cb24a6

Please sign in to comment.