In my last post I talked about integrating Simian into Visual Studio - as Mal commented the default output from Simian is not very Visual Studio friendly:
Found 6 duplicate lines in the following files:
Between lines 163 and 171 in D:\Projects\Conchango\Conchango.Gluon\Conchango.Gluon.Plugins.Interface\ConfigSettings.cs
Between lines 141 and 150 in D:\Projects\Conchango\Conchango.Gluon\Conchango.Gluon.Plugins.Interface\ConfigSettings.cs
It is not in the standard output format that Visual Studio understands thus you cannot double click on a line of duplicated code in the output window and navigate directly to that code file and line of code. So on a very long train journey home from work this week I wrote MonkeyWrangler - a shim tool that executes Simian and reformats the output into format that Visual Studio understands:
Found 9 duplicate lines in the following files:
D:\Projects\Conchango\Conchango.Gluon\Conchango.Gluon.Plugins.Interface\ConfigSettings.cs (163) 171
D:\Projects\Conchango\Conchango.Gluon\Conchango.Gluon.Plugins.Interface\ConfigSettings.cs (141) 150
Now you can double click on the line and you will navigated to that file / line of code.
To set up MonkeyWrangler - simply build the project, and then in the External Tools menu in Visual Studio (see my last post for full instructions) replace the command line option for "simian-2.2.8.exe" with the path to "Conchango.Code.Build.MonkeyWrangler.exe" then all you need to do is update the location of "simian-2.2.8.exe" in "Conchango.Code.Build.MonkeyWrangler.exe.config".
Thanks to Stuart Preston for the RegExp help.
You can download the tool from my Project Distributor workspace.