← Back to issue list

refactor(inspectors): reduce cyclomatic complexity

View original Github issue

Metadata

Project
fetch-service
Number
#302
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged after approval and CI. Refactored inspector code to reduce cyclomatic complexity by extracting common calls and moving artifact operations to the Artefact struct. Git protocol decoding errors now trigger artifact rejection, resolving #292.

Suggested action:

No scores available.

Issue body

Refactor to extract common calls and complex inline code into separate functions. Move common artifact operations to the Artefact struct. To follow inspection conventions, also make git protocol decoding errors cause artifact rejection instead of inspection error. This is included in this change because it affects the call protocol of refactored functions. Fixes #292 Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged after approval and CI. Refactored inspector code to reduce cyclomatic complexity by extracting common calls and moving artifact operations to the Artefact struct. Git protocol decoding errors now trigger artifact rejection, resolving #292.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.