File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 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]"
55warn "Big PR" if git . lines_of_code > 500
66# Check added files - for performance reasons bundle all added file checks in this loop!
77git . 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
128 # Check whether Java files are in the java source directory
139 if file =~ /\. (java)$/
1410 warn "#{ file } : New Java class isn't in java source directory!" unless file =~ /\/ (java)\/ /
@@ -44,7 +40,6 @@ modifiedWithoutDeleted.each do |file|
4440 warn "#{ file } :#{ linenumber } : Could it be that formatted='false' is missing." if li [ /^(?:(?!formatted="false").)+(%\w *%)+/ ]
4541 warn "#{ file } :#{ linenumber } : Could it be that formatted='false' is not needed." if li [ /(formatted="false")+(?:(?!(%.*%)).)+$/ ]
4642 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 *$)).*/ ]
4843 end
4944 end
5045end
You can’t perform that action at this time.
0 commit comments