Skip to content

chore: add .cora.yaml review config and document cora workflow in CONTRIBUTING #29

Closed

Description

@ajianaz

Problem

The repo runs cora review in CI (cora-review.yml) and via the pre-commit hook, but has no .cora.yaml. Reviews run with default settings, so Tole-specific patterns that are safe by design get flagged as false positives (e.g. runtime-populated api_key fields, controlled Command::new subprocess invocations in tools). CONTRIBUTING.md also only mentions cora in one line without documenting the workflow.

Solution

  • Add .cora.yaml modeled on the org standard (uteke), with focus areas (security, performance, bugs) and rules that encode Tole's intentional patterns (env-resolved credentials, argv-validated subprocess tools, path-jail tests).
  • Document the cora workflow in CONTRIBUTING.md: pre-commit hook behavior + exit codes, manual cora scan after significant changes, CI Cora Review check.

Testing

  • python3 -c "import yaml; yaml.safe_load(open('.cora.yaml'))" — YAML valid
  • cora review --staged picks up config (no crash)
  • CI green on the PR

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions