summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2018-05-30 13:55:44 -0700
committerAurimas Liutikas <aurimas@google.com>2018-05-30 13:55:44 -0700
commit91d5c551e6581968ef1f93d5e39d698353414f66 (patch)
treeefb9af140a8cb698a460df7b09c73eb5454f97d7
parent48616490a4e7ea908a2ba92734eb421af769dd38 (diff)
downloadplatform_prebuilts_ktlint-91d5c551e6581968ef1f93d5e39d698353414f66.tar.gz
platform_prebuilts_ktlint-91d5c551e6581968ef1f93d5e39d698353414f66.tar.bz2
platform_prebuilts_ktlint-91d5c551e6581968ef1f93d5e39d698353414f66.zip
Pass in --android to ktlint
This makes sure that linelenght is enforced properly. Test: None Change-Id: I6e71fabf7d405cba33bc9d4769326531c20e1d66
-rwxr-xr-xktlint.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ktlint.py b/ktlint.py
index d0c9faa..de256cd 100755
--- a/ktlint.py
+++ b/ktlint.py
@@ -48,6 +48,8 @@ def main(args=None):
if not ktlint_args:
sys.exit(0)
+ ktlint_args += ['--android']
+
ktlint_env = os.environ.copy()
ktlint_env['JAVA_CMD'] = 'java'
try: