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

Improve spaces inside array brackets rules #896

Closed
wants to merge 5 commits into from

Conversation

markelog
Copy link
Member

Fixes #721 and #429

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 53c76e6 on markelog:SpacesInsideArrayBrackets into 67f6e8d on jscs-dev:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 53c76e6 on markelog:SpacesInsideArrayBrackets into 67f6e8d on jscs-dev:master.

@markelog
Copy link
Member Author

Coverage decreased (-0.02%)

Same as with #893 (comment)

@@ -24,7 +24,7 @@
"requireBlocksOnNewline": 1,
"disallowEmptyBlocks": true,
"requireSpacesInsideObjectBrackets": "all",
"requireSpacesInsideArrayBrackets": "all",
"disallowSpacesInsideArrayBrackets": "all",
Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @jdlrobson, @jdforrester, @Krinkle

Is that OK?

@markelog
Copy link
Member Author

Wow, it would also fix #111

Aside from main improvement:

* Simplify logic check

* Use assertion API

* Add couple more tests for main logic

* Fix accessor array case i.e. as expression statement

Fixes jscs-dev#111
Ref jscs-dev#721
Ref jscs-dev#429
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 85a7f29 on markelog:SpacesInsideArrayBrackets into f69bed2 on jscs-dev:master.

Aside from main improvement:

* Simplify logic check

* Use assertion API

* Add couple more tests for main logic

* Fix accessor array case i.e. as expression statement

Fixes jscs-dev#721
Fixes jscs-dev#429
Since previous commits fixed some of the array bracket case, jscs now
finds more inconsistancies, yey! And it found some in this code-base too
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) when pulling 462b9e3 on markelog:SpacesInsideArrayBrackets into f69bed2 on jscs-dev:master.

@markelog markelog added this to the 1.10 milestone Jan 15, 2015
markelog added a commit to markelog/node-jscs that referenced this pull request Jan 15, 2015
Since previous commits fixed some of the array bracket case, jscs now
finds more inconsistancies, yey! And it found some in this code-base too

Closes jscs-devgh-896
@markelog markelog closed this in 449bcdd Jan 15, 2015
markelog added a commit that referenced this pull request Jan 15, 2015
Since previous commits fixed some of the array bracket case, jscs now
finds more inconsistancies, yey! And it found some in this code-base too

Closes gh-896
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.

Add new values and deprecate some for (require | disallow)SpacesInsideObjectBrackets
3 participants