Commit dc81c5a4 authored by Matthias Betz's avatar Matthias Betz
Browse files

fixed bug with global parameters not getting through to checks

parent 29105946
Pipeline #1276 failed with stage
in 1 minute and 52 seconds
......@@ -346,10 +346,10 @@ public class Checker {
Check c = checkConfig.getCheckForId(e.getKey());
Map<String, String> parameters = new HashMap<>();
parameters.putAll(e.getValue().getParameters());
parameters.put("numberOfRoundedPlaces", "" + config.getNumberOfRoundingPlaces());
parameters.put("numberOfRoundingPlaces", "" + config.getNumberOfRoundingPlaces());
parameters.put("minVertexDistance", "" + config.getMinVertexDistance());
// initialize checks with parameters
c.init(e.getValue().getParameters(), parserConfig);
c.init(parameters, parserConfig);
checks.add(c);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment