Skip to content

feat(collector): ignore priv/static by default - #81

Merged
aspala merged 1 commit into
mainfrom
feat/ignore-priv-static
Sep 1, 2026
Merged

aspala merged 1 commit into
mainfrom
feat/ignore-priv-static

Conversation

@aspala

@aspala aspala commented Sep 1, 2026

Copy link
Copy Markdown
Member

Gebaute Asset-Bundles unter priv/static sind generierter Output; ihre minifizierten Zeilen verzerren avg_line_length, Readability und Duplication für die gesamte Codebase — in einem Phoenix-Umbrella hat das allein Readability von A auf F gedrückt.

Built asset bundles under priv/static are generated output, and their minified lines skew line-length, readability and duplication metrics for the whole codebase.
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Score: C+ → C+ | Δ -1 pts | 0 blocks flagged across 2 files | 2 modified, 0 added

🟠 Code Health: C+ (63/100)

196 files · codeqa-action · 2026-09-01

Combined metric scores use cosine similarity: +1 = metric profile perfectly matches healthy pattern for this behavior, 0 = no signal, −1 = anti-pattern detected. Mapped to 0–100 using breakpoints (approx: ≥0.5→A, ≥0.2→B, ≥0.0→C, ≥−0.3→D, <−0.3→F); actual letter grades use the full 15-step scale.

Metric Changes

Category Base Head Δ
Readability 88.64 97.87 +9.24
Complexity 30.62 41.55 +10.92
Duplication 0.57 0.59 +0.02
Structure 6.23 9.17 +2.94
%%{init: {'theme': 'neutral'}}%%
xychart-beta
    title "Code Health Scores"
    x-axis ["Readability", "Complexity", "Structure", "Duplication", "Naming", "Magic Numbers", "Combined Metrics"]
    y-axis "Score" 0 --> 100
    bar [94, 30, 88, 48, 96, 100, 65]
Loading
Readability       ███████████████████░   94  🟢 A
Complexity        ██████░░░░░░░░░░░░░░   30  🔴 D-
Structure         ██████████████████░░   88  🟢 A-
Duplication       ██████████░░░░░░░░░░   48  🟠 C-
Naming            ███████████████████░   96  🟢 A
Magic Numbers     ████████████████████  100  🟢 A
Combined Metrics  █████████████░░░░░░░   65  🔴 D

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor
🔍 Top Likely Issues (cosine similarity)

Most negative cosine = file's metric profile best matches this anti-pattern.

Behavior Cosine Score
dependencies.low_coupling -0.56 -12.93
file_structure.single_responsibility -0.52 -12.66
file_structure.line_count_under_300 -0.45 -9.49
code_smells.no_dead_code_after_return -0.41 -23.19
scope_and_assignment.shadowed_by_inner_scope -0.31 -5.08
file_structure.line_length_under_120 -0.30 -8.40
variable_naming.name_contains_type_suffix -0.23 -2.26
variable_naming.loop_var_is_single_letter -0.23 3.49
variable_naming.name_contains_and -0.21 -36.60
consistency.same_concept_same_name -0.21 -2.32
🟢 Readability — A (94/100)

Codebase averages: flesch_adapted=97.87, fog_adapted=4.82, avg_tokens_per_line=9.56, avg_line_length=35.81

Metric Value Score
readability.flesch_adapted 97.87 100
readability.fog_adapted 4.82 100
readability.avg_tokens_per_line 9.56 72
readability.avg_line_length 35.81 100
🔴 Complexity — D- (30/100)

Codebase averages: difficulty=41.55, effort=241799.52, volume=4112.46, estimated_bugs=1.37

Metric Value Score
halstead.difficulty 41.55 41
halstead.effort 241799.52 0
halstead.volume 4112.46 46
halstead.estimated_bugs 1.37 46
🟢 Structure — A- (88/100)

Codebase averages: branching_density=0.14, mean_depth=3.85, avg_function_lines=8.27, max_depth=9.17, max_function_lines=19.91, variance=6.77, avg_param_count=1.16, max_param_count=2.08

Metric Value Score
branching.branching_density 0.14 76
indentation.mean_depth 3.85 88
function_metrics.avg_function_lines 8.27 89
indentation.max_depth 9.17 87
function_metrics.max_function_lines 19.91 100
indentation.variance 6.77 100
function_metrics.avg_param_count 1.16 100
function_metrics.max_param_count 2.08 100
🟠 Duplication — C- (48/100)

Codebase averages: redundancy=0.59, bigram_repetition_rate=0.54, trigram_repetition_rate=0.37

Metric Value Score
compression.redundancy 0.59 58
ngram.bigram_repetition_rate 0.54 38
ngram.trigram_repetition_rate 0.37 40
🟢 Naming — A (96/100)

Codebase averages: entropy=0.89, mean=6.64, variance=18.75, avg_sub_words_per_id=1.17

Metric Value Score
casing_entropy.entropy 0.89 100
identifier_length_variance.mean 6.64 100
identifier_length_variance.variance 18.75 85
readability.avg_sub_words_per_id 1.17 100
🟢 Magic Numbers — A (100/100)

Codebase averages: density=0.00

Metric Value Score
magic_number_density.density 0.00 100
🔴 Combined Metrics — D (65/100)
Category Score Grade
Code Smells 25 🔴 D-
Consistency 82 🟡 B+
Dependencies 19 🔴 E+
Documentation 85 🟢 A-
Error Handling 91 🟢 A-
File Structure 48 🟠 C-
Function Design 82 🟡 B+
Naming Conventions 90 🟢 A-
Scope And Assignment 29 🔴 D-
Testing 83 🟡 B+
Type And Value 89 🟢 A-
Variable Naming 74 🟡 B
🔴 Code Smells — D- (25/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
no_dead_code_after_return -0.41 25 D-
🟡 Consistency — B+ (82/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
consistent_function_style 0.39 82 B+
🔴 Dependencies — E+ (19/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
low_coupling -0.56 19 E+
🟢 Documentation — A- (85/100)

Cosine similarity scores for 3 behaviors.

Behavior Cosine Score Grade
file_has_module_docstring 0.32 78 B+
docstring_is_nonempty 0.46 88 A-
function_has_docstring 0.47 88 A-
🟢 Error Handling — A- (91/100)

Cosine similarity scores for 3 behaviors.

Behavior Cosine Score Grade
error_message_is_descriptive 0.46 87 A-
does_not_swallow_errors 0.62 92 A-
returns_typed_error 0.66 93 A
🟠 File Structure — C- (48/100)

Cosine similarity scores for 5 behaviors.

Behavior Cosine Score Grade
single_responsibility -0.52 20 E+
line_count_under_300 -0.45 24 E+
line_length_under_120 -0.30 30 D-
has_consistent_indentation 0.28 75 B
no_magic_numbers 0.58 92 A-
🟡 Function Design — B+ (82/100)

Cosine similarity scores for 3 behaviors.

Behavior Cosine Score Grade
is_less_than_20_lines 0.33 79 B+
has_verb_in_name 0.40 83 B+
no_magic_numbers 0.40 83 B+
🟢 Naming Conventions — A- (90/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
function_name_is_not_single_word 0.50 90 A-
🔴 Scope And Assignment — D- (29/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
shadowed_by_inner_scope -0.31 29 D-
🟡 Testing — B+ (83/100)

Cosine similarity scores for 2 behaviors.

Behavior Cosine Score Grade
test_single_concept 0.28 75 B
test_name_describes_behavior 0.54 91 A-
🟢 Type And Value — A- (89/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
hardcoded_url_or_path 0.48 89 A-
🟡 Variable Naming — B (74/100)

Cosine similarity scores for 1 behaviors.

Behavior Cosine Score Grade
name_is_generic 0.26 74 B

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

kind: refactoring-tasks
path: /home/runner/work/codeqa-action/codeqa-action
timestamp: 2026-09-01T14:15:08.559716Z
overall_grade: C+
overall_score: 63
task_count: 0
critical: 0
high: 0
instructions: >-
Address the tasks below in order of severity (critical first).
After each fix, run the project's test suite and confirm it passes
before moving on.

No critical or high-severity blocks need attention. ✅

@aspala
aspala merged commit 98fd706 into main Sep 1, 2026
8 checks passed
@aspala
aspala deleted the feat/ignore-priv-static branch September 1, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant