Showing 3,604 of 10,782 total issues

File platform_parameter_domain_test.py has 1696 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding: utf-8
#
# Copyright 2020 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Severity: Major
Found in core/domain/platform_parameter_domain_test.py - About 4 days to fix

    File topic_domain_test.py has 1694 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # coding: utf-8
    #
    # Copyright 2018 The Oppia Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    Severity: Major
    Found in core/domain/topic_domain_test.py - About 4 days to fix

      File collection_services_test.py has 1665 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # coding: utf-8
      #
      # Copyright 2015 The Oppia Authors. All Rights Reserved.
      #
      # Licensed under the Apache License, Version 2.0 (the "License");
      Severity: Major
      Found in core/domain/collection_services_test.py - About 4 days to fix

        Function validate has a Cognitive Complexity of 218 (exceeds 5 allowed). Consider refactoring.
        Open

            def validate(self, strict: bool = False) -> None:
                """Validates various properties of the Exploration.
        
                Args:
                    strict: bool. If True, the exploration is assumed to be published,
        Severity: Minor
        Found in core/domain/exp_domain.py - About 4 days 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

        File app_feedback_report_domain.py has 1652 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # coding: utf-8
        #
        # Copyright 2021 The Oppia Authors. All Rights Reserved.
        #
        # Licensed under the Apache License, Version 2.0 (the "License");
        Severity: Major
        Found in core/domain/app_feedback_report_domain.py - About 4 days to fix

          File exp_migration_jobs_test.py has 1610 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # coding: utf-8
          #
          # Copyright 2021 The Oppia Authors. All Rights Reserved.
          #
          # Licensed under the Apache License, Version 2.0 (the "License");
          Severity: Major
          Found in core/jobs/batch_jobs/exp_migration_jobs_test.py - About 4 days to fix

            File skill_services_test.py has 1574 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Copyright 2018 The Oppia Authors. All Rights Reserved.
            #
            # Licensed under the Apache License, Version 2.0 (the "License");
            # you may not use this file except in compliance with the License.
            # You may obtain a copy of the License at
            Severity: Major
            Found in core/domain/skill_services_test.py - About 4 days to fix

              File graph-viz.component.spec.ts has 1574 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // Copyright 2021 The Oppia Authors. All Rights Reserved.
              //
              // Licensed under the Apache License, Version 2.0 (the "License");
              // you may not use this file except in compliance with the License.
              // You may obtain a copy of the License at

                File topic_services.py has 1564 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # coding: utf-8
                #
                # Copyright 2018 The Oppia Authors. All Rights Reserved.
                #
                # Licensed under the Apache License, Version 2.0 (the "License");
                Severity: Major
                Found in core/domain/topic_services.py - About 4 days to fix

                  Function getUpgradedServices has 830 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    getUpgradedServices(): UpgradedServicesDict {
                      var upgradedServices = {};
                      // We are using eslint disable here for multilines because we have not used
                      // dot notation at a lot of places so it does not seem practical to use
                      // "eslint disable next line" for each of them. Also, we can't use dot
                  Severity: Major
                  Found in core/templates/services/UpgradedServices.ts - About 4 days to fix

                    File graph-input-rules.service.spec.ts has 1514 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    // Copyright 2015 The Oppia Authors. All Rights Reserved.
                    //
                    // Licensed under the Apache License, Version 2.0 (the "License");
                    // you may not use this file except in compliance with the License.
                    // You may obtain a copy of the License at

                      File svg-editor.component.ts has 1499 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      // Copyright 2020 The Oppia Authors. All Rights Reserved.
                      //
                      // Licensed under the Apache License, Version 2.0 (the "License");
                      // you may not use this file except in compliance with the License.
                      // You may obtain a copy of the License at
                      Severity: Major
                      Found in extensions/objects/templates/svg-editor.component.ts - About 4 days to fix

                        File gae_models.py has 1496 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Copyright 2014 The Oppia Authors. All Rights Reserved.
                        #
                        # Licensed under the Apache License, Version 2.0 (the "License");
                        # you may not use this file except in compliance with the License.
                        # You may obtain a copy of the License at
                        Severity: Major
                        Found in core/storage/base_model/gae_models.py - About 3 days to fix

                          File conversation-skin.component.ts has 1477 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          // Copyright 2021 The Oppia Authors. All Rights Reserved.
                          //
                          // Licensed under the Apache License, Version 2.0 (the "License");
                          // you may not use this file except in compliance with the License.
                          // You may obtain a copy of the License at

                            File compare-versions.service.spec.ts has 1449 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            // Copyright 2014 The Oppia Authors. All Rights Reserved.
                            //
                            // Licensed under the Apache License, Version 2.0 (the "License");
                            // you may not use this file except in compliance with the License.
                            // You may obtain a copy of the License at

                              File contributor_dashboard_admin_test.py has 1448 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # Copyright 2014 The Oppia Authors. All Rights Reserved.
                              #
                              # Licensed under the Apache License, Version 2.0 (the "License");
                              # you may not use this file except in compliance with the License.
                              # You may obtain a copy of the License at
                              Severity: Major
                              Found in core/controllers/contributor_dashboard_admin_test.py - About 3 days to fix

                                File wipeout_service.py has 1441 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                # Copyright 2020 The Oppia Authors. All Rights Reserved.
                                #
                                # Licensed under the Apache License, Version 2.0 (the "License");
                                # you may not use this file except in compliance with the License.
                                # You may obtain a copy of the License at
                                Severity: Major
                                Found in core/domain/wipeout_service.py - About 3 days to fix

                                  File editor.py has 1438 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  # coding: utf-8
                                  
                                  # Copyright 2014 The Oppia Authors. All Rights Reserved.
                                  #
                                  # Licensed under the Apache License, Version 2.0 (the "License");
                                  Severity: Major
                                  Found in core/controllers/editor.py - About 3 days to fix

                                    File graph-layout.service.spec.ts has 1438 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    // Copyright 2021 The Oppia Authors. All Rights Reserved.
                                    //
                                    // Licensed under the Apache License, Version 2.0 (the 'License');
                                    // you may not use this file except in compliance with the License.
                                    // You may obtain a copy of the License at
                                    Severity: Major
                                    Found in core/templates/components/graph-services/graph-layout.service.spec.ts - About 3 days to fix

                                      File user_domain.py has 1426 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open

                                      # coding: utf-8
                                      #
                                      # Copyright 2014 The Oppia Authors. All Rights Reserved.
                                      #
                                      # Licensed under the Apache License, Version 2.0 (the "License");
                                      Severity: Major
                                      Found in core/domain/user_domain.py - About 3 days to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language