Files
QSfera/Android/check_code_script.sh
T
Курнат Андрей 2315f25754 Initial QSfera import
2026-06-07 10:20:04 +03:00

23 lines
564 B
Bash

#!/bin/bash
check_license_in_file() {
if ! head -n 20 $FILE | grep -q "This program is free software: you can redistribute it and/or modify"
then
if ! head -n 20 $FILE | grep -q "Licensed under the Apache License, Version 2.0"
then
echo "$FILE does not contain a current copyright header"
fi
fi
}
for DIRS in qsferaApp/src qsferaData/src qsferaDomain/src qsferaTestUtil/src
do
for FILE in $(find $DIRS -name "*.java" -o -name "*.kt")
do
check_license_in_file
done
done
./gradlew ktlintFormat