return ruleDto;
}
- private void setCleanCodeAttributeAndImpacts(NewCustomRule newRule, RuleDto ruleDto, RuleDto templateRuleDto) {
+ private static void setCleanCodeAttributeAndImpacts(NewCustomRule newRule, RuleDto ruleDto, RuleDto templateRuleDto) {
RuleType ruleType = newRule.type();
int type = ruleType == null ? templateRuleDto.getType() : ruleType.getDbConstant();
String severity = ofNullable(newRule.severity()).orElse(Severity.MAJOR);
changed = true;
}
changed |= mergeCleanCodeAttribute(def, dto, ruleChange);
- changed |= mergeImpacts(def, dto, uuidFactory, ruleChange);
+ changed |= mergeImpacts(def, dto, ruleChange);
if (dto.isAdHoc()) {
dto.setIsAdHoc(false);
changed = true;
return changed;
}
- boolean mergeImpacts(RulesDefinition.Rule def, RuleDto dto, UuidFactory uuidFactory, RuleChange ruleChange) {
+ boolean mergeImpacts(RulesDefinition.Rule def, RuleDto dto, RuleChange ruleChange) {
if (dto.getEnumType() == RuleType.SECURITY_HOTSPOT) {
return false;
}