weareopensource/Swift

View on GitHub

Showing 61 of 398 total issues

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

        buttonSignin.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(140)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view).offset(80)
            make.top.equalTo(self.inputPassword.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 135..140

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

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

        buttonSignup.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(140)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view).offset(-80)
            make.top.equalTo(self.inputPassword.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 141..146

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

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

        labelErrors.snp.makeConstraints {  (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.bottom.equalTo(self.inputEmail.snp.top).offset(-10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        inputLastName.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputFirstName.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        buttonSignup.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.progressPassword.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153

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

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

        inputPassword.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputEmail.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        labelErrors.snp.makeConstraints {  (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.bottom.equalTo(self.inputFirstName.snp.top).offset(-10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        progressPassword.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(5)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputPassword.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        inputPassword.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputEmail.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        inputEmail.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputLastName.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        labelSuccess.snp.makeConstraints { (make) -> Void in
            make.left.equalTo(25)
            make.right.equalTo(-25)
            make.centerX.equalTo(self.view)
            make.bottom.equalTo(self.inputEmail.snp.top).offset(-10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        labelErrors.snp.makeConstraints {  (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.bottom.equalTo(self.inputEmail.snp.top).offset(-10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 115..120
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

        buttonReset.snp.makeConstraints { (make) -> Void in
            make.width.equalTo(300)
            make.height.equalTo(50)
            make.centerX.equalTo(self.view)
            make.top.equalTo(self.inputEmail.snp.bottom).offset(10)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 93..98
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 100..105
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 112..117
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 128..133
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 114..119
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 130..135
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 136..141
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 142..147
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 148..153
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 155..160

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

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

    let inputPassword = CoreUITextField().then {
        $0.autocorrectionType = .no
        $0.placeholder = L10n.authPassword + "..."
        $0.autocapitalizationType = .none
        $0.returnKeyType = .done
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 42..50

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

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

    let inputPassword = CoreUITextField().then {
        $0.autocorrectionType = .no
        $0.placeholder = L10n.authPassword + "..."
        $0.autocapitalizationType = .none
        $0.returnKeyType = .done
waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 33..42

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

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

        reactor.state
            .map { $0.isDismissed }
            .distinctUntilChanged()
            .filter { $0 }
            .observe(on: MainScheduler.asyncInstance)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 207..215
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 306..314
waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 131..139
waosSwift/modules/users/controllers/UserMoreController.swift on lines 176..184
waosSwift/modules/users/controllers/UserViewController.swift on lines 435..443

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

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

        reactor.state
            .map { $0.isDismissed }
            .distinctUntilChanged()
            .filter { $0 }
            .observe(on: MainScheduler.asyncInstance)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 207..215
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 306..314
waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 131..139
waosSwift/modules/users/controllers/UserMoreController.swift on lines 176..184
waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 129..137

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

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

        reactor.state
            .map { $0.isDismissed }
            .distinctUntilChanged()
            .filter { $0 }
            .observe(on: MainScheduler.asyncInstance)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 207..215
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 306..314
waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 131..139
waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 129..137
waosSwift/modules/users/controllers/UserViewController.swift on lines 435..443

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

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

        reactor.state
            .map { $0.isDismissed }
            .distinctUntilChanged()
            .filter { $0 }
            .observe(on: MainScheduler.asyncInstance)
waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 207..215
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 306..314
waosSwift/modules/users/controllers/UserMoreController.swift on lines 176..184
waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 129..137
waosSwift/modules/users/controllers/UserViewController.swift on lines 435..443

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

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

        reactor.state
            .map { $0.isDismissed }
            .distinctUntilChanged()
            .filter { $0 }
            .observe(on: MainScheduler.asyncInstance)
waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 306..314
waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 131..139
waosSwift/modules/users/controllers/UserMoreController.swift on lines 176..184
waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 129..137
waosSwift/modules/users/controllers/UserViewController.swift on lines 435..443

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

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