Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Gendarme: Add IDE output format option to TextResultWriter #17

Closed
wants to merge 1 commit into from
Closed

Gendarme: Add IDE output format option to TextResultWriter #17

wants to merge 1 commit into from

Conversation

krijesta
Copy link

Currently the output from Gendarme is not recognised by IDEs. This change adds the ability to specify a command line option ("--ide") which adds a line to the output which is formatted so that IDEs can parse it. This allows Gendarme to be used as a build step and errors will appear in the build error list and link correctly to the line and file where the error occurred.

This has been tested on SharpDevelop and VS2010. It doesn't work on MonoDevelop but I was unable to find any documentation as to what format it requires for custom tools to generate errors to appear in the error list, or if that is supported at all.

Specifying --ide on the command line will result in the output being
formatted in a manner that allows IDEs to recognise the error and
display it appropiatly if it is run as a custom tool, linking the issue
to the source code and adding it to the error list.
@mhutch
Copy link
Member

mhutch commented Dec 15, 2011

MonoDevelop doesn't currently use the MSBuild standard error format for processing custom tools' output, but that could be added fairly easily.

@mhutch
Copy link
Member

mhutch commented Dec 15, 2011

Also, parameters are camelCase, not PascalCase. camelCase is the one with a hump :)

@krijesta
Copy link
Author

I don't seem to be able to update the commit range for this pull request as I specified a specific commit rather than a branch - not sure if I can update it.

The formatting issues raised in the comments are fixed in a second commit to the krijesta/mono-tools:ide branch

@akoeplinger akoeplinger closed this Mar 1, 2021
@akoeplinger akoeplinger deleted the branch mono:master March 1, 2021 15:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants