Skip to content

Allow shortening output in Terminal #4660

Closed
@danispringer

Description

Running swiftlint --progress in my repos folder, outputs various warnings for each folder.
However, many of the outputted lines wrap to the next line, because the full absolute path is printed (and that is too long for a single line).
It would be nice if we can have swiftlint only print the relative path (pwd + /warning_folder), so as to stay on a single line more often.

So instead of printing this:

/Users/dani/Documents/repos/mathee/AppDelegate.swift:16:8: warning: Todo Violation: TODOs should be resolved (Shabbos). (todo)

To print this:

/mathee/AppDelegate.swift:16:8: warning: Todo Violation: TODOs should be resolved (Shabbos). (todo)

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.good first issueIssue to be taken up by new contributors yet unfamiliar with the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions