stanwood/Stanwood_Debugger_iOS

View on GitHub

Showing 87 of 106 total issues

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

            red   = CGFloat(strtoul(String(chars[2...3]), nil, 16)) / 255
Severity: Major
Found in Sources/Harlow/Extensions/UIColor+Extension.swift and 3 other locations - About 35 mins to fix
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 64..64
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 66..66
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 67..67

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

            blue  = CGFloat(strtoul(String(chars[6...7]), nil, 16)) / 255
Severity: Major
Found in Sources/Harlow/Extensions/UIColor+Extension.swift and 3 other locations - About 35 mins to fix
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 64..64
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 65..65
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 66..66

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

            green = CGFloat(strtoul(String(chars[4...5]), nil, 16)) / 255
Severity: Major
Found in Sources/Harlow/Extensions/UIColor+Extension.swift and 3 other locations - About 35 mins to fix
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 64..64
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 65..65
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 67..67

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

            alpha = CGFloat(strtoul(String(chars[0...1]), nil, 16)) / 255
Severity: Major
Found in Sources/Harlow/Extensions/UIColor+Extension.swift and 3 other locations - About 35 mins to fix
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 65..65
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 66..66
Sources/Harlow/Extensions/UIColor+Extension.swift on lines 67..67

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

    static var isEnabled: Bool = true {
        didSet {
            switch isEnabled {
            case true:
                DebuggerCrash.register()
Severity: Minor
Found in Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift and 2 other locations - About 35 mins to fix
Sources/Harlow/Controller/LogManagers/DebuggerNSError.swift on lines 58..67
Sources/Harlow/Controller/LogManagers/DebuggerNetworking.swift on lines 70..79

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

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

//
//  SettingsActionable.swift
//
//  The MIT License (MIT)
//
Severity: Major
Found in Sources/Harlow/Modules/Settings/SettingsActionable.swift and 4 other locations - About 35 mins to fix
Sources/Harlow/Modules/Settings/SettingsActionable.swift on lines 1..122
Sources/Harlow/Modules/Settings/SettingsActionable.swift on lines 1..122
Sources/Harlow/Modules/Settings/SettingsActionable.swift on lines 1..122
Sources/Harlow/Modules/Settings/SettingsActionable.swift on lines 1..122

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

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

    static var isEnabled: Bool = true {
        didSet {
            switch isEnabled {
            case true:
                DebuggerNSError.register()
Severity: Minor
Found in Sources/Harlow/Controller/LogManagers/DebuggerNSError.swift and 2 other locations - About 35 mins to fix
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 50..59
Sources/Harlow/Controller/LogManagers/DebuggerNetworking.swift on lines 70..79

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

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

    static var isEnabled: Bool = true {
        didSet {
            switch isEnabled {
            case true:
                DebuggerNetworking.register()
Severity: Minor
Found in Sources/Harlow/Controller/LogManagers/DebuggerNetworking.swift and 2 other locations - About 35 mins to fix
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 50..59
Sources/Harlow/Controller/LogManagers/DebuggerNSError.swift on lines 58..67

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

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

    var formattedDate: String {
        let format = "HH:mm:ss"
        let dateFormat = DateFormatter()
        dateFormat.dateFormat = format
        return dateFormat.string(from: date)
Severity: Minor
Found in Sources/Harlow/Model/Tyepable/CrashItem.swift and 1 other location - About 35 mins to fix
Sources/Harlow/Model/Tyepable/NetworkItem.swift on lines 81..86

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

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

    var formattedDate: String {
        let format = "HH:mm:ss"
        let dateFormat = DateFormatter()
        dateFormat.dateFormat = format
        return dateFormat.string(from: requestDate)
Severity: Minor
Found in Sources/Harlow/Model/Tyepable/NetworkItem.swift and 1 other location - About 35 mins to fix
Sources/Harlow/Model/Tyepable/CrashItem.swift on lines 92..97

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

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

    static var shouldStoreNetworkingData: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var didReceiveCrash: Bool {
        get {
            return defaults.bool(forKey: #function)
        }

Severity: Major
Found in Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var shouldStoreCrashesData: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var shouldStoreLogsData: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var shouldStoreAnalyticsData: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var isHintShown: Bool {
        get { return standard.bool(forKey: #function) }
        set { standard.set(newValue, forKey: #function) }
    }
Severity: Major
Found in Sources/Harlow/Extensions/UserDefaults+Keys.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46

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

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

    static var isDebuggerItemIconsAnimationEnabled: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var shouldStoreErrorData: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 99..107
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    static var isDebuggerBubblePulseAnimationEnabled: Bool {
        get {
            return defaults.bool(forKey: #function)
        }
        
Severity: Major
Found in Sources/Harlow/Controller/DebuggerSettings.swift and 8 other locations - About 35 mins to fix
Sources/Harlow/Controller/DebuggerSettings.swift on lines 49..57
Sources/Harlow/Controller/DebuggerSettings.swift on lines 59..67
Sources/Harlow/Controller/DebuggerSettings.swift on lines 69..77
Sources/Harlow/Controller/DebuggerSettings.swift on lines 79..87
Sources/Harlow/Controller/DebuggerSettings.swift on lines 89..97
Sources/Harlow/Controller/DebuggerSettings.swift on lines 109..117
Sources/Harlow/Controller/LogManagers/DebuggerCrash.swift on lines 38..46
Sources/Harlow/Extensions/UserDefaults+Keys.swift on lines 12..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 43.

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

    required init(actions: NetworkingActionable, parameters: NetworkingParameterable, view: NetworkingViewable) {
        self.view = view
        self.actions = actions
        self.parameters = parameters
    }
Severity: Major
Found in Sources/Harlow/Modules/NetworkCall/NetworkingPresenter.swift and 3 other locations - About 30 mins to fix
Sources/Harlow/Modules/CrashDetail/CrashPresenter.swift on lines 51..55
Sources/Harlow/Modules/DataDetail/DataDetailPresenter.swift on lines 49..53
Sources/Harlow/Modules/ErrorDetail/ErrorPresenter.swift on lines 50..54

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

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