revive: convert hard coded excludes into default exclude patterns (#1938)

This commit is contained in:
Ludovic Fernandez 2021-05-01 18:40:56 +02:00 committed by GitHub
parent cd9d8bb739
commit 34ffdc243f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 7 deletions

View file

@ -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

View file

@ -7,7 +7,7 @@ import (
"time"
)
func testRevive(t *time.Duration) error {
func SampleRevive(t *time.Duration) error {
if t == nil {
return nil
} else {