Skip to content

build(deps): bump github.com/manuelarte/funcorder from 0.2.1 to 0.3.0 #5743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ linters:
# Checks if the exported methods of a structure are placed before the non-exported ones.
# Default: true
struct-method: false
# Checks if the constructors and/or structure methods are sorted alphabetically.
# Default: false
alphabetical: true

funlen:
# Checks the number of lines in a function.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ require (
github.com/ldez/usetesting v0.4.3
github.com/leonklingele/grouper v1.1.2
github.com/macabu/inamedparam v0.2.0
github.com/manuelarte/funcorder v0.2.1
github.com/manuelarte/funcorder v0.3.0
github.com/maratori/testableexamples v1.0.0
github.com/maratori/testpackage v1.1.1
github.com/matoous/godox v1.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum

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

5 changes: 5 additions & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,11 @@
"description": "Checks if the exported methods of a structure are placed before the non-exported ones.",
"type": "boolean",
"default": true
},
"alphabetical": {
"description": "Checks if the constructors and/or structure methods are sorted alphabetically.",
"type": "boolean",
"default": false
}
}
},
Expand Down
1 change: 1 addition & 0 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ type ForbidigoPattern struct {
type FuncOrderSettings struct {
Constructor bool `mapstructure:"constructor,omitempty"`
StructMethod bool `mapstructure:"struct-method,omitempty"`
Alphabetical bool `mapstructure:"alphabetical,omitempty"`
}

type FunlenSettings struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/golinters/funcorder/funcorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func New(settings *config.FuncOrderSettings) *goanalysis.Linter {
cfg[a.Name] = map[string]any{
analyzer.ConstructorCheckName: settings.Constructor,
analyzer.StructMethodCheckName: settings.StructMethod,
analyzer.AlphabeticalCheckName: settings.Alphabetical,
}
}

Expand Down
Loading