This commit is contained in:
Sebastian Mueller 2020-01-28 17:30:38 +01:00
commit 40458d8a01
2 changed files with 13 additions and 11 deletions

View File

@ -90,7 +90,7 @@ async function getStatus(uuid, embark) {
try {
const results = await armletClient.getIssues(uuid);
return ghettoReport(embark.logger.info, results);
return ghettoReport(embark.logger, results);
} catch (err) {
embark.logger.warn(err);
return 1;
@ -171,13 +171,13 @@ function ghettoReport(logger, results) {
});
if (issuesCount === 0) {
logger('No issues found');
logger.info('No issues found');
return 0;
}
for (const group of results) {
logger(group.sourceList.join(', ').underline);
logger.info(group.sourceList.join(', ').underline);
for (const issue of group.issues) {
logger(yaml.safeDump(issue, {'skipInvalid': true}));
logger.info(yaml.safeDump(issue, {'skipInvalid': true}));
}
}
return 1;

16
package-lock.json generated
View File

@ -183,10 +183,6 @@
"tweetnacl": "^0.14.3"
}
},
"bignumber.js": {
"version": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934",
"from": "git+https://github.com/frozeman/bignumber.js-nolookahead.git"
},
"bindings": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
@ -1746,9 +1742,9 @@
}
},
"lodash": {
"version": "4.17.11",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
"version": "4.17.14",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz",
"integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw=="
},
"lodash.camelcase": {
"version": "4.3.0",
@ -2672,6 +2668,12 @@
"utf8": "^2.1.1",
"xhr2": "*",
"xmlhttprequest": "*"
},
"dependencies": {
"bignumber.js": {
"version": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934",
"from": "git+https://github.com/frozeman/bignumber.js-nolookahead.git"
}
}
},
"whatwg-fetch": {