Skip to content

build(docs): include optional dependencies on readthedocs

276e0d1
Select commit
Loading
Failed to load commit list.
Open

Self-describing config #764

build(docs): include optional dependencies on readthedocs
276e0d1
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (main) failed Feb 22, 2026 in 1m 22s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Prevent hotspot decline (1 hotspot with Lines of Code in a Single File, Complex Conditional, Large Method)
New code is healthy (1 new file with code health below 9.00)
Enforce critical code health rules (1 file with Bumpy Road Ahead, Deep, Nested Complexity)
Enforce advisory code health rules (3 files with Lines of Code in a Single File, Complex Conditional, Large Method, Excess Number of Function Arguments, Complex Method)

See analysis details in CodeScene

Reason for failure
Prevent hotspot decline Violations Code Health Impact
init.py 3 rules in this hotspot 9.14 → 8.17 Suppress
New code is healthy Violations Code Health Impact
ext_autosuspend.py 3 rules 8.91 Suppress
Enforce critical code health rules Violations Code Health Impact
ext_autosuspend.py 2 critical rules 8.91 Suppress
Enforce advisory code health rules Violations Code Health Impact
ext_autosuspend.py 1 advisory rule 8.91 Suppress
init.py 3 advisory rules 9.14 → 8.17 Suppress
config.py 1 advisory rule 9.69 Suppress

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Deep, Nested Complexity ext_autosuspend.py: AutosuspendChecksDirective.run
  • Lines of Code in a Single File init.py 🔥
  • Complex Conditional init.py: discover_available_checks 🔥
  • Large Method init.py: parse_arguments 🔥
  • Complex Method ext_autosuspend.py: AutosuspendChecksDirective.run
  • Excess Number of Function Arguments config.py: config_param
  • Bumpy Road Ahead ext_autosuspend.py: AutosuspendChecksDirective.run

Annotations

Check warning on line 1 in src/autosuspend/__init__.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Lines of Code in a Single File

This module has 621 lines of code, improve code health by reducing it to 600. The number of Lines of Code in a single file. More Lines of Code lowers the code health.

Check warning on line 516 in src/autosuspend/__init__.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Complex Conditional

discover_available_checks has 1 complex conditionals with 3 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.

Check warning on line 668 in src/autosuspend/__init__.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ Getting worse: Large Method

parse_arguments increases from 75 to 80 lines of code, threshold = 70. Large functions with many lines of code are generally harder to understand and lower the code health. Avoid adding more lines to this function.

Check warning on line 82 in src/autosuspend/config.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Excess Number of Function Arguments

config_param has 9 arguments, max arguments = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.

Check warning on line 140 in doc/ext_autosuspend.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Complex Method

AutosuspendChecksDirective.run has a cyclomatic complexity of 13, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check warning on line 140 in doc/ext_autosuspend.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Bumpy Road Ahead

AutosuspendChecksDirective.run has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is 2 blocks per function. The Bumpy Road code smell is a function that contains multiple chunks of nested conditional logic. The deeper the nesting and the more bumps, the lower the code health.

Check warning on line 140 in doc/ext_autosuspend.py

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (main)

❌ New issue: Deep, Nested Complexity

AutosuspendChecksDirective.run has a nested complexity depth of 4, threshold = 4. This function contains deeply nested logic such as if statements and/or loops. The deeper the nesting, the lower the code health.