mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
revive: convert hard coded excludes into default exclude patterns (#1938)
This commit is contained in:
parent
cd9d8bb739
commit
34ffdc243f
4 changed files with 16 additions and 7 deletions
2
test/testdata/configs/revive.yml
vendored
2
test/testdata/configs/revive.yml
vendored
|
@ -3,6 +3,8 @@ linters-settings:
|
|||
ignore-generated-header: true
|
||||
severity: warning
|
||||
rules:
|
||||
- name: exported
|
||||
- name: package-comments
|
||||
- name: cognitive-complexity
|
||||
arguments: [ 7 ]
|
||||
- name: line-length-limit
|
||||
|
|
2
test/testdata/revive.go
vendored
2
test/testdata/revive.go
vendored
|
@ -7,7 +7,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
func testRevive(t *time.Duration) error {
|
||||
func SampleRevive(t *time.Duration) error {
|
||||
if t == nil {
|
||||
return nil
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue