diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-05-10 19:21:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 19:21:39 +0530 |
commit | 041cf00510a75042223d1857660fc7f1dff958ef (patch) | |
tree | 1b56e67e2b71afe23ac51b680b62ad778272f162 /spotless.gradle | |
parent | 94dc92f8d70870b57a7f8c4fe8adef152c1211ce (diff) |
Treewide codestyle cleanup (#765)
- Updated gitignore and checked in the IDE's codestyle config
- Removed spotless as the underlying ktlint backend has failed to resolve the super frustrating import order bug[1] in nearly a year
- Reformat the entire codebase based on the previously committed code style configuration.
1: https://github.com/pinterest/ktlint/issues/527
Diffstat (limited to 'spotless.gradle')
-rw-r--r-- | spotless.gradle | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/spotless.gradle b/spotless.gradle deleted file mode 100644 index 10d5e620..00000000 --- a/spotless.gradle +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2014-2020 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ -apply plugin: 'com.diffplug.gradle.spotless' - -spotless { - format 'xml', { - target '**/src/**/*.xml' - indentWithSpaces(4) - trimTrailingWhitespace() - endWithNewline() - } - - java { - target '**/src/**/com/zeapo/pwdstore/*.java' - trimTrailingWhitespace() - licenseHeaderFile rootProject.file('spotless.license') - removeUnusedImports() - googleJavaFormat().aosp() - endWithNewline() - } - - kotlin { - target '**/src/**/*.kt' - ktlint('0.35.0').userData(['indent_size': '4', 'continuation_indent_size': '8']) - licenseHeaderFile rootProject.file('spotless.license') - trimTrailingWhitespace() - indentWithSpaces() - endWithNewline() - } -} |