Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
rednerd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
rednerd
Commits
1dd055d904e4
Commit
1dd055d904e4
authored
2 weeks ago
by
Axel Prel
Browse files
Options
Downloads
Patches
Plain Diff
enable forbidigo
excluding cmd since some commands legitimately use printing in the console
parent
0ac85576de99
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.golangci.yml
+4
-1
4 additions, 1 deletion
.golangci.yml
with
4 additions
and
1 deletion
.golangci.yml
+
4
−
1
View file @
1dd055d9
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
# - exhaustruct # Checks if all struct's fields are initialized style, test v1.32.0
# - exhaustruct # Checks if all struct's fields are initialized style, test v1.32.0
-
exptostd
# Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
-
exptostd
# Detects functions from golang.org/x/exp/ that can be replaced by std functions. [auto-fix]
-
fatcontext
# Detects nested contexts in loops. performance 1.58.0
-
fatcontext
# Detects nested contexts in loops. performance 1.58.0
#
- forbidigo # Forbids identifiers style v1.34.0
-
forbidigo
# Forbids identifiers style v1.34.0
-
forcetypeassert
# finds forced type assertions style v1.38.0
-
forcetypeassert
# finds forced type assertions style v1.38.0
# - funlen # Tool for detection of long functions complexity v1.18.0
# - funlen # Tool for detection of long functions complexity v1.18.0
-
gci
# Gci control golang package import order and make it always deterministic. format, import ✔ v1.30.0
-
gci
# Gci control golang package import order and make it always deterministic. format, import ✔ v1.30.0
...
@@ -165,6 +165,9 @@
...
@@ -165,6 +165,9 @@
-
path
:
'
cmd/|auth/|restapi/'
-
path
:
'
cmd/|auth/|restapi/'
linters
:
linters
:
-
lll
-
lll
-
path
:
'
cmd'
linters
:
-
forbidigo
exclude-dirs
:
exclude-dirs
:
-
dependencies
-
dependencies
-
restapi/operations
-
restapi/operations
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment