-
Notifications
You must be signed in to change notification settings - Fork 64
JSlint check #75
JSlint check #75
Conversation
nemesifier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @frogsandsocks, thx for participating with us!
The patch looks good 👍 , just a few minor improvements are needed.
Please squash the two commits into one and write a commit message that is in line with out commit message style (described in our contribution guidelines), then address the inline comments below.
.jslintrc
Outdated
| "dismissAddAnotherPopup", | ||
| "FileReader", | ||
| "Image", | ||
| "L", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the previous 5 lines
.travis.yml
Outdated
| - ./runisort | ||
|
|
||
| # Install NVM: | ||
| - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we did a similar tasks in other modules and this was not needed, we want to keep the build step as simple and fast as possible, therefore I kindly ask to please remove it
.travis.yml
Outdated
| - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash | ||
|
|
||
| # Install nodeJS: | ||
| - nvm install v8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as previous comment
.travis.yml
Outdated
| - python setup.py -q develop | ||
|
|
||
| # Install JSlint: | ||
| - npm install --save jslint -g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this in before_install section
.travis.yml
Outdated
| - coverage run --source=django_netjsongraph runtests.py | ||
|
|
||
| # JSlint check: | ||
| - jslint --config ./.jslintrc ./django_netjsongraph/static/netjsongraph/js/*.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this in before_install section, after installing jslint
we do this to stop the build if any style check fails before installing the other python dependencies, which speeds up a lot the style checks and failures are reported very early if they happen
.travis.yml
Outdated
| - "2.7" | ||
|
|
||
| node_js: | ||
| - "8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should not be needed (we have added similar checks in other modules without adding this), try to remove it
|
@nemesisdesign |
|
@nemesisdesign |
nemesifier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you were mostly done but the change in indentation was not a good idea, see below.
Please claim again the task in the GCI system so we can finish it ;-)
.travis.yml
Outdated
|
|
||
| # Install JSlint: | ||
| - npm install --save jslint -g | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank line, also remove the comments because they are not necessary (it's pretty obvious that we are installing jslint and we are running a jslint check), also remove the blank line after - ./runisort
.jslintrc
Outdated
| "rhino": false, | ||
| "widget": false, | ||
| "windows": false, | ||
| "indent": 2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use 4 spaces indentation and revert the changes to the JS files because that kind of huge change breaks git blame (because you appear author of those lines while you are not, so if something breaks somebody may think you are the person to ask why something is not working)
Added jslint config file and jslint support to Travis CI build.
|
I can't claim this task again, because deadline is over. But i don't care about code-in, so you can just ignore it |
|
@frogsandsocks do you want to finish this PR or should I close it? |
|
@frogsandsocks sorry, didn't check that you did address my comments, thanks 👍 |
|
@nemesisdesign |
Added jslint support to Travis CI build.