aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-01-11 22:47:00 -0800
committerXin Li <delphij@google.com>2023-01-11 22:47:00 -0800
commit1f0381665f710b20da99052aa12b3bc3b354eefd (patch)
treea4e84436d2b6a72b6867191e7b90bc18e5cb05c5
parent92603bb80098d519f3cb03543ba53219aca8739e (diff)
parentb51cf4d044c595fb1644ca93108cf6591b8c5370 (diff)
downloadktfmt-1f0381665f710b20da99052aa12b3bc3b354eefd.tar.gz
Merge tm-qpr-dev-plus-aosp-without-vendor@9467136
Bug: 264720040 Merged-In: Ibc337e4459d8db789f0b2102b71a8b2e1ed2589f Change-Id: Icd4f310d122670281b95d62ba57a9f93bc05a5c4
-rwxr-xr-xktfmt.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/ktfmt.py b/ktfmt.py
index 6f115f7..3d337bb 100755
--- a/ktfmt.py
+++ b/ktfmt.py
@@ -108,10 +108,13 @@ def main():
'**********************************************************************'
)
print(
- 'Some Kotlin files are not properly formatted. Run the following command to format them:\n\n'
- )
+ 'Some Kotlin files are not properly formatted. Run the command below to format them.\n'
+ 'Note: If you are using the Android Studio ktfmt plugin, make sure to select the '
+ 'Kotlinlang style in \'Editor > ktfmt Settings\'.\n')
script_path = os.path.normpath(__file__)
- incorrect_files = stdout.decode('utf-8').splitlines()
+ incorrect_files = [
+ os.path.abspath(file) for file in stdout.decode('utf-8').splitlines()
+ ]
print('$ ' + script_path + ' ' + ' '.join(incorrect_files) + '\n')
print(
'**********************************************************************'