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

Address vulnerabilities found by retire.js #758

Merged
merged 5 commits into from
Mar 3, 2018
Merged

Address vulnerabilities found by retire.js #758

merged 5 commits into from
Mar 3, 2018

Conversation

marcysutton
Copy link
Contributor

@marcysutton marcysutton commented Mar 2, 2018

I did a bunch of work to get our build passing again, including updating to eslint from jshint. There were a lot of mixed spaces and tabs, and I went for tabs because our contributing document says "we prefer tabs over spaces." I used the polyjuice package to convert our jshint config files to eslint. There may still be some redundancies, but I already spent more time on this than I'd like.

There are still a few things to do:

  • Update grunt-contrib-watch, which has an issue filed: Security vulnerability in [email protected] gruntjs/grunt-contrib-watch#554
  • Check up on ignored dependencies, including hawk, cryptiles, boom, sntp and hoek, which are sub-dependencies of retire.js itself (which we previously added to retireignore.json)
  • Migrate to headless Chrome from Phantomjs-prebuilt, which isn't likely to be updated

@marcysutton
Copy link
Contributor Author

Flaky build! ugh.

 >> Running "test-webdriver:chrome" (test-webdriver) task
    >> >> ScriptTimeoutError: asynchronous script timeout: result was not received in 60 seconds
    >> >>   (Session info: chrome=64.0.3282.140)
    >> >>   (Driver info: chromedriver=2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881),platform=Linux 4.4.0-111-generic x86_64)
    >> Warning: Task "test-webdriver:chrome" failed.� Use --force to continue.
    >> 
    >> Aborted due to warnings.
    Warning: Task "parallel:browser-test" failed.� Use --force to continue.

Maybe someone else could try rebuilding this later, it failed for me twice in a row and is completely unrelated to these changes.

@@ -1,33 +1,33 @@
/*jshint node: true */
/*eslint-env node */
Copy link
Contributor

Choose a reason for hiding this comment

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

This file has a bunch of mixed spaces / tabs

@@ -73,7 +74,7 @@ function convertAttributes (atts) {
case '|=' :
regexp = new RegExp('^'+ escapeRegExp(attributeValue) +'(-|$)');
break;
case '=' :
case '=' :
Copy link
Contributor

Choose a reason for hiding this comment

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

That should not be a tab.

@@ -88,7 +89,7 @@ function convertAttributes (atts) {
return attributeValue !== value;
};
break;
default :
default :
Copy link
Contributor

Choose a reason for hiding this comment

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

Double space?

shadowId: 'a',
children: [{
actualNode: new Vnode('ul'),
actualNode: new Vnode('li', 'breaking'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this test change?

assert(false, 'there are no ' + collection);
return;
}
.forEach(function (selector) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You used spaces instead of a tab in this file.

@WilcoFiers
Copy link
Contributor

Third time's the charm :). I'm merging, since we need this so that other PRs can pass.

@WilcoFiers WilcoFiers merged commit aa074fe into develop Mar 3, 2018
@WilcoFiers WilcoFiers deleted the fix-vulns branch March 3, 2018 14:36
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