-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore files in .gitignore #49
Comments
I've submitted #53 which allows a single file to be used for exclude patterns. There are many ignore-type files (not just Still, this is hopefully enough for you as you can set |
+1 for adding an option to exclude files ignored by git. I'd prefer an implementation based on a proper .gitignore parser and proper evaluation of the patterns as documented in https://git-scm.com/docs/gitignore . JGit might contain all we need and I would not mind having a non-optional JGit dependency because of this. The proposal in #53 does not meet the above requirement. |
@ppalaga I recently noticed that, in a multi-module project, the |
Yeah, please open a new ticket. A fix is welcome! |
Another idea would be to only format scm tracked files. That I think would be easier to implement because then you can just rely on the maven-scm-plugin to get the list of files tracked by the scm. The other advantage of that would be that its not only git specific. (While git is probably the most used scm nowadays I'd say there are still a fair amount of non-git tracked projects out there) |
@StefanD986 There is a problem when relying on tracked files only, because I would need to add these files before running this plugin. In my workflow I tend to So I would advocate to have |
It would be nice if the plugin ignored files that match patterns in .gitignore by default. I currently have to add new directories (e.g. node_modules) to both .gitignore and to the plugin's in my pom.xml.
The text was updated successfully, but these errors were encountered: