-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Fixed sonarjs lint warnings (#254)
* Fixed sonarjs/prefer-immediate-return warnings * Fixed eqeqeq warnings * Fixed sonarjs/no-collapsible-if warnings * Standardized expected exceptions in unit tests * Removed warnings report * Added standard exceptions.js * Added file links to keymaster-app * Refactored wallet exceptions * Refactored createDID exceptions * Consolidated gatekeeper exceptions * Consolidated keymaster exceptions * Added @babel dependency to remove warning * Consolidated poll exceptions * Consolidated more keymaster exceptions * Removed wallet exception * Fixed gk build * Fixed CLI error messages * Consolidated CLI status messages * Refactored isEmpty * Rephrased test descriptions * Refactored jest config * Removed last lint warning * Removed 'only-warn' from lint reporting
- Loading branch information
Showing
28 changed files
with
826 additions
and
682 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data/ | ||
keymaster-app/ | ||
src/kc-app/build/ | ||
src/keymaster-app/build/ |
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
cp src/exceptions.js src/keymaster-app/src | ||
cp src/keymaster-lib.js src/keymaster-app/src | ||
npm --prefix src/keymaster-app run build | ||
node src/gatekeeper-api.js |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const INVALID_DID = new Error('Invalid DID'); | ||
export const UNKNOWN_DID = new Error('Unknown DID'); | ||
export const UNKNOWN_ID = new Error('Unknown ID'); | ||
export const INVALID_UPDATE = new Error('Invalid update'); | ||
export const INVALID_OPERATION = new Error('Invalid operation'); | ||
export const INVALID_VERSION = new Error('Invalid version'); | ||
export const INVALID_TYPE = new Error('Invalid type'); | ||
export const INVALID_REGISTRY = new Error('Invalid registry'); | ||
export const INVALID_PARAMETER = new Error('Invalid parameter'); | ||
export const UPDATE_FAILED = new Error('Update failed'); | ||
export const EXPECTED_EXCEPTION = new Error('Expected to throw an exception'); |
Oops, something went wrong.