-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Bug: Fix issues introduced in linting PR (#2319)
* internal: revert linting changes Changes to the internal package should not have been made in 167a8b5. * middleware/monitor: revert changes to exported field "ChartJSURL" This is a breaking change introduced in 167a8b5. * middleware/monitor: fix error checking Fix the errorenous error checking introduced in 167a8b5. * 🐛 Bug: Fix issues introduced in linting PR #2319 * 🐛 Bug: Fix issues introduced in linting PR #2319 * Bug: Fix issues introduced in linting PR #2319 --------- Co-authored-by: René Werner <[email protected]>
- Loading branch information
1 parent
44d0920
commit ac4ce21
Showing
111 changed files
with
98 additions
and
9,594 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 |
---|---|---|
|
@@ -5,26 +5,12 @@ run: | |
modules-download-mode: readonly | ||
skip-dirs-use-default: false | ||
skip-dirs: | ||
- internal # TODO: Also apply proper linting for internal dir | ||
- internal | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
output: | ||
sort-results: true | ||
|
||
linters-settings: | ||
# TODO: Eventually enable these checks | ||
# depguard: | ||
# include-go-root: true | ||
# packages: | ||
# - flag | ||
# - io/ioutil | ||
# - reflect | ||
# - unsafe | ||
# packages-with-error-message: | ||
# - flag: '`flag` package is only allowed in main.go' | ||
# - io/ioutil: '`io/ioutil` package is deprecated, use the `io` and `os` package instead' | ||
# - reflect: '`reflect` package is dangerous to use' | ||
# - unsafe: '`unsafe` package is dangerous to use' | ||
|
||
errcheck: | ||
check-type-assertions: true | ||
check-blank: true | ||
|
@@ -44,15 +30,6 @@ linters-settings: | |
# - 'time\.Sleep' | ||
# - 'panic' | ||
|
||
gci: | ||
This comment has been minimized.
Sorry, something went wrong.
leonklingele
Author
Member
|
||
sections: | ||
- standard | ||
- prefix(github.com/gofiber/fiber) | ||
- default | ||
- blank | ||
- dot | ||
custom-order: true | ||
|
||
gocritic: | ||
disabled-checks: | ||
- ifElseChain | ||
|
@@ -162,86 +139,47 @@ linters: | |
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
# - cyclop | ||
# - deadcode | ||
# - decorder | ||
- depguard | ||
- dogsled | ||
# - dupl | ||
# - dupword | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- execinquery | ||
- exhaustive | ||
# - exhaustivestruct | ||
# - exhaustruct | ||
- exportloopref | ||
- forbidigo | ||
- forcetypeassert | ||
# - funlen | ||
- gci | ||
- gochecknoglobals | ||
- gochecknoinits | ||
# - gocognit | ||
- goconst | ||
- gocritic | ||
# - gocyclo | ||
# - godot | ||
# - godox | ||
# - goerr113 | ||
- gofmt | ||
- gofumpt | ||
# - goheader | ||
- goimports | ||
# - golint | ||
- gomnd | ||
- gomoddirectives | ||
# - gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- govet | ||
- grouper | ||
# - ifshort | ||
# - importas | ||
- ineffassign | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# - interfacebloat | ||
# - interfacer | ||
# - ireturn | ||
# - lll | ||
- loggercheck | ||
# - maintidx | ||
# - makezero | ||
# - maligned | ||
- misspell | ||
- nakedret | ||
# - nestif | ||
- nilerr | ||
- nilnil | ||
# - nlreturn | ||
- noctx | ||
- nolintlint | ||
- nonamedreturns | ||
# - nosnakecase | ||
- nosprintfhostport | ||
# - paralleltest # TODO: Enable once https://github.com/gofiber/fiber/issues/2254 is implemented | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# - prealloc | ||
- predeclared | ||
- promlinter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
# - scopelint | ||
- sqlclosecheck | ||
- staticcheck | ||
# - structcheck | ||
- stylecheck | ||
- tagliatelle | ||
# - tenv # TODO: Enable once we drop support for Go 1.16 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# - testableexamples | ||
# - testpackage # TODO: Enable once https://github.com/gofiber/fiber/issues/2252 is implemented | ||
- thelper | ||
# - tparallel # TODO: Enable once https://github.com/gofiber/fiber/issues/2254 is implemented | ||
|
@@ -250,9 +188,6 @@ linters: | |
- unparam | ||
- unused | ||
- usestdlibvars | ||
# - varcheck | ||
# - varnamelen | ||
- wastedassign | ||
- whitespace | ||
- wrapcheck | ||
# - wsl |
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
Oops, something went wrong.
Eventually, the
internal
package should be linted as well imo.