Skip to content

fix LineLength #479

@sdarwin

Description

@sdarwin

Hi,
I am linting a Jenkins Pipeline which uses Groovy. There are multiple LineLength warnings such as:

333   warning  The line exceeds 120 characters. The line is 341 characters.  LineLength

--fix doesn't adjust the line?

Meanwhile, I am not particularly knowledgeable in Groovy, and wonder what the proper fix is for each situation. Can I hit "Enter" and add newlines indiscriminately - probably not.

Having npm-groovy-lint be able to --fix this would be great! Meanwhile, is there a maybe a document that discusses solving LineLength? Not only for a "string", but also commands / functions. Searching the docs there are 0 results: "LineLength". Even if it's easy, include a paragraph, a sentence, describing the solutions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions