Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Add validateQuoteMarks rule, closes #106 #118

Merged
merged 1 commit into from
Dec 30, 2013

Conversation

mikesherov
Copy link
Contributor

No description provided.

it('should not report double quotes in comments', function() {
assert(checker.checkString('var x = \'x\'; /*"y"*/').isEmpty());
});
});
Copy link

Choose a reason for hiding this comment

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

@mikesherov IMO there should be tests checking for ' inside " & vice versa, like:

var x = "'x'";

with validateQuoteMarks: '"'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mikesherov
Copy link
Contributor Author

@mzgol good point. I'll add

mdevils added a commit that referenced this pull request Dec 30, 2013
Add validateQuoteMarks rule, closes #106
@mdevils mdevils merged commit b841e94 into jscs-dev:master Dec 30, 2013
@mikesherov mikesherov deleted the quotmark branch December 30, 2013 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants