Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
586d26c7
Unverified
Commit
586d26c7
authored
Jul 07, 2020
by
Arve Knudsen
Committed by
GitHub
Jul 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: Replace scopelint with exportloopref (#26075)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
e8a81590
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
.circleci/config.yml
+1
-1
scripts/go/configs/.golangci.toml
+1
-5
scripts/go/configs/ci/.golangci.toml
+0
-4
No files found.
.circleci/config.yml
View file @
586d26c7
...
...
@@ -826,7 +826,7 @@ jobs:
command
:
|
# To save memory, run in two batches
golangci-lint run -v -j 4 --config scripts/go/configs/ci/.golangci.toml -E deadcode -E depguard -E dogsled \
-E errcheck -E goconst -E golint -E gosec -E gosimple -E govet -E
scopelint
-E whitespace ./pkg/...
-E errcheck -E goconst -E golint -E gosec -E gosimple -E govet -E
exportloopref
-E whitespace ./pkg/...
golangci-lint run -v -j 4 --config scripts/go/configs/ci/.golangci.toml -E ineffassign \
-E rowserrcheck -E staticcheck -E structcheck -E typecheck -E unconvert -E unused -E varcheck ./pkg/...
./scripts/go/bin/revive -formatter stylish -config ./scripts/go/configs/revive.toml ./pkg/...
...
...
scripts/go/configs/.golangci.toml
View file @
586d26c7
...
...
@@ -29,7 +29,7 @@ enable = [
# "interfacer",
# "misspell",
"rowserrcheck"
,
"
scopelint
"
,
"
exportloopref
"
,
"staticcheck"
,
"structcheck"
,
# "stylecheck",
...
...
@@ -45,10 +45,6 @@ enable = [
# "unparam"
[[issues.exclude-rules]]
path
=
"_test
\\
.go"
linters
=
["scopelint"]
[[issues.exclude-rules]]
linters
=
["gosec"]
text
=
"G108"
...
...
scripts/go/configs/ci/.golangci.toml
View file @
586d26c7
...
...
@@ -12,10 +12,6 @@ min-occurrences = 5
disable-all
=
true
[[issues.exclude-rules]]
path
=
"_test
\\
.go"
linters
=
["scopelint"]
[[issues.exclude-rules]]
linters
=
["gosec"]
text
=
"G108"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment