Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
kube-router
Commits
b8a795ec
Commit
b8a795ec
authored
3 years ago
by
Aaron U'Ren
Browse files
Options
Download
Email Patches
Plain Diff
feat(.golangci.yml): enable gochecknoinits and remediate
parent
c5f4c00d
base
dependabot/go_modules/github.com/aws/aws-sdk-go-1.44.211
dependabot/go_modules/github.com/osrg/gobgp/v3-3.11.0
dependabot/go_modules/k8s.io/api-0.26.2
dependabot/go_modules/k8s.io/apimachinery-0.26.2
dependabot/go_modules/k8s.io/cri-api-0.26.2
master
rel-v0.0.1
release-test/22.02.3
release/22.02.1
release/22.02.2
release/22.02.3
release/22.02.4
release/22.12
release/22.12-BETA.1
release/22.12-BETA.2
release/22.12-RC.1
release/22.12.1
release/22.12.2
release/22.12.3
release/22.12.4
release/23.10-BETA.1
release/23.10-RC.1
release/23.10.0
release/23.10.1
release/23.10.1.2
release/23.10.1.3
release/23.10.2
release/24.04-BETA.1
release/24.04-RC.1
release/24.04.0
stable/angelfish
stable/angelfish-backup-28-05-22
stable/bluefin
stable/cobia
stable/dragonfish
testing-refine-branchout-process
testing-refine-branchout-process2
truenas/master
truenas/master-backup-2-7-23
truenas/master-backup-21-08-22
truenas/master-backup-29-05-22
TS-24.04-RC.1
TS-24.04-BETA.1
TS-23.10.2
TS-23.10.1.3
TS-23.10.1.2
TS-23.10.1.1
TS-23.10.1
TS-23.10.0.1
TS-23.10.0
TS-23.10-RC.1
TS-23.10-BETA.1
TS-22.12.4.2
TS-22.12.4.1
TS-22.12.4
TS-22.12.3.3
TS-22.12.3.2
TS-22.12.3.1
TS-22.12.3
TS-22.12.2
TS-22.12.1
TS-22.12.0
TS-22.12-RC.1
TS-22.12-BETA.2
TS-22.12-BETA.1
TS-22.12-ALPHA.1
TS-22.02.4
TS-22.02.3
TS-22.02.2.1
TS-22.02.2
TS-22.02.1
TS-12.12.3
DN110M-CS-v2.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.golangci.yml
+1
-0
.golangci.yml
pkg/utils/iptables.go
+1
-0
pkg/utils/iptables.go
with
2 additions
and
0 deletions
+2
-0
.golangci.yml
View file @
b8a795ec
...
...
@@ -8,6 +8,7 @@ linters:
-
dupl
-
errcheck
-
exportloopref
-
gochecknoinits
-
gofmt
-
goimports
-
misspell
...
...
This diff is collapsed.
Click to expand it.
pkg/utils/iptables.go
View file @
b8a795ec
...
...
@@ -9,6 +9,7 @@ import (
var
hasWait
bool
//nolint:gochecknoinits // This is actually a good usage of the init() function
func
init
()
{
path
,
err
:=
exec
.
LookPath
(
"iptables-restore"
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help