Skip to content
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

feat: make this plugin can run on non-maven project (wihtout pom.xml) #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qxo
Copy link

@qxo qxo commented May 10, 2020

make this plugin goals run on any project which has .editorconfig on project basedir

such as with -Deditorconfig.basedir

mvn org.ec4j.maven:editorconfig-maven-plugin:0.1.x:format -Deditorconfig.includes=**/*.xml -e -Deditorconfig.encoding=UTF-8 -Dproject.basedir=/any_dir_with_editorconfig

or

without editorconfig.basedir means on current dir

mvn org.ec4j.maven:editorconfig-maven-plugin:0.1.x:format -Deditorconfig.includes=**/*.xml -e -Deditorconfig.encoding=UTF-8

or

@qxo qxo force-pushed the supportNoPom branch 2 times, most recently from 77b1456 to d8ecbdb Compare May 11, 2020 00:52
Copy link
Collaborator

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea and implementation look good in themselves. Two details are missing from my point of view:

  1. Please change the commit message to what the PR is actually implementing and please use proper English spelling.

  2. Please add an integration test in EditorConfigMojosTest.

@qxo
Copy link
Author

qxo commented May 12, 2020

The idea and implementation look good in themselves. Two details are missing from my point of view:

  1. Please change the commit message to what the PR is actually implementing and please use proper English spelling.
  2. Please add an integration test in EditorConfigMojosTest.

Sorry for my poor english, I'll check if I have the time:)
Or you may modify the code:)

@ppalaga
Copy link
Collaborator

ppalaga commented May 12, 2020

The idea and implementation look good in themselves. Two details are missing from my point of view:

  1. Please change the commit message to what the PR is actually implementing and please use proper English spelling.
  2. Please add an integration test in EditorConfigMojosTest.

Sorry for my poor english, I'll check if I have the time:)

Sorry, please do not take me wrong. The main issue is that the commit message speaks of two alternatives out of which only one is implemented. I mean, -Deditorconfig.basedir=/some/dir would not work because the Mojo param is still readonly = true. So that part should be removed from the commit message so that it does not confuse future readers (unless you want to fix it and cover it by a test).

For spelling, using an in-browser spell checker would be enough to catch things like wihtout

@qxo qxo force-pushed the supportNoPom branch 3 times, most recently from b510c3d to c3662c9 Compare April 29, 2024 12:40
@qxo qxo changed the title feat: make this plugin may run on non-maven project (wihtout pom.xml) feat: make this plugin can run on non-maven project (wihtout pom.xml) Apr 29, 2024
make this plugin goals can run on any project which has .editorconfig on project basedir

such as with -Deditorconfig.basedir
```
mvn org.ec4j.maven:editorconfig-maven-plugin:0.1.x:format -Deditorconfig.includes=**/*.xml -e -Deditorconfig.encoding=UTF-8 -Dproject.basedir=/any_dir_with_editorconfig
```
or

without editorconfig.basedir means on current dir
```
mvn org.ec4j.maven:editorconfig-maven-plugin:0.1.x:format -Deditorconfig.includes=**/*.xml -e -Deditorconfig.encoding=UTF-8
```
or
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants