Skip to content

fix: use ~/.cora/ as config directory#23

Merged
ajianaz merged 1 commit into
developfrom
fix/use-dot-cora-dir
May 30, 2026
Merged

fix: use ~/.cora/ as config directory#23
ajianaz merged 1 commit into
developfrom
fix/use-dot-cora-dir

Conversation

@ajianaz

@ajianaz ajianaz commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Change

~/.config/cora/~/.cora/

Brand awareness — one memorable dot folder for everything cora.

What changed

  • cora_dir() helper centralizes path resolution
  • API key stored at ~/.cora/config.toml (0600 perms)
  • Auth messages updated to show ~/.cora/config.toml

Tested

  • cora auth login → creates ~/.cora/config.toml
  • cora auth status → reads from ~/.cora/config.toml
  • Permissions verified: -rw-------

- ~/.cora/ for brand awareness (easy to remember)
- ~/.cora/config.toml stores API key (0600 permissions)
- Centralized cora_dir() helper instead of repeated dirs::config_dir()
- Updated auth messages to reference ~/.cora/ path
@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ajianaz, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 32 minutes and 39 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a77c4482-d5f6-41a1-96af-b40fddc98eb3

📥 Commits

Reviewing files that changed from the base of the PR and between b7c9f43 and e71de9c.

📒 Files selected for processing (2)
  • src/commands/auth.rs
  • src/config/loader.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/use-dot-cora-dir

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ajianaz
ajianaz merged commit a9293a6 into develop May 30, 2026
2 checks passed
@ajianaz
ajianaz deleted the fix/use-dot-cora-dir branch May 30, 2026 04:11
ajianaz added a commit that referenced this pull request Jul 16, 2026
Closes the remaining minor items tracked under #334 so the issue can be
fully resolved. Each fix is small and targeted.

- #87 is_test_file: path-segment awareness so `latest`, `aspect`,
  `attestation`, `protest` are not mistaken for test files.
- #66 glob_matches: directory excludes (`src/`) match only at segment
  boundaries (`mysrc/`, `docs/src-guide/` no longer caught).
- #68 estimate_tokens: non-empty content returns at least 1 token (was 0
  under integer division).
- #72 RE_JAVA_IMPORT: allow wildcard capture (`import com.example.*` keeps
  the `*`), plus `import static`.
- #73 RE_RUST_MOD: extract `mod foo;` declarations as dependency symbols,
  matching the documented behavior.
- #23 index_stats: query `PRAGMA page_size` instead of assuming 4096 bytes.
- #48 ReviewIssue.issue_type: serialize as `issue_type` (consistent with
  the field name); keep `type` as a deserialize alias.
- #10 Severity::from_str_lossy: use `eq_ignore_ascii_case` (no allocation).

Already-resolved items verified (no change needed):
- #88 max_findings cutoff already sorts severity-descending before truncate.
- #30 debt snapshot save already emits a warn! on write failure.

8 new tests. All 652 tests pass; clippy + fmt + audit clean.

Closes #334
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