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

Replace editorconfig parser to ec4j. #561

Merged
merged 3 commits into from
Aug 26, 2019

Conversation

Tapchicoma
Copy link
Collaborator

@Tapchicoma Tapchicoma commented Aug 15, 2019

Replace custom editorconfig parser to https://github.com/ec4j/ec4j.

It is one of official java .editorconfig parsers: https://editorconfig.org/#create-a-plugin

Fixes #555

@Tapchicoma
Copy link
Collaborator Author

Tapchicoma commented Aug 15, 2019

Not sure if we still support maven builds. If yes, I will add ec4j dependency to maven as well.

Add dependency to maven config in 970860c

@Tapchicoma Tapchicoma force-pushed the fix-editorconfig-parsing branch 2 times, most recently from 79c207d to 970860c Compare August 17, 2019 10:33
Replaced custom parser, that is hard to maintain and not working well,
with https://github.com/ec4j/ec4j parser.

Signed-off-by: Yahor Berdnikau <[email protected]>
Signed-off-by: Yahor Berdnikau <[email protected]>
@shashachu
Copy link
Contributor

looks good. thanks for adding the extra tests as well.

@shashachu shashachu merged commit 887fbf9 into pinterest:master Aug 26, 2019
@Tapchicoma Tapchicoma deleted the fix-editorconfig-parsing branch August 27, 2019 18:40
sowmyav24 pushed a commit to sowmyav24/ktlint that referenced this pull request Aug 31, 2019
* Change editorconfig parser.

Replaced custom parser, that is hard to maintain and not working well,
with https://github.com/ec4j/ec4j parser.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Trim whitespaces in parsed disabled rules values.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Add ec4j dependency to maven.

Signed-off-by: Yahor Berdnikau <[email protected]>
sowmyav24 pushed a commit to sowmyav24/ktlint that referenced this pull request Aug 31, 2019
* Change editorconfig parser.

Replaced custom parser, that is hard to maintain and not working well,
with https://github.com/ec4j/ec4j parser.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Trim whitespaces in parsed disabled rules values.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Add ec4j dependency to maven.

Signed-off-by: Yahor Berdnikau <[email protected]>
sowmyav24 pushed a commit to sowmyav24/ktlint that referenced this pull request Sep 3, 2019
* Change editorconfig parser.

Replaced custom parser, that is hard to maintain and not working well,
with https://github.com/ec4j/ec4j parser.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Trim whitespaces in parsed disabled rules values.

Signed-off-by: Yahor Berdnikau <[email protected]>

* Add ec4j dependency to maven.

Signed-off-by: Yahor Berdnikau <[email protected]>
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.

Intellij formatting of .editorconfig file breaks it
2 participants