Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit f8c7c12

Browse files
theScrabiabelgardep
authored andcommitted
add check_script
1 parent 61508c8 commit f8c7c12

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

check_script.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
check_directory() {
4+
if ! head -n 20 $FILE | grep -q "Permission is hereby granted, free of charge, to any person obtaining a copy"
5+
then
6+
echo "$FILE does not contain a current copyright header"
7+
fi
8+
}
9+
10+
for FILE in $(find owncloudComLibrary/src -name "*.java" -o -name "*.kt")
11+
do
12+
check_directory
13+
done
14+
15+
./gradlew ktlintFormat

0 commit comments

Comments
 (0)