Skip to content

Commit 7eb38e4

Browse files
BIT-59 Update danger file
1 parent 46d6d6f commit 7eb38e4

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Dangerfile

-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
55
warn "Big PR" if git.lines_of_code > 500
66
# Check added files - for performance reasons bundle all added file checks in this loop!
77
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
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
5045
end

0 commit comments

Comments
 (0)