Skip to content

Commit

Permalink
bump github.com/denis-tingaikin/go-header from 0.4.2 to 0.4.3 (#2614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Feb 24, 2022
1 parent 30c6166 commit 56d77e2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/butuzov/ireturn v0.1.1
github.com/charithe/durationcheck v0.0.9
github.com/daixiang0/gci v0.3.1
github.com/denis-tingajkin/go-header v0.4.2
github.com/denis-tingaikin/go-header v0.4.3
github.com/esimonov/ifshort v1.0.4
github.com/fatih/color v1.13.0
github.com/fzipp/gocyclo v0.4.0
Expand Down
6 changes: 2 additions & 4 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/golinters/goheader.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"go/token"
"sync"

goheader "github.com/denis-tingajkin/go-header"
goheader "github.com/denis-tingaikin/go-header"
"golang.org/x/tools/go/analysis"

"github.com/golangci/golangci-lint/pkg/golinters/goanalysis"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
linter.NewConfig(golinters.NewGoHeader()).
WithSince("v1.28.0").
WithPresets(linter.PresetStyle).
WithURL("https://github.com/denis-tingajkin/go-header"),
WithURL("https://github.com/denis-tingaikin/go-header"),

linter.NewConfig(golinters.NewGoimports()).
WithSince("v1.20.0").
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/go-header_bad.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*MY TITLE!*/ // ERROR `Expected:TITLE\., Actual: TITLE!`

//args: -Egoheader
//config_path: testdata/configs/go-header.yml
// args: -Egoheader
// config_path: testdata/configs/go-header.yml
package testdata
4 changes: 2 additions & 2 deletions test/testdata/go-header_good.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*MY TITLE.*/

//args: -Egoheader
//config_path: testdata/configs/go-header.yml
// args: -Egoheader
// config_path: testdata/configs/go-header.yml
package testdata

0 comments on commit 56d77e2

Please sign in to comment.