mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
add check_script
This commit is contained in:
parent
61508c85d1
commit
f8c7c12f5b
15
check_script.sh
Executable file
15
check_script.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
check_directory() {
|
||||||
|
if ! head -n 20 $FILE | grep -q "Permission is hereby granted, free of charge, to any person obtaining a copy"
|
||||||
|
then
|
||||||
|
echo "$FILE does not contain a current copyright header"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
for FILE in $(find owncloudComLibrary/src -name "*.java" -o -name "*.kt")
|
||||||
|
do
|
||||||
|
check_directory
|
||||||
|
done
|
||||||
|
|
||||||
|
./gradlew ktlintFormat
|
Loading…
x
Reference in New Issue
Block a user