-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
golangci-lint
more strict (#150)
* Reformat some YAML files * Make `golangci-lint` more strict
- Loading branch information
1 parent
5f0ca38
commit 206f4be
Showing
13 changed files
with
105 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
interval: 'daily' | ||
- package-ecosystem: 'gomod' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
fields: | ||
runs-on: "ubuntu-latest" | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- uses: "actions/checkout@v3.3.0" | ||
- uses: "actions/setup-go@v4" | ||
- uses: 'actions/checkout@v3.3.0' | ||
- uses: 'actions/setup-go@v4' | ||
|
||
# TODO: Automatically merge the PR if tests pass. | ||
- run: "go generate unifi/fields.go" | ||
- uses: "peter-evans/create-pull-request@v5" | ||
- run: 'go generate unifi/fields.go' | ||
- uses: 'peter-evans/create-pull-request@v5' | ||
with: | ||
delete-branch: true | ||
title: "Update to latest controller version" | ||
title: 'Update to latest controller version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,44 @@ | ||
--- | ||
linters: | ||
disable-all: true | ||
enable: | ||
- "deadcode" | ||
- "errcheck" | ||
- "errorlint" | ||
- "gofmt" | ||
- "gosimple" | ||
- "govet" | ||
- "ineffassign" | ||
- "makezero" | ||
- "misspell" | ||
- "nakedret" | ||
- "nilerr" | ||
- "staticcheck" | ||
- "structcheck" | ||
- "unconvert" | ||
- "unparam" | ||
- "unused" | ||
- "varcheck" | ||
enable-all: true | ||
disable: | ||
- 'depguard' | ||
- 'tagliatelle' | ||
|
||
# Temporary | ||
- 'cyclop' | ||
- 'dupl' | ||
- 'exhaustruct' | ||
- 'forbidigo' | ||
- 'funlen' | ||
- 'gochecknoglobals' | ||
- 'gocognit' | ||
- 'goconst' | ||
- 'gocritic' | ||
- 'gocyclo' | ||
- 'godox' | ||
- 'goerr113' | ||
- 'gomnd' | ||
- 'gosec' | ||
- 'lll' | ||
- 'maintidx' | ||
- 'nestif' | ||
- 'nlreturn' | ||
- 'paralleltest' | ||
- 'revive' | ||
- 'stylecheck' | ||
- 'varnamelen' | ||
- 'wrapcheck' | ||
- 'wsl' | ||
|
||
# Deprecated | ||
- 'deadcode' | ||
- 'exhaustivestruct' | ||
- 'golint' | ||
- 'ifshort' | ||
- 'interfacer' | ||
- 'maligned' | ||
- 'nosnakecase' | ||
- 'scopelint' | ||
- 'structcheck' | ||
- 'varcheck' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters