Skip to content

[Question] What is the reason to drop support for absolute paths in file patterns? #1131

@petertrr

Description

@petertrr

I'm seeing the new exception at

"KtLint does not support absolute path in globs:\n${joinToString(separator = "\n")}"
, as well as a note in release notes that ktlint dropped support for absolute paths in patterns starting from 0.41.0. I understand that this is because of migration to PathMatcher, but I don't quite understand the reason for this particular restriction.
Is it a permanent decision or can this behavior be altered in future releases? Or does it break something in expected workflow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions