{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"},{"label":"Documentation","url":"https://skillfed.io/packages/category/software-development-documentation"}],"enrichment":{"capability":"A flake8 extension that checks Python code for cognitive complexity, flagging functions that exceed a configurable threshold (default 7) to help identify overly complex logic.","skillfed_tags":["code-quality","linter-plugin","unmaintained"],"use_cases":["Enforce a maximum cognitive complexity threshold in CI/CD pipelines to catch overly complex functions early.","Identify functions that are hard to understand and maintain as part of code review workflows.","Set project-wide complexity standards using the --max-cognitive-complexity option in flake8 configuration.","Measure code quality improvements over time by tracking cognitive complexity violations in your codebase."],"what_it_does":"flake8-cognitive-complexity is a flake8 linter plugin that measures cognitive complexity\u2014a metric for how difficult a piece of code is to understand\u2014introduced by G. Ann Campbell and used by SonarSource and CodeClimate. It analyzes Python functions and reports violations when complexity exceeds a threshold you set, defaulting to 7. The plugin integrates directly into flake8's workflow and emits error code CCR001 when a function's cognitive complexity is too high.\n\nThe package has no runtime dependencies and works by analyzing control flow in your code. However, it is abandoned: the last release was 2020-08-01 and the last commit to the repository was 2021-02-24. This means it may not be compatible with recent versions of flake8 or Python versions beyond 3.8, and bugs or incompatibilities will not be fixed.","worth_installing":"No. The package is abandoned (last update 2021-02-24) and untested with modern Python or flake8 versions. While the idea is sound and the MIT license is permissive, the lack of maintenance means you risk compatibility breakage and unpatched issues. Consider an actively maintained alternative or a more recent cognitive-complexity linter."},"id":"flake8-cognitive-complexity","links":{"html":"https://skillfed.io/packages/flake8-cognitive-complexity","md":"https://skillfed.io/packages/flake8-cognitive-complexity.md","pypi":"https://pypi.org/project/flake8-cognitive-complexity/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-08-01","license_spdx":null,"license_treatment":"permissive","name":"flake8-cognitive-complexity","python_support":"supports_current","summary":"An extension for flake8 that validates cognitive functions complexity"},"popularity":{"monthly_downloads":298539,"position":7873,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.0"}
