JSHint
-
lib/api.js (Diff revision 1) Show all issues -
-
-
-
Review Request #9541 — Created Jan. 26, 2018 and submitted
Information | |
---|---|
david | |
student-sonar | |
master | |
4d18c72... | |
Reviewers | |
student-sonar | |
This change changes the server-side code in Sonar to use ES6 modules and
more idiomatic and consistent syntax. The only thing left that's still
usingmodule.exports
islib/schema
, which manipulates the exports at
runtime (something ES6 modules can't do). A future refactor will address
this.As part of this, I've updated the
aws-sdk
andmemjs
dependencies to
get newer versions which support promises. This allows us to move
entirely over to native promises, eliminating the Q library.
Went through the various functionality of the server and verified that
things work as expected.
Description | From | Last Updated |
---|---|---|
Col: 19 Missing 'new' prefix when invoking a constructor. |
![]() |
|
Col: 25 Missing 'new' prefix when invoking a constructor. |
![]() |
|
Col: 19 Missing 'new' prefix when invoking a constructor. |
![]() |
|
Col: 19 Missing 'new' prefix when invoking a constructor. |
![]() |
|
Col: 8 'https' is defined but never used. |
![]() |
|
export default ? Your description says module.exports is only required for lib/schema. (Same below). |
|
|
Is this a constructor (I see this.memoize). If so, why not use a class? |
|
|
export default ? |
|
|
export function init(mongoose) over module.exports ? |
|
|
Is this a constructor? Why not use a class here? |
|
lib/api.js (Diff revision 1) |
---|
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+281 -378) |
lib/api.js (Diff revision 2) |
---|
export default
? Your description saysmodule.exports
is only required forlib/schema
. (Same below).
lib/cache.js (Diff revision 2) |
---|
Is this a constructor (I see
this.memoize
). If so, why not use a class?
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+286 -383) |