Add Lint config #2
Annotations
10 errors and 3 warnings
lint:
sourcecode-parser/construct.go#L8
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
lint:
sourcecode-parser/construct.go#L216
unnamedResult: consider giving a name to these results (gocritic)
|
lint:
sourcecode-parser/construct.go#L239
paramTypeCombine: func(node *sitter.Node, sourceCode []byte, packageName string, className string) (string, string) could be replaced with func(node *sitter.Node, sourceCode []byte, packageName, className string) (string, string) (gocritic)
|
lint:
sourcecode-parser/construct.go#L253
SA4010: this result of append is never used, except maybe in other appends (staticcheck)
|
lint:
sourcecode-parser/construct.go#L329
exitAfterDefer: log.Fatal will exit, and `defer parser.Close()` will not run (gocritic)
|
lint:
sourcecode-parser/construct.go#L337
unnecessary conversion (unconvert)
|
lint:
sourcecode-parser/construct.go#L341
deferInLoop: Possible resource leak, 'defer' is called in the 'for' loop (gocritic)
|
lint:
sourcecode-parser/construct.go#L348
unnecessary conversion (unconvert)
|
lint:
sourcecode-parser/construct.go#L351
commentedOutCode: may want to remove commented-out code (gocritic)
|
lint:
sourcecode-parser/construct.go#L353
commentedOutCode: may want to remove commented-out code (gocritic)
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/code-pathfinder/code-pathfinder. Supported file pattern: go.sum
|
lint:
sourcecode-parser/construct.go#L208
unused-parameter: parameter 'node' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
sourcecode-parser/construct.go#L297
unused-parameter: parameter 'err' seems to be unused, consider removing or renaming it as _ (revive)
|