weareopensource/Swift

View on GitHub
waosSwift/modules/users/controllers/UserViewController.swift

Summary

Maintainability
B
6 hrs
Test Coverage

File UserViewController.swift has 402 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import UIKit
import ReactorKit
import Eureka
import SafariServices
import ImageRow
Severity: Minor
Found in waosSwift/modules/users/controllers/UserViewController.swift - About 5 hrs to fix

    Function bindState has 126 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        func bindState(_ reactor: UserViewReactor) {
            // inputs
            reactor.state
                .map { $0.user.firstName }
                .take(1)
    Severity: Major
    Found in waosSwift/modules/users/controllers/UserViewController.swift - About 5 hrs to fix

      Function bindAction has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

          func bindAction(_ reactor: UserViewReactor) {
              // buttons
              self.barButtonDone.rx.tap
                  .throttle(.milliseconds(Metric.timesButtonsThrottle), latest: false, scheduler: MainScheduler.instance)
                  .map { Reactor.Action.done }
      Severity: Major
      Found in waosSwift/modules/users/controllers/UserViewController.swift - About 4 hrs to fix

        Function viewDidLoad has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Wontfix

            override func viewDidLoad() {
                super.viewDidLoad()
        
                form
                    // Account
        Severity: Major
        Found in waosSwift/modules/users/controllers/UserViewController.swift - About 2 hrs to fix

          Function bindState has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
          Wontfix

              func bindState(_ reactor: UserViewReactor) {
                  // inputs
                  reactor.state
                      .map { $0.user.firstName }
                      .take(1)
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

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

              func bindView(_ reactor: UserViewReactor) {
                  // cancel
                  self.barButtonCancel.rx.tap
                      .subscribe(onNext: { [weak self] _ in
                          guard let `self` = self else { return }
          waosSwift/modules/auth/controllers/AuthForgotController.swift on lines 146..167
          waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 186..207
          waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 81..102
          waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 75..96

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

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

                  reactor.state
                      .map { $0.error }
                      .filterNil()
                      .throttle(.milliseconds(Metric.timesButtonsThrottle), latest: false, scheduler: MainScheduler.instance)
                      .subscribe(onNext: { error in
          waosSwift/modules/auth/controllers/AuthSigninController.swift on lines 307..317
          waosSwift/modules/auth/controllers/AuthSignupController.swift on lines 360..370
          waosSwift/modules/home/controllers/HomePageController.swift on lines 153..163
          waosSwift/modules/home/controllers/HomeTermsController.swift on lines 130..140
          waosSwift/modules/tasks/controllers/TasksListController.swift on lines 205..215
          waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 141..151
          waosSwift/modules/users/controllers/UserController.swift on lines 536..546
          waosSwift/modules/users/controllers/UserMoreController.swift on lines 186..196
          waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 139..149

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

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

          /**
           * Dependencies
           */
          
          import UIKit
          waosSwift/modules/users/controllers/UserViewController.swift on lines 1..472
          waosSwift/modules/users/controllers/UserViewController.swift on lines 1..472

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

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

                  self.buttonImageGravatar.rx.tap
                      .subscribe(onNext: { _ in
                          guard let url = URL(string: (config["app"]["links"]["gravatar"].string ?? "")) else { return }
                          let svc = SFSafariViewController(url: url)
                          self.present(svc, animated: true, completion: nil)
          waosSwift/modules/users/controllers/UserController.swift on lines 217..223
          waosSwift/modules/users/controllers/UserController.swift on lines 224..230
          waosSwift/modules/users/controllers/UserController.swift on lines 231..237

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

          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

          Similar blocks of code found in 3 locations. Consider refactoring.
          Wontfix

                  reactor.state
                      .map { $0.user.complementary?.socialNetworks?.instagram }
                      .filterNil()
                      .take(1)
                      .subscribe(onNext: { instagram in
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 55 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 410..418
          waosSwift/modules/users/controllers/UserViewController.swift on lines 419..427

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

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

                  reactor.state
                      .map { $0.user.complementary?.socialNetworks?.twitter }
                      .filterNil()
                      .take(1)
                      .subscribe(onNext: { twitter in
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 55 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 401..409
          waosSwift/modules/users/controllers/UserViewController.swift on lines 419..427

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

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

                  reactor.state
                      .map { $0.user.complementary?.socialNetworks?.facebook }
                      .filterNil()
                      .take(1)
                      .subscribe(onNext: { facebook in
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 55 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 401..409
          waosSwift/modules/users/controllers/UserViewController.swift on lines 410..418

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

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

                  observableFirstName
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateFirstName("account")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  observableFacebook
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateFacebook("socialnetworks")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319

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

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

                  observableTwitter
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateTwitter("socialnetworks")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  observableInstagram
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateInstagram("socialnetworks")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  observableBio
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateBio("profil")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  observableEmail
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateEmail("account")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 248..252
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  observableLastName
                      .debounce(.milliseconds(Metric.timesErrorsShort), scheduler: MainScheduler.instance)
                      .map {_ in Reactor.Action.validateLastName("account")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 6 other locations - About 50 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 237..241
          waosSwift/modules/users/controllers/UserViewController.swift on lines 259..263
          waosSwift/modules/users/controllers/UserViewController.swift on lines 271..275
          waosSwift/modules/users/controllers/UserViewController.swift on lines 304..308
          waosSwift/modules/users/controllers/UserViewController.swift on lines 315..319
          waosSwift/modules/users/controllers/UserViewController.swift on lines 326..330

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

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

                  self.barButtonDone.rx.tap
                      .throttle(.milliseconds(Metric.timesButtonsThrottle), latest: false, scheduler: MainScheduler.instance)
                      .map { Reactor.Action.done }
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 3 other locations - About 50 mins to fix
          waosSwift/modules/home/controllers/HomeTermsController.swift on lines 83..87
          waosSwift/modules/tasks/controllers/TasksViewController.swift on lines 107..111
          waosSwift/modules/users/controllers/UserPreferenceController.swift on lines 102..106

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

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

                  reactor.state
                      .map { $0.user.lastName }
                      .take(1)
                      .subscribe(onNext: { lastName in
                          self.inputLastName.value = lastName
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 45 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 337..344
          waosSwift/modules/users/controllers/UserViewController.swift on lines 353..360

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

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

                  reactor.state
                      .map { $0.user.firstName }
                      .take(1)
                      .subscribe(onNext: { firstName in
                          self.inputFirstName.value = firstName
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 45 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 345..352
          waosSwift/modules/users/controllers/UserViewController.swift on lines 353..360

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

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

                  reactor.state
                      .map { $0.user.email }
                      .take(1)
                      .subscribe(onNext: { email in
                          self.inputEmail.value = email
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 45 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 337..344
          waosSwift/modules/users/controllers/UserViewController.swift on lines 345..352

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

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

                  observableFirstName
                      .skip(1)
                      .map {Reactor.Action.updateFirstName($0 ?? "")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 3 other locations - About 40 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 243..247
          waosSwift/modules/users/controllers/UserViewController.swift on lines 254..258
          waosSwift/modules/users/controllers/UserViewController.swift on lines 266..270

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

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

                  observableLastName
                      .skip(1)
                      .map {Reactor.Action.updateLastName($0 ?? "")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 3 other locations - About 40 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 232..236
          waosSwift/modules/users/controllers/UserViewController.swift on lines 254..258
          waosSwift/modules/users/controllers/UserViewController.swift on lines 266..270

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

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

                  observableBio
                      .skip(1)
                      .map {Reactor.Action.updateBio($0 ?? "")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 3 other locations - About 40 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 232..236
          waosSwift/modules/users/controllers/UserViewController.swift on lines 243..247
          waosSwift/modules/users/controllers/UserViewController.swift on lines 254..258

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

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

                  observableEmail
                      .skip(1)
                      .map {Reactor.Action.updateEmail($0 ?? "")}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Major
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 3 other locations - About 40 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 232..236
          waosSwift/modules/users/controllers/UserViewController.swift on lines 243..247
          waosSwift/modules/users/controllers/UserViewController.swift on lines 266..270

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

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

              let labelErrorsAccount = CoreUILabel().then {
                  $0.textAlignment = .left
                  $0.textColor = Metric.error
                  $0.font = UIFont.systemFont(ofSize: 13)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 49..53
          waosSwift/modules/users/controllers/UserViewController.swift on lines 87..91

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

              let labelErrorsProfil = CoreUILabel().then {
                  $0.textAlignment = .left
                  $0.textColor = Metric.error
                  $0.font = UIFont.systemFont(ofSize: 13)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 39..43
          waosSwift/modules/users/controllers/UserViewController.swift on lines 87..91

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

              let labelErrorsSocialNetworks = CoreUILabel().then {
                  $0.textAlignment = .left
                  $0.textColor = Metric.error
                  $0.font = UIFont.systemFont(ofSize: 13)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 39..43
          waosSwift/modules/users/controllers/UserViewController.swift on lines 49..53

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

                  observableInstagram
                      .skip(1)
                      .map {Reactor.Action.updateInstagram($0)}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 310..314
          waosSwift/modules/users/controllers/UserViewController.swift on lines 321..325

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

                  observableFacebook
                      .skip(1)
                      .map {Reactor.Action.updateFacebook($0)}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 299..303
          waosSwift/modules/users/controllers/UserViewController.swift on lines 310..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 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.
          Wontfix

              let inputFacebook = TextRow {
                  $0.placeholder = L10n.userEditSocialnetworksFacebook
                  $0.setFontAwesomeIcon("fa-facebook", style: .brands, color: Metric.facebook ?? .lightGray, opacity: 1)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 75..78
          waosSwift/modules/users/controllers/UserViewController.swift on lines 79..82

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

                  observableTwitter
                      .skip(1)
                      .map {Reactor.Action.updateTwitter($0)}
                      .bind(to: reactor.action)
                      .disposed(by: self.disposeBag)
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 299..303
          waosSwift/modules/users/controllers/UserViewController.swift on lines 321..325

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

              let inputInstagram = TextRow {
                  $0.placeholder = L10n.userEditSocialnetworksInstagram
                  $0.setFontAwesomeIcon("fa-instagram", style: .brands, color: Metric.instagram ?? .lightGray, opacity: 1)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 79..82
          waosSwift/modules/users/controllers/UserViewController.swift on lines 83..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 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.
          Wontfix

              let inputTwitter = TextRow {
                  $0.placeholder = L10n.userEditSocialnetworksTwitter
                  $0.setFontAwesomeIcon("fa-twitter", style: .brands, color: Metric.twitter ?? .lightGray, opacity: 1)
              }
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 2 other locations - About 35 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 75..78
          waosSwift/modules/users/controllers/UserViewController.swift on lines 83..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 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.
          Wontfix

                          self.labelErrorsProfil.text = errors.filter({ $0.type == "profil" }).map { $0.description }.joined(separator: ". ")
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 1 other location - About 30 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 449..449

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

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

                          self.labelErrorsAccount.text = errors.filter({ $0.type == "account" }).map { $0.description }.joined(separator: ". ")
          Severity: Minor
          Found in waosSwift/modules/users/controllers/UserViewController.swift and 1 other location - About 30 mins to fix
          waosSwift/modules/users/controllers/UserViewController.swift on lines 450..450

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

          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

          There are no issues that match your filters.

          Category
          Status