From eae1f5697fa3b52c1283b15f0ef49a00b7de28ca Mon Sep 17 00:00:00 2001 From: bjanczak Date: Wed, 31 Jan 2018 15:02:37 +0100 Subject: [PATCH] #176 Sputnik does not support new tslint (#177) --- .../pl/touk/sputnik/processor/tslint/TSLintResultParser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/pl/touk/sputnik/processor/tslint/TSLintResultParser.java b/src/main/java/pl/touk/sputnik/processor/tslint/TSLintResultParser.java index cf36ddf8..848ab9e7 100644 --- a/src/main/java/pl/touk/sputnik/processor/tslint/TSLintResultParser.java +++ b/src/main/java/pl/touk/sputnik/processor/tslint/TSLintResultParser.java @@ -1,5 +1,6 @@ package pl.touk.sputnik.processor.tslint; +import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; @@ -17,7 +18,8 @@ @Slf4j public class TSLintResultParser implements ExternalProcessResultParser { - private final ObjectMapper objectMapper = new ObjectMapper(); + private final ObjectMapper objectMapper = new ObjectMapper() + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @Override public List parse(String jsonViolations) {