fix: Update SWC registry URL in analysis output

This commit is contained in:
emizzle 2020-04-07 19:22:30 +10:00 committed by Eric Mastro
parent 0d59ef9587
commit 27e8288fbf
2 changed files with 4 additions and 4 deletions

View File

@ -42,9 +42,9 @@ Retrieving Hack analysis results...
Rendering Bank analysis report...
Bank.sol
18:12 error persistent state read after call https://swcregistry.io/SWC-registry/docs/SWC-107
14:28 warning A call to a user-supplied address is executed https://swcregistry.io/SWC-registry/docs/SWC-107
1:0 warning A floating pragma is set https://swcregistry.io/SWC-registry/docs/SWC-103
18:12 error persistent state read after call https://swcregistry.io/docs/SWC-107
14:28 warning A call to a user-supplied address is executed https://swcregistry.io/docs/SWC-107
1:0 warning A floating pragma is set https://swcregistry.io/docs/SWC-103
<unknown>
-1:0 warning You are running MythX in free mode. Analysis depth is limited in this mode so some issues might not be detected. Upgrade to a Dev or Pro plan to unlock in-depth analysis and higher rate limits. https://mythx.io/plans N/A

View File

@ -145,7 +145,7 @@ export default class ReportController extends Controller {
*/
private issue2EsLint(issue: any, sourceCode: string, locations: any) {
const swcLink = issue.swcID
? 'https://swcregistry.io/SWC-registry/docs/' + issue.swcID
? 'https://swcregistry.io/docs/' + issue.swcID
: 'N/A';
const esIssue = {