Add dir loading for coherent feature

This commit is contained in:
2023-03-01 19:13:07 +01:00
parent b07f6894aa
commit 440251c7c9
9 changed files with 66 additions and 12 deletions

View File

@@ -28,7 +28,8 @@ public class ConfigLoader {
new SetValidator(FORCED_KEYWORDS, false, true),
new SetValidator(COMMENTARY_KEYWORDS, false, true),
new SetValidator(EXCLUDED_DIRECTORY, false, true),
new AttributeConfigValidator()
new AttributeConfigValidator(),
new CoherentConfigValidator(COHERENT, false)
);
public static void initConfig(String[] args) {

View File

@@ -17,6 +17,6 @@ public class CoherentConfigValidator extends ConfigValidator<Integer> {
@Override
boolean isValid(Integer result) {
return result > 0;
return result >= 0;
}
}