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
Open
# coding: utf-8
#
# Copyright 2020 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
File topic_domain_test.py
has 1694 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 collection_services_test.py
has 1665 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# coding: utf-8
#
# Copyright 2015 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Function validate
has a Cognitive Complexity of 218 (exceeds 5 allowed). Consider refactoring. Open
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,
- 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 app_feedback_report_domain.py
has 1652 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 exp_migration_jobs_test.py
has 1610 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 skill_services_test.py
has 1574 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 graph-viz.component.spec.ts
has 1574 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 topic_services.py
has 1564 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");
Function getUpgradedServices
has 830 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
File graph-input-rules.service.spec.ts
has 1514 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
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 gae_models.py
has 1496 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 conversation-skin.component.ts
has 1477 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 compare-versions.service.spec.ts
has 1449 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 contributor_dashboard_admin_test.py
has 1448 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 wipeout_service.py
has 1441 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 editor.py
has 1438 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 graph-layout.service.spec.ts
has 1438 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 user_domain.py
has 1426 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");