mirror of
https://github.com/mgechev/revive.git
synced 2025-07-05 00:28:53 +02:00
Fix/677 (#678)
This commit is contained in:
@ -10,13 +10,9 @@ import (
|
||||
type NestedStructs struct{}
|
||||
|
||||
// Apply applies the rule to given file.
|
||||
func (r *NestedStructs) Apply(file *lint.File, arguments lint.Arguments) []lint.Failure {
|
||||
func (r *NestedStructs) Apply(file *lint.File, _ lint.Arguments) []lint.Failure {
|
||||
var failures []lint.Failure
|
||||
|
||||
if len(arguments) > 0 {
|
||||
panic(r.Name() + " doesn't take any arguments")
|
||||
}
|
||||
|
||||
walker := &lintNestedStructs{
|
||||
fileAST: file.AST,
|
||||
onFailure: func(failure lint.Failure) {
|
||||
|
Reference in New Issue
Block a user