diff --git a/detectors/MuDetect/releases.yml b/detectors/MuDetect/releases.yml index 75dffcfa4..d06e74773 100644 --- a/detectors/MuDetect/releases.yml +++ b/detectors/MuDetect/releases.yml @@ -1,2 +1,3 @@ -- cli_version: 0.0.8 - md5: c21773719c9911396a37065cf625106d +- cli_version: 0.0.10 + md5: 533ba658a244623e07aca6951e8ff50b + tag: icse18 diff --git a/detectors/MuDetectXP/MuDetectXP.py b/detectors/MuDetectXP/MuDetectXP.py new file mode 100644 index 000000000..407e0a8fb --- /dev/null +++ b/detectors/MuDetectXP/MuDetectXP.py @@ -0,0 +1,10 @@ +from data.detector import Detector +from data.detector_specialising.specialising_util import replace_dot_graph_with_image +from data.finding import Finding, SpecializedFinding + + +class MuDetectXP(Detector): # Commit: 347d8b887e2538d1138c951a40b247324657a6ad + def _specialize_finding(self, findings_path: str, finding: Finding) -> SpecializedFinding: + violation = replace_dot_graph_with_image(finding, "pattern_violation", findings_path) + target_env = replace_dot_graph_with_image(finding, "target_environment_mapping", findings_path) + return SpecializedFinding(finding, [violation, target_env]) diff --git a/detectors/MuDetectXP/releases.yml b/detectors/MuDetectXP/releases.yml new file mode 100644 index 000000000..3f7f0d2f4 --- /dev/null +++ b/detectors/MuDetectXP/releases.yml @@ -0,0 +1,3 @@ +- cli_version: 0.0.10 + md5: 5bc3949c1b914ab63c1639e5b79cb244 + tag: icse18