diff options
author | Yigit Boyar <yboyar@google.com> | 2021-03-13 16:39:45 -0800 |
---|---|---|
committer | laszio <ting-yuan@users.noreply.github.com> | 2021-03-15 01:07:06 -0700 |
commit | 51500a30e8c97faa19b85d20f37653741d7dc5be (patch) | |
tree | 2192d6ec9ed95d2056e6a3cdf1d877c54d99ebb9 /.editorconfig | |
parent | 964e6f87a55e8ac159dbc37b4a70fc07a0b02e34 (diff) | |
download | ksp-51500a30e8c97faa19b85d20f37653741d7dc5be.tar.gz |
This PR integrates ktlint with the project
It is a fork of what androidX does with minor modifications.
There are 3 new tasks:
rootProject:ktlintApplyToIdea -> Applied ktlint configuration to the
current .idea project folder
<subproject>:ktlint -> Runs ktlint checks
<subproject>:ktlintFormat -> Fixes formatting for the project. Note that
this may not be able to handle all violations.
I've not modified the CI files to run this since it fails right now. One
of the core maintaners should run the format tasks to come to a clean
slate then we can add it to CI. I've not added a baseline file since
they are very brittle.
Diffstat (limited to '.editorconfig')
-rw-r--r-- | .editorconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..09fdf0aa --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*.{kt,kts}] +indent_size=4 +insert_final_newline=true +max_line_length=120 +disabled_rules=no-wildcard-imports |