build(deps): bump github.com/ultraware/funlen from 0.0.3 to 0.1.0 (#3988)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
1a32d402b5
commit
2c0224fbb9
@ -402,6 +402,9 @@ linters-settings:
|
||||
# If lower than 0, disable the check.
|
||||
# Default: 40
|
||||
statements: -1
|
||||
# Ignore comments when counting lines.
|
||||
# Default false
|
||||
ignore-comments: true
|
||||
|
||||
gci:
|
||||
# DEPRECATED: use `sections` and `prefix(github.com/org/project)` instead.
|
||||
|
2
go.mod
2
go.mod
@ -106,7 +106,7 @@ require (
|
||||
github.com/timonwong/loggercheck v0.9.4
|
||||
github.com/tomarrell/wrapcheck/v2 v2.8.1
|
||||
github.com/tommy-muehle/go-mnd/v2 v2.5.1
|
||||
github.com/ultraware/funlen v0.0.3
|
||||
github.com/ultraware/funlen v0.1.0
|
||||
github.com/ultraware/whitespace v0.0.5
|
||||
github.com/uudashr/gocognit v1.0.7
|
||||
github.com/valyala/quicktemplate v1.7.0
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -547,8 +547,8 @@ github.com/tomarrell/wrapcheck/v2 v2.8.1 h1:HxSqDSN0sAt0yJYsrcYVoEeyM4aI9yAm3KQp
|
||||
github.com/tomarrell/wrapcheck/v2 v2.8.1/go.mod h1:/n2Q3NZ4XFT50ho6Hbxg+RV1uyo2Uow/Vdm9NQcl5SE=
|
||||
github.com/tommy-muehle/go-mnd/v2 v2.5.1 h1:NowYhSdyE/1zwK9QCLeRb6USWdoif80Ie+v+yU8u1Zw=
|
||||
github.com/tommy-muehle/go-mnd/v2 v2.5.1/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw=
|
||||
github.com/ultraware/funlen v0.0.3 h1:5ylVWm8wsNwH5aWo9438pwvsK0QiqVuUrt9bn7S/iLA=
|
||||
github.com/ultraware/funlen v0.0.3/go.mod h1:Dp4UiAus7Wdb9KUZsYWZEWiRzGuM2kXM1lPbfaF6xhA=
|
||||
github.com/ultraware/funlen v0.1.0 h1:BuqclbkY6pO+cvxoq7OsktIXZpgBSkYTQtmwhAK81vI=
|
||||
github.com/ultraware/funlen v0.1.0/go.mod h1:XJqmOQja6DpxarLj6Jj1U7JuoS8PvL4nEqDaQhy22p4=
|
||||
github.com/ultraware/whitespace v0.0.5 h1:hh+/cpIcopyMYbZNVov9iSxvJU3OYQg78Sfaqzi/CzI=
|
||||
github.com/ultraware/whitespace v0.0.5/go.mod h1:aVMh/gQve5Maj9hQ/hg+F75lr/X5A89uZnzAmWSineA=
|
||||
github.com/uudashr/gocognit v1.0.7 h1:e9aFXgKgUJrQ5+bs61zBigmj7bFJ/5cC6HmMahVzuDo=
|
||||
|
@ -380,8 +380,9 @@ func (p *ForbidigoPattern) MarshalString() ([]byte, error) {
|
||||
}
|
||||
|
||||
type FunlenSettings struct {
|
||||
Lines int
|
||||
Statements int
|
||||
Lines int
|
||||
Statements int
|
||||
IgnoreComments bool `mapstructure:"ignore-comments"`
|
||||
}
|
||||
|
||||
type GciSettings struct {
|
||||
|
@ -52,7 +52,7 @@ func NewFunlen(settings *config.FunlenSettings) *goanalysis.Linter {
|
||||
func runFunlen(pass *analysis.Pass, settings *config.FunlenSettings) []goanalysis.Issue {
|
||||
var lintIssues []funlen.Message
|
||||
for _, file := range pass.Files {
|
||||
fileIssues := funlen.Run(file, pass.Fset, settings.Lines, settings.Statements)
|
||||
fileIssues := funlen.Run(file, pass.Fset, settings.Lines, settings.Statements, settings.IgnoreComments)
|
||||
lintIssues = append(lintIssues, fileIssues...)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user