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
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 profile_test.py
has 1387 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 app_feedback_report_services_test.py
has 1378 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2021 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File objects.py
has 1368 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File app_feedback_report_domain_test.py
has 1359 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2021 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File user_domain_test.py
has 1359 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File topic-update.service.spec.ts
has 1354 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 rights_manager_test.py
has 1349 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 image-with-regions-editor.component.spec.ts
has 1345 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Open
# coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File exploration-footer.component.spec.ts
has 1320 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
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
Open
# coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File feedback_services_test.py
has 1301 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Function _fix_drag_and_drop_input_interaction
has a Cognitive Complexity of 164 (exceeds 5 allowed). Consider refactoring. Open
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
- Read upRead up
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
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
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 state-responses.component.spec.ts
has 1234 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Open
# coding: utf-8
#
# Copyright 2020 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File html_validation_service_test.py
has 1211 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");