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

Feature lint double semi colons #1107

Merged
merged 2 commits into from
Aug 27, 2017
Merged

Conversation

DanPurdy
Copy link
Member

I was unable to update a contributors branch so just created a new quick PR here. Full credit to @JordanDDisch
see #863 for details

closes #863
Fixes #852

@coveralls
Copy link

coveralls commented Aug 26, 2017

Coverage Status

Coverage increased (+0.006%) to 97.517% when pulling 5ca8e7b on feature_lint-double-semi-colons into b5aebda on develop.

var hasDoubleSemiColon = function (tree) {

tree.traverseByType('declarationDelimiter', function (node, index, parent) {
if (parent.content[index + 1].is('declarationDelimiter')) {
Copy link
Member

Choose a reason for hiding this comment

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

Woud check that parent.content[index + 1] exists before calling is

Copy link
Member Author

Choose a reason for hiding this comment

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

yup,

@DanPurdy
Copy link
Member Author

Just noticed that this looks wrong though, 4 failure cases added but only increments the warning count by 3.

@DanPurdy DanPurdy force-pushed the feature_lint-double-semi-colons branch from 5ca8e7b to 09f4c43 Compare August 27, 2017 00:33
@coveralls
Copy link

coveralls commented Aug 27, 2017

Coverage Status

Coverage increased (+0.006%) to 97.517% when pulling 09f4c43 on feature_lint-double-semi-colons into 2c4f63e on develop.

@DanPurdy DanPurdy merged commit 93d1f5c into develop Aug 27, 2017
@DanPurdy DanPurdy deleted the feature_lint-double-semi-colons branch August 27, 2017 00:40
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.

Lint double semi colons
4 participants