Skip to content

Load Package is not necessary for all linters #2914

@four-leaf-cl

Description

@four-leaf-cl

Your feature request related to a problem? Please describe.

Some linters (lll, misspell, goimports, gocyclo etc) don't require any package information. It seems golangci-lint always load packages irrespective of which set of linters are enabled. [Architecture]. It results performance degradation. Running these linters individually is taking 10X less time than running in the golangci-lint

Describe the solution you'd like.

Smartly determines if "load package" step is necessary or not.

Describe alternatives you've considered.

Cache seems no effect here. Running golangci-lint again takes same amount of high time in "load Package" step.

Additional context.

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions