Skip to content

Commit 0fe9f0d

Browse files
committed
fix: requirements to merge
1 parent e4bb2cb commit 0fe9f0d

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.golangci.next.reference.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,15 @@ linters-settings:
535535
- '.+/cobra\.Command$'
536536

537537
filen:
538-
# Min number of lines in a file setting
539-
# Default: 5
540-
min-lines-num: 5
541-
# Max number of lines in a file setting
542-
# Default: 5
543-
max-lines-num: 500
544538
# Ignore comments when counting lines.
545539
# Default false
546-
ignore-comments: false
540+
ignore-comments: true
541+
# Max number of lines in a file setting
542+
# Default: 500
543+
max-lines-num: 1000
544+
# Min number of lines in a file setting
545+
# Default: 5
546+
min-lines-num: 1
547547

548548
forbidigo:
549549
# Forbid the following identifiers (list of regexp).

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/golangci/golangci-lint
22

3-
go 1.23.2
3+
go 1.22.1
44

55
require (
66
4d63.com/gocheckcompilerdirectives v1.2.1
@@ -12,7 +12,7 @@ require (
1212
github.com/Antonboom/testifylint v1.5.0
1313
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
1414
github.com/Crocmagnon/fatcontext v0.5.2
15-
github.com/DanilXO/filen v0.1.0
15+
github.com/DanilXO/filen v0.2.0
1616
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
1717
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0
1818
github.com/OpenPeeDeeP/depguard/v2 v2.2.0

go.sum

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/linters_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,9 @@ type WSLSettings struct {
10141014
}
10151015

10161016
type FilenSettings struct {
1017+
IgnoreComments bool `mapstructure:"ignore-comments"`
10171018
MaxLinesNum int `mapstructure:"min-lines-num"`
10181019
MinLinesNum int `mapstructure:"max-lines-num"`
1019-
IgnoreComments bool `mapstructure:"ignore-comments"`
10201020
}
10211021

10221022
// CustomLinterSettings encapsulates the meta-data of a private linter.

pkg/golinters/filen/filen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package filen
22

33
import (
4-
"github.com/DanilXO/filen/pgk/filen"
4+
"github.com/DanilXO/filen/pkg/filen"
55
"github.com/golangci/golangci-lint/pkg/config"
66
"github.com/golangci/golangci-lint/pkg/goanalysis"
77
"golang.org/x/tools/go/analysis"
File renamed without changes.

0 commit comments

Comments
 (0)