Skip to content

fix: profiles bugs — path resolution, fail-fast, dedup merge (#238) - #239

Merged
ajianaz merged 1 commit into
developfrom
fix/238-profiles-bugs
Jun 10, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/238-profiles-bugs

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes 3 Code Scanning alerts from cora self-review.

Alert Bug Fix
#69 Profile path resolved to CWD, not config file location resolve_profile_with_root() accepts optional project root
#72 Invalid profile config silently ignored (warn-only) merge_into() now returns Result, fails fast
#73 .extend() appended focus_areas without dedup Merge by id: replace existing, append new

Default behavior unchanged: no profile = review runs normally.
419 tests pass, clippy clean.

Fixes 3 Code Scanning alerts:

- Alert #69: resolve profile file paths relative to project root,
  not CWD. New resolve_profile_with_root() accepts optional root.
- Alert #72: fail fast on invalid profile config instead of warn-only.
  merge_into() now returns Result<(), CoraError>.
- Alert #73: merge focus_areas by id (replace existing, append new)
  instead of blind extend() that caused duplicates.

Default behavior preserved: no profile = normal review.
@ajianaz
ajianaz merged commit c321b3a into develop Jun 10, 2026
10 checks passed
@ajianaz
ajianaz deleted the fix/238-profiles-bugs branch June 11, 2026 07:27
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