Skip to content

Fix check-details keys #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2015
Merged

Fix check-details keys #20

merged 1 commit into from
Dec 7, 2015

Conversation

pbrisbin
Copy link
Contributor

@pbrisbin pbrisbin commented Dec 7, 2015

I originally thought source (which we use as check-name) was a munged version
of the rule-id[1]:

id: import => source: net.csslint.Import

It's actually a munged versions of rule-name[2]:

name: Disallow @import => net.css.lint.Disallow@import

This commit corrects the CheckDetails map keys to use what is actually emitted
as source.

1: https://github.com/CSSLint/csslint/blob/f69cf12e23ca95cfd9e78a4a5d83fdccb71bb8be/src/rules/import.js#L8
2: https://github.com/CSSLint/csslint/blob/f69cf12e23ca95cfd9e78a4a5d83fdccb71bb8be/src/rules/import.js#L9

/cc @codeclimate/review

@gdiggs
Copy link
Contributor

gdiggs commented Dec 7, 2015

LGTM

I originally thought source (which we use as check-name) was a munged
version of the rule-id[1]:

    id: import => source: net.csslint.Import

It's actually a munged versions of rule-name[2]:

    name: Disallow @import => net.css.lint.Disallow@import

This commit corrects the CheckDetails map keys to use what is actually
emitted as source.

1: https://github.com/CSSLint/csslint/blob/f69cf12e23ca95cfd9e78a4a5d83fdccb71bb8be/src/rules/import.js#L8
2: https://github.com/CSSLint/csslint/blob/f69cf12e23ca95cfd9e78a4a5d83fdccb71bb8be/src/rules/import.js#L9
@ABaldwinHunter
Copy link

@pbrisbin while you're in here:

@ABaldwinHunter
Copy link

nvm. LGTM

pbrisbin added a commit that referenced this pull request Dec 7, 2015
@pbrisbin pbrisbin merged commit 4b049a0 into master Dec 7, 2015
@pbrisbin pbrisbin deleted the pb-fix-categories branch December 7, 2015 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants