eliben / pss

pss is a power-tool for searching inside source code files.
Other
327 stars 46 forks source link

Add Eclipse's .metadata dir to ignore list #17

Closed adamatan closed 10 years ago

adamatan commented 11 years ago

Ignore files in Eclipse workspace .metadata subdirectory.

Eclipse's .metadata directory is located below the workspace. It contains the .plugin subdirectory, which has a lot of code in it - both plugin code and file history from the workspace.

For example, when I pss-ed for connectURI in my workspace, I got one correct result and a few dozen results from the history in .metadata:

./.metadata/.plugins/org.eclipse.core.resources/.history/bc/70d26d74bbfe00121178f4cf4000aacf
23: private static final String connectURI  =   "...jdbcCompliantTruncation=false";
48:             connection = DriverManager.getConnection(connectURI, username, password);
53:                     connectURI, username, password, e.getMessage());

./.metadata/.plugins/org.eclipse.core.resources/.history/c1/80554931e62f0013154c9564f9925bf1
23: private static final String connectURI  =   "jdbc:mysql://127.0.0.1:3306/pixels?    jdbcCompliantTruncation=false";
48:             connection = DriverManager.getConnection(connectURI, username, password);
50:                     connection.toString(), connectURI, username));
54:                     connectURI, username, password, e.getMessage());

...

I assume that most users would like to view the code in their workspace, rather than Eclipse's plugin and history folders.

adamatan commented 11 years ago

Single-commit pull request, as requested (the previous request can be deleted).

eliben commented 10 years ago

Merged. Thanks

adamatan commented 10 years ago

Thanks. Great application, BTW.

On Wed, Nov 6, 2013 at 3:23 PM, Eli Bendersky notifications@github.comwrote:

Merged. Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/eliben/pss/pull/17#issuecomment-27872567 .