Skip to content

golangci-lint should ignore node_modules #18803

Closed
@silverwind

Description

@silverwind

CI failure seen on https://drone.gitea.io/go-gitea/gitea/51286/1/6

It seems golangi-lint tries to access files in node_modules which is completely unnecessary and likely a reason for its long runtime. It might be possible to pass a list of files to it via golangci/golangci-lint#301 (comment), thought I'm not sure whether that usage actually works (golangci/golangci-lint#2568).

I recently added the skip-dirs option at

gitea/.golangci.yml

Lines 27 to 30 in 1ab88da

skip-dirs:
- node_modules
- public
- web_src
but it does not seem to help because not all of their "linters" seem to honour the option (golangci/golangci-lint#913).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions