-
Notifications
You must be signed in to change notification settings - Fork 312
Encode contributing.md style guide to .editorconfig
#9515
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,54 @@ end_of_line=lf | |
insert_final_newline=true | ||
indent_style=space | ||
indent_size=2 | ||
|
||
[*.json] | ||
indent_style=space | ||
indent_size=2 | ||
ij_continuation_indent_size=4 | ||
|
||
[*.java] | ||
indent_style=space | ||
indent_size=2 | ||
continuation_indent_size=4 | ||
ij_java_class_count_to_use_import_on_demand = 99 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: Using |
||
ij_java_insert_inner_class_imports = false | ||
ij_java_imports_layout = |,$*,|,*,| | ||
ij_java_layout_on_demand_import_from_same_package_first = true | ||
ij_java_layout_static_imports_separately = true | ||
ij_java_names_count_to_use_import_on_demand = 99 | ||
ij_java_packages_to_use_import_on_demand = java.awt.*,javax.swing.* | ||
|
||
|
||
ij_java_block_comment_add_space = false | ||
ij_java_block_comment_at_first_column = false | ||
ij_java_line_comment_add_space = true | ||
ij_java_line_comment_add_space_on_reformat = false | ||
ij_java_line_comment_at_first_column = false | ||
Comment on lines
+22
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note: Personal take on this, I think comments should be indented by default to the correct context, instead of being at the beginning of the line. E.g. this @TaskAction
instrument() {
workQueue().submit(InstrumentAction.class, parameters -> {
-// parameters.buildStartedTime.set(this.invocationDetails.buildStartedTime)
-// parameters.pluginClassPath.from(this.pluginClassPath)
-// parameters.plugins.set(this.plugins)
+ // parameters.buildStartedTime.set(this.invocationDetails.buildStartedTime)
+ // parameters.pluginClassPath.from(this.pluginClassPath)
+ // parameters.plugins.set(this.plugins)
parameters.instrumentingClassPath.setFrom(this.instrumentingClassPath)
parameters.sourceDirectory.set(this.sourceDirectory.asFile)
parameters.targetDirectory.set(this.targetDirectory.asFile)
})
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❔ question: spotless enforces us to move the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 notes: My preference is having the comment at the start of the line so it really stands out and I find it easier to read during code review... But that's not the project spotless configuration 😢 |
||
|
||
|
||
[*.groovy] | ||
ij_groovy_class_count_to_use_import_on_demand = 99 | ||
ij_groovy_imports_layout = $*,|,*,| | ||
ij_groovy_names_count_to_use_import_on_demand = 99 | ||
ij_groovy_packages_to_use_import_on_demand = java.awt.*,javax.swing.* | ||
|
||
ij_groovy_block_comment_add_space = false | ||
ij_groovy_block_comment_at_first_column = false | ||
ij_groovy_line_comment_add_space = true | ||
ij_groovy_line_comment_add_space_on_reformat = false | ||
ij_groovy_line_comment_at_first_column = false | ||
|
||
[{*.kt,*.kts}] | ||
ij_kotlin_import_nested_classes = false | ||
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^ | ||
|
||
ij_kotlin_name_count_to_use_star_import = 99 | ||
ij_kotlin_name_count_to_use_star_import_for_members = 99 | ||
ij_kotlin_packages_to_use_import_on_demand = kotlinx.android.synthetic.**,io.ktor.** | ||
|
||
ij_kotlin_block_comment_add_space = false | ||
ij_kotlin_block_comment_at_first_column = false | ||
ij_kotlin_line_comment_add_space = true | ||
ij_kotlin_line_comment_add_space_on_reformat = false | ||
ij_kotlin_line_comment_at_first_column = false | ||
|
||
|
||
[{*.yml,*.yaml}] | ||
indent_style=space | ||
indent_size=2 | ||
ij_yaml_line_comment_add_space = true | ||
ij_yaml_line_comment_add_space_on_reformat = false | ||
ij_yaml_line_comment_at_first_column = false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: Those directives are removed because they duplicate the one in
[*]
. Empty sections are removed as well.