#5651 [core] add IDE agnostic configuration with editorconfig.org - editorconfig-maven-plugin#5635
#5651 [core] add IDE agnostic configuration with editorconfig.org - editorconfig-maven-plugin#5635Pankraz76 wants to merge 1 commit into
editorconfig.org - editorconfig-maven-plugin#5635Conversation
|
This is just to reconsider this generic config. |
editorconfig.org
|
No regression tested rules have been changed. |
|
POC: #5636 |
editorconfig.org
Can you elaborate on what is not working? Do we need to update the documentation https://docs.pmd-code.org/latest/pmd_devdocs_building_intellij.html ? |
|
ATM its The setting-up-checkstyle file is needed, as it will evolve into the new |
|
|
||
| [*] | ||
| charset = utf-8 | ||
| # end_of_line = lf |
There was a problem hiding this comment.
Should be revised later or before merge, if possible.
[ERROR] docs/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff2@567,93: Replace 'cr' with 'lf' - violates end_of_line = lf, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff2@568,111: Replace 'cr' with 'lf' - violates end_of_line = lf, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff2@575,24: Delete 1 character - violates end_of_line = lf, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/fontawesome-free-5.15.4-web/webfonts/fa-brands-400.woff2@576,349: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/anchorjs-4.2.2/anchor.min.js@9,16: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/navgoco-0.2.1/src/jquery.navgoco.min.js@8,3373: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
[ERROR] docs/assets/navgoco-0.2.1/src/jquery.navgoco.css@69,2: Insert lf - violates insert_final_newline = true, reported by org.ec4j.linters.TextLinter
Some of our files need to be raw and violating; therefore excluded:
<exclude>src/test/resources/com/puppycrawl/tools/checkstyle/grammar/InputAstRegressionNewlineCrAtEndOfFile.java</exclude><exclude>src/test/resources/com/puppycrawl/tools/checkstyle/checks/newlineatendoffile/**/*</exclude>
Pankraz76
left a comment
There was a problem hiding this comment.
kindly request some feedback.
| ij_java_doc_preserve_line_breaks = true | ||
| ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, * | ||
| ij_java_line_comment_add_space = true | ||
| ij_java_line_comment_at_first_column = false |
There was a problem hiding this comment.
<option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" />
| ij_java_doc_do_not_wrap_if_one_line = true | ||
| ij_java_doc_preserve_line_breaks = true | ||
| ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, * | ||
| ij_java_line_comment_add_space = true |
There was a problem hiding this comment.
<option name="LINE_COMMENT_ADD_SPACE" value="true" />
| ij_java_line_comment_at_first_column = false | ||
| ij_java_names_count_to_use_import_on_demand = 999 | ||
| ij_java_packages_to_use_import_on_demand = unset | ||
| ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL |
There was a problem hiding this comment.
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
| ij_java_class_count_to_use_import_on_demand = 999 | ||
| ij_java_doc_do_not_wrap_if_one_line = true | ||
| ij_java_doc_preserve_line_breaks = true | ||
| ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, * |
There was a problem hiding this comment.
<option name="IMPORT_LAYOUT_TABLE">
| ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, * | ||
| ij_java_line_comment_add_space = true | ||
| ij_java_line_comment_at_first_column = false | ||
| ij_java_names_count_to_use_import_on_demand = 999 |
There was a problem hiding this comment.
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="500" />
| ij_java_line_comment_add_space = true | ||
| ij_java_line_comment_at_first_column = false | ||
| ij_java_names_count_to_use_import_on_demand = 999 | ||
| ij_java_packages_to_use_import_on_demand = unset |
There was a problem hiding this comment.
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>its the same keys, @Anmol202005, if not to much special stuff done here, its a easy job to adapt:

editorconfig
editorconfigeditorconfig.org - editorconfig-maven-plugin
…- editorconfig-maven-plugin
|
its nice to have things work out of the box, so this is still a benefit but double trouble to keep config in sync. Rewrite has ability to dominate this so lets.
might reopen. |


#5651 [core] add IDE agnostic configuration with
editorconfig.org-editorconfig-maven-pluginimplement IDE agnostic configuration with
editorconfig.orgReady?
./mvnw clean verifypasses (checked automatically by github actions)[INFO] --- editorconfig:0.1.3:check (editorconfig-check) @ pmd-dist ---happy test:

negative test:

indent_style = tab