Git Product home page Git Product logo

spotless-applier's People

Contributors

actions-user avatar ertugrulsener avatar gls-luis-alves avatar lipiridi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spotless-applier's Issues

Doesn't work in complex workspace

When trying to use the plugin from a complex workspace with multiple projects I get an error:

/home/user/.sdkman/candidates/java/17.0.4.1-tem/bin/java
-Dmaven.multiModuleProjectDirectory=/home/user/x
-Djansi.passthrough=true
-DspotlessFiles=.home.user.x.src.common.src.main.java.x.common.TableName\.java
-Dmaven.home=/home/user/.sdkman/candidates/maven/3.9.4
-Dclassworlds.conf=/home/user/.sdkman/candidates/maven/3.9.4/bin/m2.conf
-Dmaven.ext.class.path=/snap/intellij-idea-community/454/plugins/maven/lib/maven-event-listener.jar
-javaagent:/snap/intellij-idea-community/454/lib/idea_rt.jar=40583:/snap/intellij-idea-community/454/bin
-Dfile.encoding=UTF-8
-classpath /home/user/.sdkman/candidates/maven/3.9.4/boot/plexus-classworlds-2.7.0.jar:
/home/user/.sdkman/candidates/maven/3.9.4/boot/plexus-classworlds.license org.codehaus.classworlds.Launcher
-Didea.version=2023.2.1
spotless:apply
[ERROR] No plugin found for prefix 'spotless' in the current project and in the plugin groups
[org.apache.maven.plugins, org.codehaus.mojo] available from the repositories
[local (/home/user/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

Trying the command used by the plugin in a terminal, but adding -pl :x to the command line (x is the project name) is enough to make it work.

Format files on save (OnSaveAction Handler)

Could you add an option to format the current opened file on save with spotless?
There should be a way to add the option to the official "Save Actions" window in IntelliJ, but I would also be fine with a button on the plugin settings.

There is no other plugin doing that atm, but it's the no. 1 feature that a formatter (integration) needs.

Format all files before commit

I usually use my personal custom formatting while coding or fixing issues, but before commit I need to execute spotlessApply before committing as the remote build process will check the formatting. Would be nice that the formatting is applied before commit.

Example:
316267492-2e5845e2-7c55-4dc4-8bcb-d291111506e2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.