eliben / pss

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

Add Eclipse '.metadata' directory to ignore list #16

Closed adamatan closed 11 years ago

adamatan commented 11 years ago

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.

eliben commented 11 years ago

Please create a pull request with a single commit.

adamatan commented 11 years ago

Sure.

adamatan commented 11 years ago

Done, created a new one. You can delete this pull request.

adamatan commented 10 years ago

Done: https://github.com/eliben/pss/pull/17

On Tue, Oct 8, 2013 at 4:20 PM, Eli Bendersky notifications@github.comwrote:

Please create a pull request with a single commit.

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