Conversation

pbrisbin

Instead of "net.csslint.Disallow@import" (source, which is a munged rule.name),
just use "import" (rule.id).

/cc @codeclimate/review

Adds "identifier" to checkstyle output, which we can use to generate a
more friendly check name on our side.

codeclimate/csslint@e8b8855
Instead of "net.csslint.Disallow@import" (source, which is a munged
rule.name), just use "import" (rule.id).
@@ -20,7 +20,7 @@ def run
next unless node.name == "error"

lint = node.attributes
check_name = lint["source"].value
check_name = lint["identifier"].value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be prefixed in the resulting json?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Any check-prefixing is meant to be done from the outside. RuboCop's current behavior notwithstanding, that's the future we want to build for -- so says @brynary anyway.

@pbrisbin

@gordondiggs you good on this?

@gdiggs

LGTM

pbrisbin added a commit that referenced this pull request Dec 8, 2015
Use rule identifier as check name
@pbrisbinpbrisbin merged commit 38ac19c into master Dec 8, 2015
@pbrisbinpbrisbin deleted the pb-check-names branch December 8, 2015 22:32
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.