MichalKononenko/OmicronClient

View on GitHub

Showing 128 of 128 total issues

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

    describe("action creator", () => {
        it("Should create the action", () => {
            expect(send_logout_request()).toEqual(
                {type: SEND_LOGOUT_REQUEST}
            )
Severity: Major
Found in src/auth/__tests__/test_logout.js and 4 other locations - About 45 mins to fix
src/auth/__tests__/test_login.js on lines 16..20
src/auth/__tests__/test_logout.js on lines 17..21
src/auth/__tests__/test_logout.js on lines 71..75
src/containers/__tests__/test_http_request.js on lines 119..123

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

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

            projects: [
                {
                    "name": "test_project",
                    "description": "Delete this before checkin",
                    "date_created": 1457022439084,
Severity: Minor
Found in src/store.js and 1 other location - About 45 mins to fix
src/store.js on lines 123..136

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

describe("run_test_action", () => {
    it("Should return the correct action", () => {
        expect(run_test()).toEqual({type: RUN_TEST});
    })
});
Severity: Major
Found in src/containers/__tests__/test_http_request.js and 4 other locations - About 45 mins to fix
src/auth/__tests__/test_login.js on lines 16..20
src/auth/__tests__/test_logout.js on lines 17..21
src/auth/__tests__/test_logout.js on lines 47..53
src/auth/__tests__/test_logout.js on lines 71..75

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

        axios({
            url: state.omicron_api.url + '/tokens',
            method: "DELETE",
            headers: state.omicron_api.headers
        }).then(
Severity: Minor
Found in src/auth/logout.js and 1 other location - About 35 mins to fix
src/auth/login.js on lines 189..198

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

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

        axios({
            url:state.omicron_api.url + '/tokens',
            method: "POST",
            headers: state.omicron_api.headers
        }).then(
Severity: Minor
Found in src/auth/login.js and 1 other location - About 35 mins to fix
src/auth/logout.js on lines 123..138

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

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

Rule doesn't have all its properties in alphabetical order.
Open

.username-header-text {
Severity: Minor
Found in static/css/components/header.css by csslint

Don't use IDs in selectors.
Open

#loading_spinner {

Heading (h2) should not be qualified.
Open

.marketing h2 {
Severity: Minor
Found in static/css/dashboard/dashboard.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

    .navbar-wrapper .navbar {
Severity: Minor
Found in static/css/dashboard/dashboard.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.nav-sidebar > li > a {
Severity: Minor
Found in static/css/dashboard/userdash.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.sub-header {
Severity: Minor
Found in static/css/dashboard/userdash.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.footer-text {
Severity: Minor
Found in static/css/components/footer.css by csslint

Don't use IDs in selectors.
Open

#footer_github_logo {
Severity: Minor
Found in static/css/components/footer.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.masthead-nav > .active > a,
Severity: Minor
Found in static/css/cover.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

    .main {
Severity: Minor
Found in static/css/dashboard/userdash.css by csslint

Parsing error: The keyword 'import' is reserved
Open

import Reducer, {reducer_factory} from '../reducer';
Severity: Minor
Found in src/auth/logout.js by eslint

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

Parsing error: The keyword 'import' is reserved
Open

import React from 'react';
Severity: Minor
Found in src/components/http_request.js by eslint

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

Parsing error: The keyword 'import' is reserved
Open

import React from 'react';
Severity: Minor
Found in src/containers/projects.js by eslint

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

Rule doesn't have all its properties in alphabetical order.
Open

#footer_github_logo {
Severity: Minor
Found in static/css/components/footer.css by csslint

Rule doesn't have all its properties in alphabetical order.
Open

.marketing .col-lg-4 p {
Severity: Minor
Found in static/css/dashboard/dashboard.css by csslint
Severity
Category
Status
Source
Language