Skip to content

Errors with example config when editing non-go files in directories without go files #3

Open
@vitaminmoo

Description

@vitaminmoo

With the example config, every non-go file in a dir without go files gets an error on character 1:

ERRO Running error: context loading failed: no go files to analyze: running `go mod tidy` may solve the problem

This is the same error as running golangci-lint run --out-format json --issues-exit-code=1 in a dir with no go files. I don't see any CLI flags on golangci-lint to make it not print this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions