Skip to content

Remove-code-smell-too-many-branches#2095

Open
paulo9631 wants to merge 1 commit into
mindee:mainfrom
thamitaboza:refactor/remove-code-smell-too-many-branches
Open

Remove-code-smell-too-many-branches#2095
paulo9631 wants to merge 1 commit into
mindee:mainfrom
thamitaboza:refactor/remove-code-smell-too-many-branches

Remove-code-smell-too-many-branches

1f1da14
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis required action Jun 30, 2026 in 0s

4 new issues (0 max.) of at least severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

Complexity increasing per file
==============================
- doctr/models/kie_predictor/pytorch.py  3
- doctr/datasets/coco_text.py  2
- doctr/models/layout/lw_detr/pytorch.py  2
- doctr/datasets/cord.py  1
- doctr/models/detection/differentiable_binarization/base.py  1
- doctr/utils/visualization.py  3
- doctr/utils/metrics.py  1
- doctr/models/_utils.py  3
         

Complexity decreasing per file
==============================
+ doctr/models/detection/_utils/base.py  -2
+ doctr/transforms/modules/pytorch.py  -3
         

See the complete overview on Codacy

Annotations

Check notice on line 19 in doctr/models/detection/_utils/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/detection/_utils/base.py#L19

First line should end with a period, question mark, or exclamation point (not 'g') (D415)

Check notice on line 19 in doctr/models/detection/_utils/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/detection/_utils/base.py#L19

Missing blank line after last section ('Args') (D413)

Check notice on line 19 in doctr/models/detection/_utils/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/detection/_utils/base.py#L19

Missing dashed underline after section ('Args') (D407)

Check notice on line 19 in doctr/models/detection/_utils/base.py

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

doctr/models/detection/_utils/base.py#L19

Multi-line docstring summary should start at the second line (D213)