From 9b0c5fbf3da6b04d095d47538b78cba6b3ac8b38 Mon Sep 17 00:00:00 2001 From: Stefan Weiser Date: Tue, 25 Apr 2017 15:17:38 +0200 Subject: [PATCH] Stop trying translation when no keys were found. --- .../main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java b/cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java index 2a858adeb..81d000670 100644 --- a/cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java +++ b/cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java @@ -151,6 +151,9 @@ public void transformFiles(final File baseDir) { transformFileList(baseDir.getAbsolutePath(), stylesheetFile, sources, outputs); } } + } else { + // No keys found. + goOn = false; } } }