Skip to content
Open
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
1 change: 1 addition & 0 deletions .clusterfuzzlite/Dockerfile
2 changes: 1 addition & 1 deletion .machine_readable/MUST.contractile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
(must "no new TypeScript files")
(must "no new Python files")
(must "no new Go files")
(must "no npm/bun/yarn/pnpm dependencies — Deno only")
(must "no npm/yarn dependencies — Bun first, with pnpm as fallback")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align the pnpm fallback with the language policy

For contributors and agents following the repository guidance, this newly permits pnpm as a fallback while .claude/CLAUDE.md:46 still lists pnpm/yarn as banned and directs users to Bun, and mise.toml:8 continues to provision pnpm. The machine-enforced invariant and the documented policy therefore prescribe opposite behavior; update the authoritative language policy in the same change if pnpm is intentionally allowed, or keep pnpm prohibited here and remove it from the tool configuration.

Useful? React with 👍 / 👎.


; Dangerous patterns
(must "no believe_me (Idris2)")
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# package.json is JCS-canonical (LANGUAGE-POLICY §1.4).
# Prettier must not reformat it.
package.json
10 changes: 10 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: MPL-2.0
# SonarCloud automatic analysis settings.
#
# Exclude the ClusterFuzzLite build image from analysis. It builds on the
# OSS-Fuzz base-builder image, which runs as root and needs the whole source
# tree copied in (COPY . $SRC/zerostep). Both are required by ClusterFuzzLite,
# so Sonar's docker:S6471 (root user) and docker:S6470 (recursive COPY) rules
# do not apply. The image is only used in CI to build fuzzers, never shipped.
# .clusterfuzzlite/Dockerfile is a symlink to the Containerfile.
sonar.exclusions=.clusterfuzzlite/Containerfile,.clusterfuzzlite/Dockerfile

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Limit the suppression to the two Docker rules

In SonarCloud automatic analysis, this sonar.exclusions setting removes both paths from analysis entirely, rather than suppressing only docker:S6470 and docker:S6471 as the preceding rationale intends. As a result, every other current or future Docker security/configuration rule is disabled for the ClusterFuzzLite image; use rule-specific exclusions so the remaining checks still run. Sonar documents that source exclusions remove matching files from the analysis scope: SonarQube Cloud analysis-scope documentation.

Useful? React with 👍 / 👎.

15 changes: 15 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 19 additions & 31 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
[tools]
# Language runtimes
node = "latest"
python = "latest"
rust = "latest"
go = "latest"
zig = "latest"
java = "latest"
bun = "latest"
denojs = "latest"
bun = "1.4"

# Package managers
npm = "latest"
yarn = "latest"
pnpm = "latest"
pip = "latest"
cargo = "latest"
go-task = "latest"

# Formatting & Linting
gofmt = "latest"
black = "latest"
isort = "latest"
ruff = "latest"
prettier = "latest"
shfmt = "latest"
stylua = "latest"

# Build tools
cmake = "latest"
make = "latest"
ninja = "latest"

# Shell tools
Expand All @@ -38,20 +22,24 @@ gnu-tar = "latest"
gnu-grep = "latest"

# Testing
vitest = "latest"
pytest = "latest"
jest = "latest"

[env]
# Common environment variables
NODE_ENV = "development"
PYTHONDONTWRITEBYTECODE = "1"
PYTHONUNBUFFERED = "1"

# Task runner alias
[alias]
task = "go-task"
build = "cargo build --release || npm run build || go build"
test = "cargo test || npm test || go test ./..."
lint = "ruff check . || prettier --check . || black --check ."
fmt = "ruff format . || prettier --write . || black ."

[tasks.setup]
description = "Install pinned JS dev tools (Prettier) from bun.lock"
run = "bun install --frozen-lockfile"

[tasks.build]
run = "cargo build --release"

[tasks.test]
run = "cargo test"

[tasks.lint]
depends = ["setup"]
run = 'bunx --no-install --bun prettier --check --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"'

[tasks.fmt]
depends = ["setup"]
run = 'bunx --no-install --bun prettier --write --no-error-on-unmatched-pattern "**/*.{js,mjs,cjs,json,md}"'
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"devDependencies": {
"prettier": "3.10.1"
},
"license": "MPL-2.0",
"name": "zerostep",
"private": true
}
Loading