Skip to content

Disable import change to star/wildcard #2245

Closed

Description

@poliveira-fuze

I've made the changes manually, but the spotless keep changing back to the start/wildcard.

Is possible to turn off?

Activity

  1. nedtwigg commented on Aug 30, 2024

    @nedtwigg
    Member

    Definitely! But it depends on what formatter you're using. If you're using eclipse then you'll need to look at the eclipse docs if you're using googleJavaFormat then you'll need to look at their docs, etc. Spotless is just a switchboard to those.

  2. poliveira-fuze commented on Aug 30, 2024

    @poliveira-fuze
    Author

    Definitely! But it depends on what formatter you're using. If you're using eclipse then you'll need to look at the eclipse docs if you're using googleJavaFormat then you'll need to look at their docs, etc. Spotless is just a switchboard to those.

    In my case is <gooleJavaFormat> but I'm struggling to find a way to "implement" AvoidStartImport or even disable any import related change.

  3. nedtwigg commented on Aug 30, 2024

    @nedtwigg
    Member

    Ah, we might not expose that property in our DSL. Happy to take a PR to expose it.

  4. jbduncan commented on Aug 30, 2024

    @jbduncan
    Member

    Sadly I don't think it's possible due to google/google-java-format#1154 (comment). :(

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions