-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from CarlJi/feat/golangci-lint
feat(config): support linter's config path
- Loading branch information
Showing
6 changed files
with
166 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 这是我们当前内部使用的配置文件,会基于实际的变化和我们的认知而迭代,仅供参考 | ||
|
||
linters-settings: | ||
paralleltest: | ||
# Ignore missing calls to `t.Parallel()` and only report incorrect uses of it. | ||
# Default: false | ||
# see: https://github.com/qiniu/reviewbot/issues/149 | ||
ignore-missing: true | ||
# Ignore missing calls to `t.Parallel()` in subtests. Top-level tests are | ||
# still required to have `t.Parallel`, but subtests are allowed to skip it. | ||
# Default: false | ||
ignore-missing-subtests: true | ||
|
||
linters: | ||
# Enable all available linters. | ||
enable-all: true | ||
# Disable specific linter | ||
disable: | ||
- nlreturn # see https://github.com/qiniu/reviewbot/issues/148 | ||
- deadcode # Deprecated | ||
- exhaustivestruct # Deprecated | ||
- golint # Deprecated | ||
- ifshort # Deprecated | ||
- interfacer # Deprecated | ||
- maligned # Deprecated | ||
- gomnd # Deprecated | ||
- nosnakecase # Deprecated | ||
- scopelint # Deprecated | ||
- structcheck # Deprecated | ||
- varcheck # Deprecated |
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