File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/org/phpsrc/eclipse/pti/tools/codesniffer Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -106,16 +106,17 @@ public String[] getCodeSnifferStandards(String lib) {
106
106
if (!standardPath .exists ())
107
107
standardPath = new File (libPath + "/PEAR/PHP/CodeSniffer/Standards" );
108
108
} else {
109
- standardPath = new File (PHPLibraryPEARPlugin .getDefault (). resolvePluginResource ( DEFAULT_PEAR_LIB_PATH )
110
- .toPortableString ());
109
+ standardPath = new File (PHPLibraryPEARPlugin .getDefault ()
110
+ .resolvePluginResource ( DEFAULT_PEAR_LIB_PATH ). toPortableString ());
111
111
}
112
112
113
113
if (standardPath == null || !standardPath .exists ())
114
114
return new String [0 ];
115
115
116
116
File [] dirs = standardPath .listFiles (new FileFilter () {
117
117
public boolean accept (File f ) {
118
- return f .isDirectory () && !f .getName ().startsWith ("." );
118
+ return f .isDirectory () && !f .getName ().startsWith ("." )
119
+ && !f .getName ().toLowerCase ().equals ("generic" );
119
120
}
120
121
});
121
122
@@ -132,7 +133,8 @@ public boolean accept(File f) {
132
133
133
134
public IPath [] getPluginIncludePaths (IProject project ) {
134
135
PHPCodeSnifferPreferences prefs = PHPCodeSnifferPreferencesFactory .factory (project );
135
- IPath [] pearPaths = PHPLibraryPEARPlugin .getDefault ().getPluginIncludePaths (prefs .getPearLibraryName ());
136
+ IPath [] pearPaths = PHPLibraryPEARPlugin .getDefault ().getPluginIncludePaths (
137
+ prefs .getPearLibraryName ());
136
138
137
139
IPath [] includePaths = new IPath [pearPaths .length + 1 ];
138
140
includePaths [0 ] = resolvePluginResource ("/php/tools" );
You can’t perform that action at this time.
0 commit comments