Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Conversation

@frogsandsocks
Copy link
Contributor

Added jslint support to Travis CI build.

Copy link
Member

@nemesifier nemesifier left a 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",
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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"
Copy link
Member

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

@frogsandsocks
Copy link
Contributor Author

frogsandsocks commented Jan 8, 2018

@nemesisdesign
Now the commit looks like example in the contribution guidelines.

@coveralls
Copy link

coveralls commented Jan 9, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 3f41049 on frogsandsocks:master into 1150666 on netjson:master.

@frogsandsocks
Copy link
Contributor Author

frogsandsocks commented Jan 9, 2018

@nemesisdesign
I fixed some jslint check errors, if you don't need this commit i can delete it

Copy link
Member

@nemesifier nemesifier left a 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

Copy link
Member

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,
Copy link
Member

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.
@frogsandsocks
Copy link
Contributor Author

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

@nemesifier
Copy link
Member

@frogsandsocks do you want to finish this PR or should I close it?

@nemesifier
Copy link
Member

@frogsandsocks sorry, didn't check that you did address my comments, thanks 👍

@frogsandsocks
Copy link
Contributor Author

@nemesisdesign
Yes, i want to complete this task, but i don't care about code-in

@nemesifier nemesifier merged commit b343af6 into openwisp:master Jan 15, 2018
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.

3 participants