File tree 1 file changed +0
-5
lines changed
1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
5
5
warn "Big PR" if git . lines_of_code > 500
6
6
# Check added files - for performance reasons bundle all added file checks in this loop!
7
7
git . added_files . each do |file |
8
- # Check whether Kotlin files are in the kotlin source directory
9
- if file =~ /\. (kt)$/
10
- warn "#{ file } : New Kotlin class isn't in kotlin source directory!" unless file =~ /\/ (kotlin)\/ /
11
- end
12
8
# Check whether Java files are in the java source directory
13
9
if file =~ /\. (java)$/
14
10
warn "#{ file } : New Java class isn't in java source directory!" unless file =~ /\/ (java)\/ /
@@ -44,7 +40,6 @@ modifiedWithoutDeleted.each do |file|
44
40
warn "#{ file } :#{ linenumber } : Could it be that formatted='false' is missing." if li [ /^(?:(?!formatted="false").)+(%\w *%)+/ ]
45
41
warn "#{ file } :#{ linenumber } : Could it be that formatted='false' is not needed." if li [ /(formatted="false")+(?:(?!(%.*%)).)+$/ ]
46
42
warn "#{ file } :#{ linenumber } : Multiple spaces." if li [ /<string.* {2,}.*string>/ ]
47
- warn "#{ file } :#{ linenumber } : Translation contains linebreak" if li [ /^(?!(\s *((<string)|(<item)|(<(\/ ?)plurals)|(<(\/ ?)resources)|(<\? xml)|(<!--)))+|(^\s *$)).*/ ]
48
43
end
49
44
end
50
45
end
You can’t perform that action at this time.
0 commit comments