File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
sonar-swift-plugin/src/main/java/org/sonar/plugins/swift Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1717 */
1818package org .sonar .plugins .swift ;
1919
20- import java .util .List ;
21-
20+ import com .google .common .collect .ImmutableList ;
2221import org .sonar .api .Properties ;
2322import org .sonar .api .Property ;
2423import org .sonar .api .SonarPlugin ;
3736import org .sonar .plugins .swift .lang .core .Swift ;
3837import org .sonar .plugins .swift .surefire .SwiftSurefireSensor ;
3938
40- import com . google . common . collect . ImmutableList ;
39+ import java . util . List ;
4140
4241@ Properties ({
4342 @ Property (
6766 name = "Path to lizard report" ,
6867 description = "Relative to projects' root." ,
6968 global = false ,
69+ project = true ),
70+ @ Property (
71+ key = SwiftSurefireSensor .REPORTS_PATH_KEY ,
72+ defaultValue = SwiftSurefireSensor .DEFAULT_REPORTS_PATH ,
73+ name = "Path to surefire junit report" ,
74+ description = "Relative to projects' root." ,
75+ global = false ,
7076 project = true )
7177})
7278public class SwiftPlugin extends SonarPlugin {
Original file line number Diff line number Diff line change 2727import org .sonar .api .config .Settings ;
2828import org .sonar .api .resources .Project ;
2929import org .sonar .api .scan .filesystem .PathResolver ;
30+ import org .sonar .plugins .swift .SwiftPlugin ;
3031
3132import java .io .File ;
3233
3334public final class SwiftSurefireSensor implements Sensor {
3435
3536 private static final Logger LOGGER = LoggerFactory .getLogger (SwiftSurefireSensor .class );
3637
37- public static final String REPORTS_PATH_KEY = "sonar .junit.reportsPath" ;
38+ public static final String REPORTS_PATH_KEY = SwiftPlugin . PROPERTY_PREFIX + "swiftsurefire .junit.reportsPath" ;
3839 public static final String DEFAULT_REPORTS_PATH = "sonar-reports/" ;
3940
4041
You can’t perform that action at this time.
0 commit comments