Skip to content

Commit

Permalink
Merge branch '1980-standardise-arrays' of https://github.com/sopa301/…
Browse files Browse the repository at this point in the history
…RepoSense into 1980-standardise-arrays
  • Loading branch information
sopa301 committed Jan 20, 2024
2 parents 26fa03f + 3a1d388 commit 1fc42aa
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/main/java/reposense/parser/RepoConfigCsvParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,19 @@ protected void processLine(List<RepoConfiguration> results, CSVRecord record) th

// If file diff limit is specified
if (fileSizeLimitStringList.size() > 0) {
String fileSizeLimitString = fileSizeLimitStringList.get(0).trim();
int parseValue;

if (isFileSizeLimitIgnored) {
logger.warning("Ignoring file size limit column since file size limit is ignored");
isFileSizeLimitOverriding = false;
} else if (!StringsUtil.isNumeric(fileSizeLimitString)
|| (parseValue = Integer.parseInt(fileSizeLimitString)) <= 0) {
logger.warning(String.format("Values in \"%s\" column should be positive integers.",
FILESIZE_LIMIT_HEADER[0]));
isFileSizeLimitOverriding = false;
} else {
String fileSizeLimitString = fileSizeLimitStringList.get(0).trim();
int parseValue;
if (!StringsUtil.isNumeric(fileSizeLimitString)
|| (parseValue = Integer.parseInt(fileSizeLimitString)) <= 0) {
logger.warning(String.format("Values in \"%s\" column should be positive integers.",
FILESIZE_LIMIT_HEADER[0]));
isFileSizeLimitOverriding = false;
} else {
fileSizeLimit = parseValue;
}
fileSizeLimit = parseValue;
}
}

Expand Down

0 comments on commit 1fc42aa

Please sign in to comment.