mirror of
https://github.com/onyx-and-iris/vbantxt.git
synced 2026-03-02 16:19:14 +00:00
add linter exclusion for test files
set thresholds for issues
This commit is contained in:
parent
87ea26ab03
commit
f97d241f64
@ -67,6 +67,7 @@ linters:
|
|||||||
- name: unused-parameter
|
- name: unused-parameter
|
||||||
- name: var-declaration
|
- name: var-declaration
|
||||||
- name: blank-imports
|
- name: blank-imports
|
||||||
|
- name: range
|
||||||
|
|
||||||
# Disabled rules (can be enabled if needed)
|
# Disabled rules (can be enabled if needed)
|
||||||
# - name: line-length-limit
|
# - name: line-length-limit
|
||||||
@ -81,6 +82,17 @@ linters:
|
|||||||
- G104 # Duplicated errcheck checks
|
- G104 # Duplicated errcheck checks
|
||||||
- G115 # integer overflow conversion int -> uint32
|
- G115 # integer overflow conversion int -> uint32
|
||||||
|
|
||||||
|
exclusions:
|
||||||
|
warn-unused: false
|
||||||
|
rules:
|
||||||
|
# Exclude some linters from running on tests files.
|
||||||
|
- path: _test\.go
|
||||||
|
linters:
|
||||||
|
- gocyclo
|
||||||
|
- errcheck
|
||||||
|
- dupl
|
||||||
|
- gosec
|
||||||
|
|
||||||
# Formatters configuration
|
# Formatters configuration
|
||||||
formatters:
|
formatters:
|
||||||
# Enable specific formatters
|
# Enable specific formatters
|
||||||
@ -106,5 +118,8 @@ formatters:
|
|||||||
extra-rules: true # Enable additional formatting rules
|
extra-rules: true # Enable additional formatting rules
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
max-same-issues: 0
|
# Limit the number of same issues reported to avoid spam
|
||||||
max-issues-per-linter: 0
|
max-same-issues: 50
|
||||||
|
|
||||||
|
# Limit the number of issues per linter to keep output manageable
|
||||||
|
max-issues-per-linter: 100
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user