Skip to content

Running golines -w * errors when it encounters go.mod #150

@echarrod

Description

@echarrod

I am running:

golines -w --max-len=120 * 

But get an error when this encounteres my go.mod file:
FATAL Error formatting source: exit status 2

I confirmed this by doing:

 golines -w --debug go.mod
[2024-09-30 14:59:11] DEBUG Processing file go.mod
[2024-09-30 14:59:11] FATAL Error formatting source: exit status 2

If I want to run on all go files in my repo, should I be calling the command differently?
Or alternatively, can we restrict golines to only run against *.go files?

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