Skip to content

add new exclusion for enforce-existence - noParamsAndReturns#141

Closed
webuniverseio wants to merge 1 commit intojscs-dev:masterfrom
webuniverseio:feature/enforceExistence-no-params-and-returns
Closed

add new exclusion for enforce-existence - noParamsAndReturns#141
webuniverseio wants to merge 1 commit intojscs-dev:masterfrom
webuniverseio:feature/enforceExistence-no-params-and-returns

Conversation

@webuniverseio
Copy link
Copy Markdown
Contributor

add new exclusion for enforce-existence - paramless-procedures, address #139

@webuniverseio webuniverseio force-pushed the feature/enforceExistence-no-params-and-returns branch 4 times, most recently from 767a727 to 91df507 Compare August 15, 2015 22:05
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

= Object.keys(this._enforceExistencePolicy) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, we can do that. In updatePolicyRules I'll change

policy[option] = false;

to

policy[option] = !policy[option];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, please use 4 spaces as indent. Not sure why it wasn't reported by jscs. Bug?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, sorry about that. I use WebStorm EAP, looks like editor config settings are not picked up properly. Also jscs behaves funny. I think in .jscsrc we need to change "plugins": ["jscs-jsdoc"] to be "plugins": ["../jscs-jsdoc"]. That way both WebStorm integration and npm run lint work well. I'll try to update in this feature and see if build will pass.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

;-) Yeah, these IDE integration are pretty queasy on paths and global installation. In my case it's sublime on mac/win using samba/fuse to home directory on a linux server, and there's a lot of magics ;-D

Not sure that this fix will work well in all cases. "plugins" itself should resolve this imho.

@webuniverseio webuniverseio force-pushed the feature/enforceExistence-no-params-and-returns branch from 91df507 to d0e2305 Compare August 16, 2015 14:44
Comment thread .jscsrc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, in that way we can't call jscs itself. Just in npm run lint, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We also can do something like node node_modules/jscs/bin/jscs test lib, but otherwise npm run lint is a way to do that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Okay, let it be with '../' 👍

@webuniverseio webuniverseio force-pushed the feature/enforceExistence-no-params-and-returns branch from d0e2305 to 5472cd5 Compare August 16, 2015 14:54
@qfox
Copy link
Copy Markdown
Member

qfox commented Aug 16, 2015

LGTM! Thanks for you hard work here ;-)

@webuniverseio
Copy link
Copy Markdown
Contributor Author

:D Thank you too. I just used what was already in codebase.

@qfox qfox closed this in 379e9ff Sep 6, 2015
@webuniverseio
Copy link
Copy Markdown
Contributor Author

@zxqfox, will it be merged at some point later:question: :)

@webuniverseio
Copy link
Copy Markdown
Contributor Author

Oh, 🍒 pick?

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