Merge branch 'main' into revamp-issues-list

This commit is contained in:
M M Arif
2022-08-20 10:31:14 +02:00
2 changed files with 11 additions and 0 deletions

View File

@@ -13,3 +13,8 @@ pipeline:
settings:
file_pattern: "*.java"
path: "app/"
test:
image: alvrme/alpine-android:android-31-jdk11
commands:
- ./gradlew test

View File

@@ -43,6 +43,12 @@ public class ParseDiff {
Matcher rmMatcher = rmPattern.matcher(raw);
Matcher addMatcher = addPattern.matcher(raw);
if(raw.startsWith("+")) {
add++;
}
else if(raw.startsWith("-")) {
rm++;
}
while(rmMatcher.find())
rm++;
while(addMatcher.find())