Showing 161 of 251 total issues

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

    const expected = initialState({
      filter: {
        text: '',
        tags: ['HTML', 'JS'],
        language: '',
Severity: Minor
Found in __tests__/reduceres/snippets.spec.js and 1 other location - About 35 mins to fix
__tests__/reduceres/snippets.spec.js on lines 191..200

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 51.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <Settings>', () => {
  test('render Settings', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/content/Settings.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 6 locations. Consider refactoring.
Open

      return API.get(`${getApiUrl('/api/v3')}/gists/${action.payload.id}`)
        .set(_headers())
        .end((error, result) => {
          errorHandler(error, result);
          const lastModified = result.headers['last-modified'] || '';
Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 224..242
src/middlewares/gitHubAPI.js on lines 267..280
src/middlewares/gitHubAPI.js on lines 286..288
src/middlewares/gitHubAPI.js on lines 302..314
src/middlewares/gitHubAPI.js on lines 319..321

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <KeyBindings>', () => {
  test('render KeyBindings', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/KeyBindings.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 6 locations. Consider refactoring.
Open

      return API.delete(`${getApiUrl('/api/v3')}/gists/${action.payload.id}/star`)
        .set(_headers())
        .end((error, result) => {
          errorHandler(error, result);

Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 182..194
src/middlewares/gitHubAPI.js on lines 267..280
src/middlewares/gitHubAPI.js on lines 286..288
src/middlewares/gitHubAPI.js on lines 302..314
src/middlewares/gitHubAPI.js on lines 319..321

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 50.

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 6 locations. Consider refactoring.
Open

      API.patch(`${getApiUrl('/api/v3')}/gists/${action.payload.id}`)
        .set(_headers())
        .send(action.payload.snippet)
Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 182..194
src/middlewares/gitHubAPI.js on lines 224..242
src/middlewares/gitHubAPI.js on lines 267..280
src/middlewares/gitHubAPI.js on lines 302..314
src/middlewares/gitHubAPI.js on lines 319..321

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 50.

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 6 locations. Consider refactoring.
Open

      API.get(`${getApiUrl('/api/v3')}/gists/${action.payload.id}/comments`)
        .set(_headers())
        .end((error, result) => {
          errorHandler(error, result);

Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 182..194
src/middlewares/gitHubAPI.js on lines 224..242
src/middlewares/gitHubAPI.js on lines 267..280
src/middlewares/gitHubAPI.js on lines 286..288
src/middlewares/gitHubAPI.js on lines 319..321

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <Sidebar>', () => {
  test('render Sidebar', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/sidebar/Sidebar.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <EditorSettings>', () => {
  test('render EditorSettings', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/content/settings/Editor.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 6 locations. Consider refactoring.
Open

      API.delete(`${getApiUrl('/api/v3')}/gists/${action.payload.id}`)
        .set(_headers())
        .end((error, result) => {
          errorHandler(error, result);

Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 182..194
src/middlewares/gitHubAPI.js on lines 224..242
src/middlewares/gitHubAPI.js on lines 286..288
src/middlewares/gitHubAPI.js on lines 302..314
src/middlewares/gitHubAPI.js on lines 319..321

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 50.

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

    const expected = initialState({
      filter: {
        text: '',
        tags: ['HTML'],
        language: '',
Severity: Minor
Found in __tests__/reduceres/snippets.spec.js and 1 other location - About 30 mins to fix
__tests__/reduceres/snippets.spec.js on lines 180..189

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <About>', () => {
  test('render About', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/content/About.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <SnippetsSettings>', () => {
  test('render SnippetsSettings', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/content/settings/Snippets.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 6 locations. Consider refactoring.
Open

      API.post(`${getApiUrl('/api/v3')}/gists/${action.payload.id}/comments`)
        .set(_headers())
        .send({ body: action.payload.body })
Severity: Major
Found in src/middlewares/gitHubAPI.js and 5 other locations - About 30 mins to fix
src/middlewares/gitHubAPI.js on lines 182..194
src/middlewares/gitHubAPI.js on lines 224..242
src/middlewares/gitHubAPI.js on lines 267..280
src/middlewares/gitHubAPI.js on lines 286..288
src/middlewares/gitHubAPI.js on lines 302..314

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <Updater>', () => {
  test('render Updater', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/Updater.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <Languagelist>', () => {
  test('render Languagelist', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/common/Languagelist.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <NewSnippet>', () => {
  test('render NewSnippet', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/content/NewSnippet.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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

    const initial = initialState({
      filter: {
        text: '',
        tags: ['HTML'],
        language: '',
Severity: Minor
Found in __tests__/reduceres/snippets.spec.js and 1 other location - About 30 mins to fix
__tests__/reduceres/snippets.spec.js on lines 157..166

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <SubHeader>', () => {
  test('render SubHeader', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/headers/SubHeader.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15
__tests__/components/layout/sidebar/SnippetsList.spec.js on lines 9..15

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 50.

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 12 locations. Consider refactoring.
Open

describe('COMPONENTS - <SnippetsList>', () => {
  test('render SnippetsList', () => {
    const component = setup();

    expect(component).toMatchSnapshot();
Severity: Major
Found in __tests__/components/layout/sidebar/SnippetsList.spec.js and 11 other locations - About 30 mins to fix
__tests__/components/common/Languagelist.spec.js on lines 15..21
__tests__/components/layout/App.spec.js on lines 11..17
__tests__/components/layout/KeyBindings.spec.js on lines 5..11
__tests__/components/layout/Updater.js on lines 9..15
__tests__/components/layout/content/About.spec.js on lines 14..20
__tests__/components/layout/content/NewSnippet.spec.js on lines 19..25
__tests__/components/layout/content/Settings.spec.js on lines 9..15
__tests__/components/layout/content/settings/Editor.spec.js on lines 10..16
__tests__/components/layout/content/settings/Snippets.spec.js on lines 10..16
__tests__/components/layout/headers/SubHeader.spec.js on lines 9..15
__tests__/components/layout/sidebar/Sidebar.spec.js on lines 9..15

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 50.

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

Severity
Category
Status
Source
Language