nfroidure/cloud-pages

View on GitHub
src/cloudpages.mocha.js

Summary

Maintainability
A
1 hr
Test Coverage

Similar blocks of code found in 2 locations. Consider refactoring.
Open

          assert.deepEqual(glob.args, [
            [
              'dist/**/*',
              {
                absolute: true,
Severity: Minor
Found in src/cloudpages.mocha.js and 1 other location - About 35 mins to fix
src/cloudpages.mocha.js on lines 82..93

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

          assert.deepEqual(glob.args, [
            [
              '../www/**/*',
              {
                absolute: true,
Severity: Minor
Found in src/cloudpages.mocha.js and 1 other location - About 35 mins to fix
src/cloudpages.mocha.js on lines 148..159

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 47.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Replace 'assert' with "assert"
Open

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

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

Replace '2010-03-06T00:00:00Z' with "2010-03-06T00:00:00Z"
Open

  const TEST_BASE_TIME = new Date('2010-03-06T00:00:00Z').getTime();
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

      lookup: sinon.stub(),
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

      getCommits: sinon.stub(),
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'E_VERSION_REQUIRED' with "E_VERSION_REQUIRED"
Open

          assert.equal(err.code, 'E_VERSION_REQUIRED');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ········ with ······
Open

        const SIX_DAYS = 6 * 24 * 60 * 60 * 1000;
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··message:·'3.0.0·(tag:·v3.0.0)', with message:·"3.0.0·(tag:·v3.0.0)"
Open

              message: '3.0.0 (tag: v3.0.0)',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············message:·'3.0.0·(tag:·v3.0.0)', with ············message:·"3.0.0·(tag:·v3.0.0)"
Open

              message: '3.0.0 (tag: v3.0.0)',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'E_NO_FILES' with "E_NO_FILES"
Open

          assert.equal(err.code, 'E_NO_FILES');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··message:·'3.0.0·(tag:·v3.0.0)', with message:·"3.0.0·(tag:·v3.0.0)"
Open

              message: '3.0.0 (tag: v3.0.0)',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              time: TEST_BASE_TIME - SIX_DAYS * 2,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'function' with "function"
Open

      assert.equal(typeof cloudPages, 'function');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace '1.0.0', with "1.0.0"
Open

        version: '1.0.0',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace '../www', with "../www"
Open

        dir: '../www',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        git.getCommits.returns(
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'time' with "time"
Open

    $.constant('time', sinon.stub().returns(TEST_BASE_TIME));
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············tag:·'v3.0.1' with ············tag:·"v3.0.1"
Open

              tag: 'v3.0.1',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'log' with "log"
Open

    $.constant('log', sinon.stub());
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············message:·'3.0.0·(tag:·v3.0.0)', with ············message:·"3.0.0·(tag:·v3.0.0)"
Open

              message: '3.0.0 (tag: v3.0.0)',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'should·fail·with·no·dir' with "should·fail·with·no·dir"
Open

  it('should fail with no dir', () =>
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

          keep: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        s3.putBucketWebsiteAsync.returns(Promise.resolve());
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        return cloudPages({
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'ENV' with "ENV"
Open

    $.constant('ENV', {});
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

      createReadStream: sinon.stub(),
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'git' with "git"
Open

    $.constant('git', {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 's3' with "s3"
Open

    $.constant('s3', {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'should·fail·with·no·files·found' with "should·fail·with·no·files·found"
Open

  it('should fail with no files found', () =>
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ········glob.returns(Promise.resolve(['./index.html' with ······glob.returns(Promise.resolve(["./index.html"
Open

        glob.returns(Promise.resolve(['./index.html']));
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············hash:·'1fb2cd74a2f3957263d57de06962d19045769890' with ············hash:·"1fb2cd74a2f3957263d57de06962d19045769890"
Open

              hash: '1fb2cd74a2f3957263d57de06962d19045769890',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'lol' with "lol"
Open

      ENV.AWS_S3_BUCKET = 'lol';
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

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

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

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

Replace 'should·init·well' with "should·init·well"
Open

  it('should init well', () =>
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        s3.putObjectAsync.returns(Promise.resolve());
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'E_NOT_SUPPOSED_TO_BE_HERE' with "E_NOT_SUPPOSED_TO_BE_HERE"
Open

          throw new YError('E_NOT_SUPPOSED_TO_BE_HERE');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Replace 'E_DIR_REQUIRED' with "E_DIR_REQUIRED"
Open

          assert.equal(err.code, 'E_DIR_REQUIRED');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··tag:·'v3.0.0' with tag:·"v3.0.0"
Open

              tag: 'v3.0.0',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace '../www' with "../www"
Open

                dir: '../www',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'cloudPages' with "cloudPages"
Open

    $.run(['cloudPages']).then(({ cloudPages }) => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··tag:·'v2.0.0' with tag:·"v2.0.0"
Open

              tag: 'v2.0.0',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

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

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

Replace ··hash:·'1fb2cd74a2f3957263d57de06962d19045769890' with hash:·"1fb2cd74a2f3957263d57de06962d19045769890"
Open

              hash: '1fb2cd74a2f3957263d57de06962d19045769890',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··ENV.AWS_S3_BUCKET·=·'lol' with ENV.AWS_S3_BUCKET·=·"lol"
Open

        ENV.AWS_S3_BUCKET = 'lol';
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ········fs.createReadStream.returns('read-stream' with ······fs.createReadStream.returns("read-stream"
Open

        fs.createReadStream.returns('read-stream');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ········mime.lookup.returns('text/plain' with ······mime.lookup.returns("text/plain"
Open

        mime.lookup.returns('text/plain');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············hash:·'1fb2cd74a2f3957263d57de06962d19045769890' with ············hash:·"1fb2cd74a2f3957263d57de06962d19045769890"
Open

              hash: '1fb2cd74a2f3957263d57de06962d19045769890',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············hash:·'1fb2cd74a2f3957263d57de06962d19045769890' with ············hash:·"1fb2cd74a2f3957263d57de06962d19045769890"
Open

              hash: '1fb2cd74a2f3957263d57de06962d19045769890',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··}, with }
Open

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

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

Replace './cloudpages' with "./cloudpages"
Open

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

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

Delete ,
Open

      putBucketAclAsync: sinon.stub(),
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'ENV',·'cloudPages',·'glob',·'git',·'s3',·'fs',·'mime']).then(⏎······ with ⏎······"ENV",⏎······"cloudPages",⏎······"glob",⏎······"git",⏎······"s3",⏎······"fs",⏎······"mime"⏎····]).then(
Open

    $.run(['ENV', 'cloudPages', 'glob', 'git', 's3', 'fs', 'mime']).then(
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Replace 'sinon' with "sinon"
Open

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

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

Replace 'cloudPages' with "cloudPages"
Open

describe('cloudPages', () => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'fs' with "fs"
Open

    $.constant('fs', {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'lol' with "lol"
Open

      ENV.AWS_S3_BUCKET = 'lol';
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace '1.0.0' with "1.0.0"
Open

        version: '1.0.0',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              time: TEST_BASE_TIME - SIX_DAYS / 3,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              time: TEST_BASE_TIME - SIX_DAYS / 2,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            last: 1,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'ENV',·'cloudPages' with "ENV",·"cloudPages"
Open

    $.run(['ENV', 'cloudPages']).then(({ ENV, cloudPages }) => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'ENV',·'cloudPages' with "ENV",·"cloudPages"
Open

    $.run(['ENV', 'cloudPages']).then(({ ENV, cloudPages }) => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              time: TEST_BASE_TIME - SIX_DAYS / 4,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Delete ··
Open

        );
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'knifecycle' with "knifecycle"
Open

const Knifecycle = require('knifecycle').default;
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'lol' with "lol"
Open

      ENV.AWS_S3_BUCKET = 'lol';
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'E_NOT_SUPPOSED_TO_BE_HERE' with "E_NOT_SUPPOSED_TO_BE_HERE"
Open

          throw new YError('E_NOT_SUPPOSED_TO_BE_HERE');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

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

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

Delete ··
Open

          Promise.resolve([
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'mime' with "mime"
Open

    $.constant('mime', {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ,
Open

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

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

Replace 'should·work·with·a·file·found' with "should·work·with·a·file·found"
Open

  it('should work with a file found', () =>
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        s3.putBucketAclAsync.returns(Promise.resolve());
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ············ with ··········
Open

            {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'ENV',·'cloudPages',·'glob' with "ENV",·"cloudPages",·"glob"
Open

    $.run(['ENV', 'cloudPages', 'glob']).then(({ ENV, cloudPages, glob }) => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

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

              '../www/**/*',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··tag:·'v2.0.0' with tag:·"v2.0.0"
Open

              tag: 'v2.0.0',
Severity: Minor
Found in src/cloudpages.mocha.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.mocha.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.mocha.js by eslint

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

Replace 'glob' with "glob"
Open

    $.constant('glob', sinon.stub());
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'should·fail·with·no·version' with "should·fail·with·no·version"
Open

  it('should fail with no version', () =>
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace 'E_NOT_SUPPOSED_TO_BE_HERE' with "E_NOT_SUPPOSED_TO_BE_HERE"
Open

          throw new YError('E_NOT_SUPPOSED_TO_BE_HERE');
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Replace ············delay:·SIX_DAYS, with ··········delay:·SIX_DAYS
Open

            delay: SIX_DAYS,
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··ignore:·'node_modules/**/*' with ignore:·"node_modules/**/*"
Open

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

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

Delete ··
Open

        }).then(() => {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··Bucket:·'lol' with Bucket:·"lol"
Open

                Bucket: 'lol',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··········dir:·'./dist' with ········dir:·"./dist"
Open

          dir: './dist',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··················], with ················]
Open

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

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

Delete ··
Open

            [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············}, with ············}
Open

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

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

Replace ·········· with ········
Open

          ]);
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ················ContentType:·'text/plain' with ··············ContentType:·"text/plain"
Open

                ContentType: 'text/plain',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

          assert.deepEqual(s3.putBucketWebsiteAsync.args, [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

                      Redirect: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··········version:·'1.0.0', with ········version:·"1.0.0"
Open

          version: '1.0.0',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Replace ················Key:·'index.html', with ··············Key:·"index.html"
Open

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

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

Delete ··
Open

            [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ············], with ··········]
Open

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

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

Delete ··
Open

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

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

Delete ··
Open

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

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

Replace ··}, with }
Open

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

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

Delete ··
Open

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

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

Replace ············], with ··········]
Open

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

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

Delete ··
Open

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

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

Replace ············], with ··········]
Open

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

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

Delete ··
Open

          assert.deepEqual(s3.putBucketAclAsync.args, [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

                    {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

          assert.deepEqual(s3.putObjectAsync.args, [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ················Body:·'read-stream' with ··············Body:·"read-stream"
Open

                Body: 'read-stream',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············}, with ············}
Open

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

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

Replace ················Bucket:·'lol' with ··············Bucket:·"lol"
Open

                Bucket: 'lol',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ····················Suffix:·'index.html', with ··················Suffix:·"index.html"
Open

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

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

Replace ··········files:·'**/*' with ········files:·"**/*"
Open

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

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

Replace ·············· with ············
Open

              {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

            [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

                WebsiteConfiguration: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

                  IndexDocument: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

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

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

Delete ··
Open

                      Condition: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ························ReplaceKeyWith:·'1.0.0/index.html', with ······················ReplaceKeyWith:·"1.0.0/index.html"
Open

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

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

Delete ··
Open

          assert.deepEqual(glob.args, [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ················dir:·'./dist' with ··············dir:·"./dist"
Open

                dir: './dist',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··············}, with ············}
Open

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

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

Replace ····················Key:·'1.0.0/index.html', with ··················Key:·"1.0.0/index.html"
Open

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

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

Delete ··
Open

          ]);
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

                  ErrorDocument: {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ······}⏎···· with ····}
Open

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

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

Replace ················nodir:·true, with ··············nodir:·true
Open

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

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

Replace ··}, with }
Open

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

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

Delete ··
Open

                  RoutingRules: [
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··········gitDir:·'.' with ········gitDir:·"."
Open

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

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

Replace ··'dist/**/*' with "dist/**/*"
Open

              'dist/**/*',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

          ]);
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

              {
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ··KeyPrefixEquals:·'/index.html', with KeyPrefixEquals:·"/index.html"
Open

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

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

Replace ······················}, with ····················}
Open

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

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

Replace ··ignore:·'dist/node_modules/**/*' with ignore:·"dist/node_modules/**/*"
Open

                ignore: 'dist/node_modules/**/*',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ················ACL:·'public-read' with ··············ACL:·"public-read"
Open

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

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

Delete ··
Open

          ]);
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Delete ··
Open

        });
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ············], with ··········]
Open

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

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

Replace ················ACL:·'public-read' with ··············ACL:·"public-read"
Open

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

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

Replace ················Bucket:·'lol', with ··············Bucket:·"lol"
Open

                Bucket: 'lol',
Severity: Minor
Found in src/cloudpages.mocha.js by eslint

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

Replace ····················}, with ··················}
Open

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

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

There are no issues that match your filters.

Category
Status