nfroidure/cloud-pages

View on GitHub
src/cloudpages.js

Summary

Maintainability
A
0 mins
Test Coverage

Delete ,
Open

    bucket,
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Sending·file:' with "debug",·"Sending·file:"
Open

              log('debug', 'Sending file:', file, key);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'File·sent:' with "debug",·"File·sent:"
Open

                  log('debug', 'File sent:', file, key);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Website·rules·set.' with "debug",·"Website·rules·set."
Open

          log('debug', 'Website rules set.');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'info',·'Deploying·' with "info",·"Deploying·"
Open

      log('info', 'Deploying ' + version);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

        absolute: true,
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_SCAN_FAILURE' with "E_SCAN_FAILURE"
Open

          throw YError.wrap(err, 'E_SCAN_FAILURE', pattern);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'public-read', with "public-read"
Open

          ACL: 'public-read',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'info',·'Seeking·for·old·versions·to·remove.' with "info",·"Seeking·for·old·versions·to·remove."
Open

      log('info', 'Seeking for old versions to remove.');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'ENV',·'glob',·'fs',·'log',·'s3',·'mime',·'git',·'time' with "ENV",·"glob",·"fs",·"log",·"s3",·"mime",·"git",·"time"
Open

  dependencies = ['ENV', 'glob', 'fs', 'log', 's3', 'mime', 'git', 'time']
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'yerror' with "yerror"
Open

const YError = require('yerror');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'stack',·'Stack:' with "stack",·"Stack:"
Open

          log('stack', 'Stack:', err.stack);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_DIR_REQUIRED' with "E_DIR_REQUIRED"
Open

        throw new YError('E_DIR_REQUIRED', typeof dir, dir);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_BUCKET_REQUIRED' with "E_BUCKET_REQUIRED"
Open

        throw new YError('E_BUCKET_REQUIRED', typeof bucket, bucket);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

            Objects: objects.Contents.map(({ Key }) => ({ Key })),
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_S3_UPLOAD_ERROR' with "E_S3_UPLOAD_ERROR"
Open

              throw YError.wrap(err, 'E_S3_UPLOAD_ERROR', file, key);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

              },
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

          },
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '/index.html', with "/index.html"
Open

              Key: version + '/index.html',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Files·' with "debug",·"Files·"
Open

      log('debug', 'Files ', objects);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'string' with "string"
Open

      if ('string' !== typeof version) {
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '/index.html', with "/index.html"
Open

                  KeyPrefixEquals: '/index.html',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_VERSION_REQUIRED' with "E_VERSION_REQUIRED"
Open

        throw new YError('E_VERSION_REQUIRED', typeof version, version);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '·versions·to·potentially·remove.' with "·versions·to·potentially·remove."
Open

            ' versions to potentially remove.'
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

                  ContentType: mime.lookup(file),
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'string' with "string"
Open

      if ('string' !== typeof bucket) {
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'info',·'Successfully·deployed·' with "info",·"Successfully·deployed·"
Open

      log('info', 'Successfully deployed ' + version);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'Found·' with "Found·"
Open

          'Found ' +
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'path' with "path"
Open

const path = require('path');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

            ],
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

          },
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '.git/**/*' with ".git/**/*"
Open

    ignore = '.git/**/*',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Files:' with "debug",·"Files:"
Open

          log('debug', 'Files:', files);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'public-read' with "public-read"
Open

                  ACL: 'public-read',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Bucket·ACLs·set.' with "debug",·"Bucket·ACLs·set."
Open

          log('debug', 'Bucket ACLs set.');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '/index.html', with "/index.html"
Open

                  ReplaceKeyWith: version + '/index.html',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug' with "debug"
Open

  log('debug', 'Listing objects for version "' + commit.tag + '"');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Succesfully·scanned·files' with "debug",·"Succesfully·scanned·files"
Open

          log('debug', 'Succesfully scanned files', pattern);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'string' with "string"
Open

      if ('string' !== typeof dir) {
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'error',·'Directory·scan·failure:' with "error",·"Directory·scan·failure:"
Open

          log('error', 'Directory scan failure:', pattern);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug' with "debug"
Open

          'debug',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '/', with "/"
Open

      Prefix: commit.tag + '/',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'info' with "info"
Open

        log('info', 'No objects found for version "' + commit.tag + '"');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'E_NO_FILES' with "E_NO_FILES"
Open

            throw new YError('E_NO_FILES', pattern);
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Setting·up·the·bucket·ACLs.' with "debug",·"Setting·up·the·bucket·ACLs."
Open

      log('debug', 'Setting up the bucket ACLs.');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'debug',·'Setting·up·the·website·rules.' with "debug",·"Setting·up·the·website·rules."
Open

      log('debug', 'Setting up the website rules.');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ,
Open

                },
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'info' with "info"
Open

      log('info', 'Removing objects for version "' + commit.tag + '"');
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'use·strict' with "use·strict"
Open

'use strict';
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'cloudPages' with "cloudPages"
Open

  name = 'cloudPages',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace '**/*' with "**/*"
Open

    files = '**/*',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'index.html', with "index.html"
Open

              Suffix: 'index.html',
Severity: Minor
Found in src/cloudpages.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

There are no issues that match your filters.

Category
Status