Showing 3 of 11 total issues
Function rotate
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.rotateKeyForUser = function rotate (user, config) {
const { service, metadata } = parseMetadata(user),
iam = new Aws(),
report = {
status: 'started',
Function getCollector
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getCollector (collectorName, offset = 0) {
if (this.collector) {
return new Promise((resolve, reject) => resolve(this.collector));
}
Function publishReports
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function publishReports (reports, topicArn) {
const sns = new Aws.SNS();
let status = 'Success';
if (reports.some(r => r.status === 'error')) {