mirror of
https://github.com/Crocmagnon/fatcontext.git
synced 2024-11-24 17:08:07 +01:00
doc: update linter description
Some checks are pending
Go / build (1.22, macos-latest) (push) Waiting to run
Go / build (1.22, ubuntu-latest) (push) Waiting to run
Go / build (1.22, windows-latest) (push) Waiting to run
Go / build (1.23, macos-latest) (push) Waiting to run
Go / build (1.23, ubuntu-latest) (push) Waiting to run
Go / build (1.23, windows-latest) (push) Waiting to run
golangci-lint / lint (1.22) (push) Waiting to run
golangci-lint / lint (1.23) (push) Waiting to run
Some checks are pending
Go / build (1.22, macos-latest) (push) Waiting to run
Go / build (1.22, ubuntu-latest) (push) Waiting to run
Go / build (1.22, windows-latest) (push) Waiting to run
Go / build (1.23, macos-latest) (push) Waiting to run
Go / build (1.23, ubuntu-latest) (push) Waiting to run
Go / build (1.23, windows-latest) (push) Waiting to run
golangci-lint / lint (1.22) (push) Waiting to run
golangci-lint / lint (1.23) (push) Waiting to run
This commit is contained in:
parent
90afb8d3fa
commit
4410b65005
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,7 @@ import (
|
||||||
|
|
||||||
var Analyzer = &analysis.Analyzer{
|
var Analyzer = &analysis.Analyzer{
|
||||||
Name: "fatcontext",
|
Name: "fatcontext",
|
||||||
Doc: "detects nested contexts in loops",
|
Doc: "detects nested contexts in loops and function literals",
|
||||||
Run: run,
|
Run: run,
|
||||||
Requires: []*analysis.Analyzer{inspect.Analyzer},
|
Requires: []*analysis.Analyzer{inspect.Analyzer},
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,6 @@ func run(pass *analysis.Pass) (interface{}, error) {
|
||||||
Message: getReportMessage(node),
|
Message: getReportMessage(node),
|
||||||
SuggestedFixes: fixes,
|
SuggestedFixes: fixes,
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
Loading…
Reference in a new issue