Cimpress-MCP/felix

View on GitHub

Showing 3 of 11 total issues

Function rotate has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports.rotateKeyForUser = function rotate (user, config) {
  const { service, metadata } = parseMetadata(user),
    iam = new Aws(),
    report = {
      status: 'started',
Severity: Major
Found in lib/felix.js - About 2 hrs to fix

    Function getCollector has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      getCollector (collectorName, offset = 0) {
        if (this.collector) {
          return new Promise((resolve, reject) => resolve(this.collector));
        }
    
    
    Severity: Minor
    Found in lib/plugins/sumologic.js - About 1 hr to fix

      Function publishReports has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function publishReports (reports, topicArn) {
        const sns = new Aws.SNS();
      
        let status = 'Success';
        if (reports.some(r => r.status === 'error')) {
      Severity: Minor
      Found in handler.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language