good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
open
jrpc
Commits
ac6c16de
Commit
ac6c16de
authored
1 year ago
by
a
Browse files
Options
Downloads
Patches
Plain Diff
Add new file
parent
61b2a8ff
No related branches found
No related tags found
No related merge requests found
Pipeline
#23857
failed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.golangci.yml
+90
-0
90 additions, 0 deletions
.golangci.yml
with
90 additions
and
0 deletions
.golangci.yml
0 → 100644
+
90
−
0
View file @
ac6c16de
run
:
deadline
:
10m
skip-dirs
:
-
hack
linters
:
disable-all
:
true
enable
:
-
gofmt
-
errcheck
-
gosimple
-
govet
-
ineffassign
-
staticcheck
-
gocritic
-
bodyclose
-
gosec
-
prealloc
-
unconvert
-
unused
-
cyclop
linters-settings
:
cyclop
:
max-complexity
:
20
gocritic
:
# Which checks should be enabled; can't be combined with 'disabled-checks';
# See https://go-critic.github.io/overview#checks-overview
# To check which checks are enabled run `GL_DEBUG=gocritic ./build/bin/golangci-lint run`
# By default list of stable checks is used.
enabled-checks
:
-
ruleguard
-
truncateCmp
# Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
disabled-checks
:
-
captLocal
-
assignOp
-
paramTypeCombine
-
importShadow
-
commentFormatting
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
enabled-tags
:
-
performance
-
diagnostic
-
opinionated
disabled-tags
:
-
experimental
settings
:
hugeParam
:
# size in bytes that makes the warning trigger (default 80)
sizeThreshold
:
1000
rangeExprCopy
:
# size in bytes that makes the warning trigger (default 512)
sizeThreshold
:
512
# whether to check test functions (default true)
skipTestFuncs
:
true
truncateCmp
:
# whether to skip int/uint/uintptr types (default true)
skipArchDependent
:
true
underef
:
# whether to skip (*x).method() calls where x is a pointer receiver (default true)
skipRecvDeref
:
true
govet
:
disable
:
-
deepequalerrors
-
fieldalignment
-
shadow
-
unsafeptr
goconst
:
min-len
:
2
min-occurrences
:
2
gofmt
:
auto-fix
:
false
issues
:
exclude-rules
:
-
linters
:
-
golint
text
:
"
should
be"
-
linters
:
-
errcheck
text
:
"
not
checked"
-
linters
:
-
staticcheck
text
:
"
SA(1019|1029|5011)"
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