We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa67b8 commit 5de57d5Copy full SHA for 5de57d5
2 files changed
.github/workflows/code-analysis.yml
@@ -128,3 +128,9 @@ jobs:
128
129
# Statically analyze the Dart code for any errors.
130
- run: flutter analyze .
131
+
132
+ # Statically analyze Kotlin code (e.g. google_mlkit_commons Android) with ktlint.
133
+ - name: Install ktlint
134
+ run: brew install ktlint
135
+ - name: Run ktlint on Kotlin code
136
+ run: ktlint --format
scripts/analyze.sh
@@ -1,6 +1,16 @@
1
#!/bin/bash
2
+set -e
3
4
cd "$(dirname "$0")/.."
5
6
dart format --set-exit-if-changed .
7
flutter analyze .
8
9
+# Lint Kotlin code with ktlint (https://github.com/pinterest/ktlint)
10
+if ! command -v ktlint &>/dev/null; then
11
+ echo "ktlint is not installed. Install it with:"
12
+ echo " brew install ktlint"
13
+ exit 1
14
+else
15
+ ktlint --format
16
+fi
0 commit comments