Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Bug report
description: Report a bug, crash, or incorrect measurement in codeint.
labels: ["bug"]
body:
- type: textarea
id: summary
attributes:
label: What happened?
description: Describe the unexpected behavior clearly.
validations:
required: true
- type: input
id: version
attributes:
label: codeint version and platform
description: Run `codeint --version` and include your OS and architecture.
placeholder: "codeint 0.4.0 (macOS arm64)"
validations:
required: true
- type: textarea
id: repro
attributes:
label: Steps to reproduce
description: Commands, minimal code snippet, or repository setup that triggers the issue.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected vs actual output
description: Paste literal command output or error lines when available.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Documentation and User Guide
url: https://github.com/avidianity/codeint/blob/main/docs/guide/README.md
about: Read the modular guide, philosophy, configuration, and reference docs.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature request
description: Propose a new Language plugin, Metric, CLI option, or SDK capability.
labels: ["enhancement"]
body:
- type: textarea
id: problem
attributes:
label: Problem
description: What problem does this solve for teams measuring Software entropy?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed behavior
description: Describe how you expect codeint to behave from a user's perspective.
validations:
required: true
- type: dropdown
id: area
attributes:
label: Area
options:
- Language plugin
- Metric or reporting
- CLI or configuration
- Programmatic API (JS/TS or Rust)
- WebAssembly plugins
- Documentation
validations:
required: false
29 changes: 29 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Code of Conduct

## Our commitment

We want codeint to be a welcoming, constructive, and safe project for everyone.
Participation is open to all contributors regardless of background, identity, or experience level.

## Expected behavior

- Communicate with respect, clarity, and patience.
- Focus feedback on code, design trade-offs, and evidence rather than on people.
- Accept constructive criticism gracefully.
- Respect the time and boundaries of maintainers and fellow contributors.

## Unacceptable behavior

- Harassment, personal attacks, insults, or discriminatory language.
- Publishing another person's private information without permission.
- Trolling, deliberate disruption, or bad-faith engagement in issues or pull requests.
- Any other conduct that creates an unsafe or hostile environment.

## Scope

This Code of Conduct applies across all project spaces, including GitHub issues, pull requests, discussions, and commits.

## Reporting

If you experience or witness unacceptable behavior, report it privately through the repository's [GitHub Security tab](https://github.com/avidianity/codeint/security) or by contacting the repository maintainers via GitHub.
Maintainers review every report and may warn, remove comments from, or ban contributors who violate this policy.
39 changes: 39 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contributing to codeint

Thank you for your interest in improving codeint.
People and coding agents follow the same rules in this repository: read [.rules](./.rules) and [GLOSSARY.md](./GLOSSARY.md) before making changes.

## Prerequisites

- Rust via rustup ([rust-toolchain.toml](./rust-toolchain.toml) pins the version).
- Node.js 24 and npm (for formatting and documentation tools in [package.json](./package.json)).
- `gitleaks` and `lychee` on your `PATH` (used by Git hooks).

## Local setup

Clone the repository and install hooks and tests:

```sh
npm ci
npx lefthook install
cargo test --workspace --locked
```

Never skip Git hooks.
All repository checks are documented in [docs/checks/README.md](./docs/checks/README.md).

## Making a change

1. Open an issue first for new features or behavior changes so the scope and design are clear.
2. Create a short-lived branch from `main`.
3. Write tests first for behavior changes, and keep code comments within [docs/checks/no-comments.md](./docs/checks/no-comments.md).
4. Use Conventional Commits (`feat:`, `fix:`, `docs:`, `refactor:`, `chore:`) with no agent attribution lines.
5. Open a pull request against `main` and fill in every section of [.github/pull_request_template.md](./.github/pull_request_template.md).

## Adding a Language or Metric plugin

Read [docs/plugins.md](./docs/plugins.md) to build an external WebAssembly Plugin, or inspect `plugins/languages/` for how built-in Language plugins implement the Code model contract.

## Code of Conduct

All contributors follow [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
33 changes: 33 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Security Policy

## Supported versions

Security fixes apply to the latest minor release of codeint.

| Version | Supported |
| ------- | --------- |
| Latest (`0.4.x`) | Yes |
| Older releases | No |

## Reporting a vulnerability

Do not open a public GitHub issue for a security vulnerability.
Instead, report it privately through [GitHub Security Advisories](https://github.com/avidianity/codeint/security).

Include:

- A clear description of the vulnerability and its impact.
- The affected codeint version and platform.
- Minimal steps or a sample input to reproduce the issue.

## Response timeline

Maintainers aim to acknowledge private reports within 3 business days and provide an initial assessment or fix plan within 7 business days.

## Scope

Security reports are especially welcome for:

- Sandbox escapes, resource exhaustion, or SHA-256 verification bypasses in the WebAssembly Plugin host (`crates/plugin-host`).
- Path traversal or unintended writes when scanning Git repositories or running `codeint init` and `codeint update`.
- Checksum verification or supply-chain issues in release installers and npm packages.