19
19
import org .sonar .api .Plugin ;
20
20
import org .sonar .api .SonarProduct ;
21
21
import org .sonar .api .config .PropertyDefinition ;
22
- import org .sonar .api .config . PropertyDefinition . ConfigScope ;
22
+ import org .sonar .api .resources . Qualifiers ;
23
23
import org .sonar .plugins .php .api .Php ;
24
24
import org .sonar .plugins .php .reports .phpstan .PhpStanRulesDefinition ;
25
25
import org .sonar .plugins .php .reports .phpstan .PhpStanSensor ;
@@ -67,7 +67,7 @@ public void define(Context context) {
67
67
.defaultValue (Php .DEFAULT_FILE_SUFFIXES )
68
68
.name ("File Suffixes" )
69
69
.description ("List of suffixes of PHP files to analyze." )
70
- .onConfigScopes ( ConfigScope .PROJECT )
70
+ .onQualifiers ( Qualifiers .PROJECT )
71
71
.category (PHP_CATEGORY )
72
72
.multiValues (true )
73
73
.subCategory (GENERAL_SUBCATEGORY )
@@ -77,7 +77,7 @@ public void define(Context context) {
77
77
.defaultValue (PHP_EXCLUSIONS_DEFAULT_VALUE )
78
78
.name ("PHP Exclusions" )
79
79
.description ("List of file path patterns to be excluded from analysis of PHP files." )
80
- .onConfigScopes ( ConfigScope .PROJECT )
80
+ .onQualifiers ( Qualifiers .PROJECT )
81
81
.category (PHP_CATEGORY )
82
82
.subCategory (GENERAL_SUBCATEGORY )
83
83
.multiValues (true )
@@ -87,7 +87,7 @@ public void define(Context context) {
87
87
.defaultValue (PHP_FRAMEWORK_DETECTION_DEFAULT_VALUE )
88
88
.name ("PHP Framework detection" )
89
89
.description ("Enable the detection of PHP framework in analyzed file, which adapt some rules behavior." )
90
- .onConfigScopes ( ConfigScope .PROJECT )
90
+ .onQualifiers ( Qualifiers .PROJECT )
91
91
.category (PHP_CATEGORY )
92
92
.subCategory (GENERAL_SUBCATEGORY )
93
93
.build ());
@@ -106,15 +106,15 @@ private static void addPhpUnitExtensions(Context context) {
106
106
PropertyDefinition .builder (PHPUNIT_TESTS_REPORT_PATH_KEY )
107
107
.name ("Unit Test Report" )
108
108
.description ("Comma-separated list of paths to PHPUnit unit test execution report files. Paths may be either absolute or relative to the project base directory." )
109
- .onConfigScopes ( ConfigScope .PROJECT )
109
+ .onQualifiers ( Qualifiers .PROJECT )
110
110
.category (PHP_CATEGORY )
111
111
.multiValues (true )
112
112
.subCategory (PHPUNIT_SUBCATEGORY )
113
113
.build (),
114
114
PropertyDefinition .builder (PHPUNIT_COVERAGE_REPORT_PATHS_KEY )
115
115
.name ("Coverage Reports" )
116
116
.description ("List of PHPUnit code coverage report files. Each path can be either absolute or relative." )
117
- .onConfigScopes ( ConfigScope .PROJECT )
117
+ .onQualifiers ( Qualifiers .PROJECT )
118
118
.category (PHP_CATEGORY )
119
119
.multiValues (true )
120
120
.subCategory (PHPUNIT_SUBCATEGORY )
@@ -130,7 +130,7 @@ private static void addPhpStanExtensions(Context context) {
130
130
.description ("Paths (absolute or relative) to report files with PHPStan issues." )
131
131
.category (EXTERNAL_ANALYZERS_SUBCATEGORY )
132
132
.subCategory (PHP_CATEGORY )
133
- .onConfigScopes ( ConfigScope .PROJECT )
133
+ .onQualifiers ( Qualifiers .PROJECT )
134
134
.multiValues (true )
135
135
.build ());
136
136
}
@@ -144,7 +144,7 @@ private static void addPsalmExtensions(Context context) {
144
144
.description ("Paths (absolute or relative) to report files with Psalm issues." )
145
145
.category (EXTERNAL_ANALYZERS_SUBCATEGORY )
146
146
.subCategory (PHP_CATEGORY )
147
- .onConfigScopes ( ConfigScope .PROJECT )
147
+ .onQualifiers ( Qualifiers .PROJECT )
148
148
.multiValues (true )
149
149
.build ());
150
150
}
0 commit comments