File tree 1 file changed +3
-4
lines changed
kover-jvm-agent/src/main/java/kotlinx/kover/jvmagent
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,17 @@ private static KoverAgentSettings readSettingsFromFile(File file) throws IOExcep
70
70
settings .exclusions .add (line .substring (EXCLUDE_WITH_REGEX_ARGUMENT .length ()));
71
71
} else if (line .startsWith (INCLUDE_WITH_WILDCARDS_ARGUMENT )) {
72
72
String wildcards = line .substring (INCLUDE_WITH_WILDCARDS_ARGUMENT .length ());
73
- settings .exclusions .add (wildcardsToRegex (wildcards ));
73
+ settings .inclusions .add (wildcardsToRegex (wildcards ));
74
74
} else if (line .startsWith (INCLUDE_WITH_REGEX_ARGUMENT )) {
75
- settings .exclusions .add (line .substring (INCLUDE_WITH_REGEX_ARGUMENT .length ()));
75
+ settings .inclusions .add (line .substring (INCLUDE_WITH_REGEX_ARGUMENT .length ()));
76
76
} else if (line .startsWith (APPEND_ARGUMENT )) {
77
77
String value = line .substring (APPEND_ARGUMENT .length ());
78
78
if (!isBoolean (value )) {
79
79
throw new IllegalArgumentException ("Incorrect value for argument " + APPEND_ARGUMENT + " in Kover JVM agent arguments file, expected true or false" );
80
80
}
81
81
settings .appendToReportFile = Boolean .parseBoolean (value );
82
- } else if (line .length () == 0 ) {
82
+ } else if (! line .isEmpty () ) {
83
83
// skip empty line
84
- } else {
85
84
throw new IllegalArgumentException ("Unrecognized line in Kover arguments file: " + line
86
85
+ ". Line must start with one of prefixes: " + arguments );
87
86
}
You can’t perform that action at this time.
0 commit comments