Skip to content

Relative Path Support for spotlessFiles #531

Closed

Description

@t-rad679

As discussed extensively from this comment in issue 529 onward, it would be nice to add some kind of support for specifying relative paths in spotlessFiles, which currently only works with absolute paths. The documentation should be very clear about how this will function in all cases, including what directory the path should be relative to.

After some discussion in the other ticket, I think it makes the most sense for the path to be relative to the root directory of the root project.

Activity

  1. nedtwigg commented on Feb 25, 2020

    @nedtwigg
    Member

    Whatever discussion or work happens in service of this ticket, please make sure that it is driven by a usecase that you have. E.g. you are connecting to a tool and it is difficult to generate the absolute paths which are currently neeeded. If you have a usecase, and can solve your problem without creating new problems for the people who are already using the -PspotlessFiles feature, then you can merge whatever.

  2. nedtwigg commented on May 6, 2020

    @nedtwigg
    Member

    With the work happening in #568, I'm more convinced than ever that relative path support is likely to cause problems. I think this issue is mostly driven by frustration with the surprising regex behavior, which is a separate problem.

  3. t-rad679 commented on May 11, 2020

    @t-rad679
    ContributorAuthor

    Ok, sounds good! Thanks, Ned!

  4. nedtwigg commented on Jun 5, 2020

    @nedtwigg
    Member

    FYI, -PspotlessFiles has been deprecated and will be removed. Migration path available here: #602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions