This repository was archived by the owner on May 22, 2021. It is now read-only.
Merged
Conversation
Contributor
Author
|
This should get us most of the way there... Currently, running $ npm run lint:html
> portal-alpha@1.0.0 lint:html /Users/pdehaan/dev/github/mozilla/something-awesome
> htmllint 'views/*.handlebars'
views/index.handlebars: line 54, col 13, the id "upload-img" is already in use
[htmllint] found 1 errors out of 2 filesAnd running npm run lint:js
> portal-alpha@1.0.0 lint:js /Users/pdehaan/dev/github/mozilla/something-awesome
> eslint .
/Users/pdehaan/dev/github/mozilla/something-awesome/frontend/src/download.js
32:9 warning Unexpected console statement no-console
/Users/pdehaan/dev/github/mozilla/something-awesome/frontend/src/fileSender.js
26:11 warning Unexpected console statement no-console
28:11 warning Unexpected console statement no-console
/Users/pdehaan/dev/github/mozilla/something-awesome/server/portal_server.js
32:3 warning Found fs.exists with non literal argument at index 0
32: storage.exists(id).then(doesExist => { security/detect-non-literal-fs-filename
/Users/pdehaan/dev/github/mozilla/something-awesome/server/storage.js
61:5 warning Found fs.exists with non literal argument at index 0
61: redis_client.exists(id, (rediserr, reply) => { security/detect-non-literal-fs-filename
70:15 warning Found fs.statSync with non literal argument at index 0
70: resolve(fs.statSync(path.join(__dirname, '../static', id)).size); security/detect-non-literal-fs-filename
78:10 warning Found fs.createReadStream with non literal argument at index 0
78: return fs.createReadStream(path.join(__dirname, '../static', id)); security/detect-non-literal-fs-filename
83:21 warning Found fs.createWriteStream with non literal argument at index 0
83: const fstream = fs.createWriteStream(path.join(__dirname, '../static', id)); security/detect-non-literal-fs-filename
108:17 warning Found fs.unlinkSync with non literal argument at index 0
108: resolve(fs.unlinkSync(path.join(__dirname, '../static', id))); security/detect-non-literal-fs-filename
117:13 warning Found fs.unlinkSync with non literal argument at index 0
117: resolve(fs.unlinkSync(path.join(__dirname, '../static', id))); security/detect-non-literal-fs-filename
✖ 10 problems (0 errors, 10 warnings)r? @dannycoates |
Closed
Contributor
Author
|
Filed one outstanding HTMLLint bug as #82 since it may require a bit of refactorizationment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #76