Skip to content
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

add two rules #700

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add two rules #700

wants to merge 2 commits into from

Conversation

lh2907883
Copy link

add two rules
1.multi-rules-newline

2.rule-name

CSSLint.addRule({

// rule information
id: "rule-name",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make the id a bit more descriptive. maybe like rule-name-no-underscore


// rule information
id: "rule-name",
name: "Rule name must concat with -",
Copy link
Contributor

Choose a reason for hiding this comment

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

The name says it should concatenate with a dash, but the test checks that there's no underscore, so there's a mismatch in the description and the actual behavior of the code. I suggest to change the name and desc.


name: "multi-rules-newline",

"Multi rules must declear in multi lines": function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: must be declared

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.

2 participants