Showing 3,604 of 10,782 total issues

File admin-backend-api.service.spec.ts has 1389 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/domain/admin/admin-backend-api.service.spec.ts - About 3 days to fix

    File profile_test.py has 1387 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/profile_test.py - About 3 days to fix

      File app_feedback_report_services_test.py has 1378 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_services_test.py - About 3 days to fix

        File objects.py has 1368 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 extensions/objects/models/objects.py - About 3 days to fix

          File app_feedback_report_domain_test.py has 1359 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_test.py - About 3 days to fix

            File user_domain_test.py has 1359 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/user_domain_test.py - About 3 days to fix

              File topic-update.service.spec.ts has 1354 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/templates/domain/topic/topic-update.service.spec.ts - About 3 days to fix

                File rights_manager_test.py has 1349 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/domain/rights_manager_test.py - About 3 days to fix

                  File image-with-regions-editor.component.spec.ts has 1345 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 rights_manager.py has 1330 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/rights_manager.py - About 3 days to fix

                      File exploration-footer.component.spec.ts has 1320 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 exploration-engine.service.spec.ts has 1315 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 schema_utils_test.py has 1305 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/schema_utils_test.py - About 3 days to fix

                            File feedback_services_test.py has 1301 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/domain/feedback_services_test.py - About 3 days to fix

                              Function _fix_drag_and_drop_input_interaction has a Cognitive Complexity of 164 (exceeds 5 allowed). Consider refactoring.
                              Open

                                  def _fix_drag_and_drop_input_interaction(
                                      cls, state_dict: state_domain.StateDict, state_name: str
                                  ) -> None:
                                      """Fixes the DragAndDropInput interaction with following checks:
                                      - The rules should not be duplicate else the one with not pointing to
                              Severity: Minor
                              Found in core/domain/exp_domain.py - About 3 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 contribution-and-review.service.spec.ts has 1261 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

                                File skill_services.py has 1237 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.py - About 3 days to fix

                                  File state-responses.component.spec.ts has 1234 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

                                    File firebase_auth_services_test.py has 1228 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/platform/auth/firebase_auth_services_test.py - About 3 days to fix

                                      File html_validation_service_test.py has 1211 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/html_validation_service_test.py - About 3 days to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language