Resharper Command Line Utilities: DupFinder.exe

So I've started playing with the command line utility DupeFinder.exe, and
have noticed a couple of things.  I may just be making mistakes here, or
there may be problems in functionality... so I'm posting here hoping for a
little guidance.

I've used the "/exclude:*Text.cs" option to try and exclude all .cs file
that end in "Test", but a lot are still getting through.  Is that syntax
right?  There are no examples anywhere I could find.  I tried a space
initially and got an error, so changed it to a colon, and it SEEMED to work,
except a great many "*Test.cs" files got through.

Also, is there any way to exclude all files under a given folder?

And finally, the output... I didn't find the ".xsl" folder you said was
included in the zip file, so I copied from the documentation I found here:

http://confluence.jetbrains.com/display/NETCOM/Introducing+dupFinder

I then had to add a line to each output .xml file manually (any way to have
that line just be "there"?  Like, specify the xsl file name on the command
line just like we specify the output file name with the /output:filename
option?).

The resulting xml file could only be open and viewed in Firefox.  The latest
IE just shows a mash of text, and the latest Chrome just shows a blank page.
I'm assuming this should work in all browsers... was it only tested in
Firefox?

Any more help or tips on using this rather interesting and amazing tool
would be appreciated.  I'm just using it from the command line, on my local
box, not as part of any CI development process or MSBuild script, if that's
helpful.


0
2 comments

Reading more carefully, it's ambiguous to me what the operand to the
/exclude option should be, but it seems to imply it should be a file name
that contains a list of exclusions.  This is counter-intuitive (most command
lines take a list of comma-separated patterns right on the command line),
but even trying THIS tactic, I cannot seem to get the /exclude option to
work at all.  I get the exact same results wither I use it or not.  No error
messages.

The /exclude option seems broken.  What is the magic to get it to work?  I
really don't care about duplicate code in test files at this point, so I
want to exclude all files that have the word "Test" in the file name....
Test.cs  ... can someone tell me how to do this?

I tried creating a file "ExcludeFiles.txt" with one line in it (from the
example, this line was "*Test.cs"), but it had no more effect than
specifying "Test.cs" or "Test.cs" on the command line.

Since this is documented, I assume it's working for JetBrains people... can
someone help me out here?



"Paul Bradshaw"  wrote in message
news:l08dt0$6of$1@nntp-server.labs.intellij.net...

So I've started playing with the command line utility DupeFinder.exe, and
have noticed a couple of things.  I may just be making mistakes here, or
there may be problems in functionality... so I'm posting here hoping for a
little guidance.

I've used the "/exclude:*Text.cs" option to try and exclude all .cs file
that end in "Test", but a lot are still getting through.  Is that syntax
right?  There are no examples anywhere I could find.  I tried a space
initially and got an error, so changed it to a colon, and it SEEMED to work,
except a great many "*Test.cs" files got through.

Also, is there any way to exclude all files under a given folder?

And finally, the output... I didn't find the ".xsl" folder you said was
included in the zip file, so I copied from the documentation I found here:

http://confluence.jetbrains.com/display/NETCOM/Introducing+dupFinder

I then had to add a line to each output .xml file manually (any way to have
that line just be "there"?  Like, specify the xsl file name on the command
line just like we specify the output file name with the /output:filename
option?).

The resulting xml file could only be open and viewed in Firefox.  The latest
IE just shows a mash of text, and the latest Chrome just shows a blank page.
I'm assuming this should work in all browsers... was it only tested in
Firefox?

Any more help or tips on using this rather interesting and amazing tool
would be appreciated.  I'm just using it from the command line, on my local
box, not as part of any CI development process or MSBuild script, if that's
helpful.

0

Nobody replied, but I figured out that the only way to make it work was to
run with the 'current directory' being the same as the solution directory.

This, I feel, is a major problem.  I want to be able to run from the actual
tool's folder, and just repeatedly point at the different solutions from
there.  This is how it should work, and is the intuitive way.  I shouldn't
have to CD to each solution folder to run the tool.  That's awkward and
unnecessary.

I hope this gets put on a list of things to fix with this tool in the next
update.



"Paul Bradshaw"  wrote in message
news:l08hjh$9or$1@nntp-server.labs.intellij.net...

Reading more carefully, it's ambiguous to me what the operand to the
/exclude option should be, but it seems to imply it should be a file name
that contains a list of exclusions.  This is counter-intuitive (most command
lines take a list of comma-separated patterns right on the command line),
but even trying THIS tactic, I cannot seem to get the /exclude option to
work at all.  I get the exact same results wither I use it or not.  No error
messages.

The /exclude option seems broken.  What is the magic to get it to work?  I
really don't care about duplicate code in test files at this point, so I
want to exclude all files that have the word "Test" in the file name....
Test.cs  ... can someone tell me how to do this?

I tried creating a file "ExcludeFiles.txt" with one line in it (from the
example, this line was "*Test.cs"), but it had no more effect than
specifying "Test.cs" or "Test.cs" on the command line.

Since this is documented, I assume it's working for JetBrains people... can
someone help me out here?



"Paul Bradshaw"  wrote in message
news:l08dt0$6of$1@nntp-server.labs.intellij.net...

So I've started playing with the command line utility DupeFinder.exe, and
have noticed a couple of things.  I may just be making mistakes here, or
there may be problems in functionality... so I'm posting here hoping for a
little guidance.

I've used the "/exclude:*Text.cs" option to try and exclude all .cs file
that end in "Test", but a lot are still getting through.  Is that syntax
right?  There are no examples anywhere I could find.  I tried a space
initially and got an error, so changed it to a colon, and it SEEMED to work,
except a great many "*Test.cs" files got through.

Also, is there any way to exclude all files under a given folder?

And finally, the output... I didn't find the ".xsl" folder you said was
included in the zip file, so I copied from the documentation I found here:

http://confluence.jetbrains.com/display/NETCOM/Introducing+dupFinder

I then had to add a line to each output .xml file manually (any way to have
that line just be "there"?  Like, specify the xsl file name on the command
line just like we specify the output file name with the /output:filename
option?).

The resulting xml file could only be open and viewed in Firefox.  The latest
IE just shows a mash of text, and the latest Chrome just shows a blank page.
I'm assuming this should work in all browsers... was it only tested in
Firefox?

Any more help or tips on using this rather interesting and amazing tool
would be appreciated.  I'm just using it from the command line, on my local
box, not as part of any CI development process or MSBuild script, if that's
helpful.

0

Please sign in to leave a comment.