aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-03-13 23:10:55 -0700
committerXin Li <delphij@google.com>2023-03-13 23:10:55 -0700
commit2d6ada7f40408f9980ed65a62087d5a903d2f4ba (patch)
tree9e617a7516435622ea67a4839fade272c6c6592c
parent732c9702b21ec9c00390a07eceac618206965b35 (diff)
parentc431a78e6c3dff3faea337fb2fa03900cdf148c2 (diff)
downloadktfmt-2d6ada7f40408f9980ed65a62087d5a903d2f4ba.tar.gz
Merge Android 13 QPR2android-u-beta-1-gpl
Bug: 273316506 Merged-In: Ibc337e4459d8db789f0b2102b71a8b2e1ed2589f Change-Id: I1194cf6d5efb45e7c6aa69aa1234ebc599be32c6
-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(
'**********************************************************************'