From c14b226c92bef5ff233457c2e261ca61edce93af Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 30 Jun 2020 00:50:17 +0200 Subject: [PATCH] Search only Kotlin long files --- tools/check/check_code_quality.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tools/check/check_code_quality.sh b/tools/check/check_code_quality.sh index 72c531bf39..8f850734fc 100755 --- a/tools/check/check_code_quality.sh +++ b/tools/check/check_code_quality.sh @@ -108,14 +108,22 @@ else chmod u+x ${checkLongFilesScript} fi -echo -echo "Search for long files..." +maxLines=2500 -${checkLongFilesScript} 2500 \ +echo +echo "Search for kotlin files with more than ${maxLines} lines..." + +${checkLongFilesScript} ${maxLines} \ + ./matrix-sdk-android/src/main/java \ + ./matrix-sdk-android-rx/src/main/java \ + ./vector/src/androidTest/java \ + ./vector/src/debug/java \ + ./vector/src/fdroid/java \ + ./vector/src/gplay/java \ ./vector/src/main/java \ - ./vector/src/main/res/layout \ - ./vector/src/main/res/values \ - ./vector/src/main/res/values-v21 \ + ./vector/src/release/java \ + ./vector/src/sharedTest/java \ + ./vector/src/test/java resultLongFiles=$?