Skip to content

Add .editorconfig #405

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

Merged
merged 3 commits into from
Jun 4, 2023
Merged

Add .editorconfig #405

merged 3 commits into from
Jun 4, 2023

Conversation

oscarnylander
Copy link
Contributor

ktlint follows the rules in this file.

For the sake of simplicity, the rules in the file are aligned with what's in place in the project already. No additional formatting is necessary after this PR is merged.

@oscarnylander oscarnylander requested a review from dessalines as a code owner June 4, 2023 16:02
@oscarnylander oscarnylander mentioned this pull request Jun 4, 2023
@@ -16,9 +16,6 @@ plugins {

subprojects {
apply plugin: "org.jmailen.kotlinter" // Version should be inherited from parent
kotlinter {
Copy link
Member

Choose a reason for hiding this comment

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

Upgrade kotlinter in L13 to 3.14.0, and this should pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird that this worked for me locally. Perhaps I didn't run ./gradlew lintKotlin after removing the kotlinter-config.

Anyway, if I upgrade to either 3.14.0 or 3.15.0 we get other rule violations, as those versions enforce additional rules. All of those rules are automatically formattable, but as per the last PR, I'll leave that formatting commit to you.

You can create it by calling ./gradlew formatKotlin - it mostly adds trailing commas to basically everything.

Copy link
Member

Choose a reason for hiding this comment

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

K thx, I'll do that shortly.

`ktlint` follows the rules in this file.
`kotlinter` already follows `.editorconfig`, making this redundant.
@dessalines dessalines merged commit f340413 into LemmyNet:main Jun 4, 2023
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.

2 participants