File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/org/phpsrc/eclipse/pti/tools/codesniffer/ui/preferences Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,11 @@ private void doValidation() {
170
170
if (newPath != null && newPath .length () > 0 ) {
171
171
IPath path = Path .fromOSString (newPath );
172
172
if (path != null ) {
173
- File codingStandard = new File (newPath + File .separatorChar + path .lastSegment () + "CodingStandard.php" );
174
- if (!codingStandard .exists ()) {
175
- status .setError ("Missing standard file " + path .lastSegment () + "CodingStandard.php" );
173
+ File codingStandardPHP = new File (newPath + File .separatorChar + path .lastSegment ()
174
+ + "CodingStandard.php" );
175
+ File codingStandardXML = new File (newPath + File .separatorChar + "ruleset.xml" );
176
+ if (!codingStandardPHP .exists () && !codingStandardXML .exists ()) {
177
+ status .setError ("Missing standard file " + path .lastSegment () + "CodingStandard.php or ruleset.xml" );
176
178
}
177
179
}
178
180
}
You can’t perform that action at this time.
0 commit comments