-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove support to generate IntelliJ IDEA configuration files. Rename …
…`.editorconfig` property `disabled_rules` to `ktlint_disabled_rules`. (#1570) Closes #701 Closes #734
- Loading branch information
1 parent
6ed2589
commit 6fdb80e
Showing
15 changed files
with
236 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
!!! Warning | ||
`ktlint` strives to prevent code formatting conflicts with IntelliJ IDEA / Android Studio. We recommend using either IDE formatting or `ktlint` formatting. However, if you persist on using both, then please ensure that the formatting settings are aligned as described below. This reduces the chance that code which is formatted by ktlint conflicts with formatting by the IntelliJ IDEA built-in formatter. | ||
|
||
!!! Note | ||
IntelliJ IDEA supports the [kotlin coding conventions](https://kotlinlang.org/docs/coding-conventions.html). As of version 0.47.x of ktlint, the support to overwrite some configuration files of IntelliJ IDEA has been dropped as it no longer fits the scope of the project. | ||
|
||
|
||
Steps: | ||
|
||
1. Go to your project directory | ||
2. Create or replace file `.idea/codeStyles/codeStyleConfig.xml` with content below: | ||
```xml | ||
<component name="ProjectCodeStyleConfiguration"> | ||
<state> | ||
<option name="USE_PER_PROJECT_SETTINGS" value="true" /> | ||
</state> | ||
</component> | ||
``` | ||
3. Create or replace file `.idea/codeStyles/Project.xml` with content below: | ||
```xml | ||
<component name="ProjectCodeStyleConfiguration"> | ||
<code_scheme name="Project" version="173"> | ||
<JetCodeStyleSettings> | ||
<option name="PACKAGES_TO_USE_STAR_IMPORTS"> | ||
<value /> | ||
</option> | ||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT" value="2147483647" /> | ||
<option name="NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS" value="2147483647" /> | ||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> | ||
</JetCodeStyleSettings> | ||
<codeStyleSettings language="kotlin"> | ||
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> | ||
</codeStyleSettings> | ||
</code_scheme> | ||
</component> | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.