Marketplace

Browse and adopt engineering standards, rules, and configurations. Fork to customize for your organization.

High
13 rules

Use xUnit or NUnit for testing

csharp

xUnit preferred (modern, parallel). NUnit also good. Use `[Fact]`/`[Theory]` or `[Test]`/`[TestCase]`.

High in 7 rulesets

Use MongoDB with schemas

database

Define schemas even though schemaless. Use Mongoose (Node) or ODMs. Index query fields. Embed vs reference thoughtfully.

High in 1 ruleset

Use Django migrations properly

django

One migration per change. Never edit applied migrations. Use RunPython for data migrations. Squash when large.

High in 4 rulesets

Use Django ORM properly

django

select_related/prefetch_related for joins. Use F() and Q() objects. Avoid N+1 with django-debug-toolbar.

High in 4 rulesets

Use Django REST Framework for APIs

django

DRF serializers for validation. ViewSets for CRUD. Token/JWT auth. Pagination on list endpoints.

High in 4 rulesets

Use context for cancellation and timeouts

go

`context.Context` as first param. Propagate through call chain. Use `context.WithTimeout` for I/O.

High in 1 ruleset

Use gofmt and golangci-lint

go

`gofmt` is non-negotiable. `golangci-lint run` in CI. Enable: errcheck, govet, staticcheck.

High in 1 ruleset

Use Go modules for dependency management

go

go.mod and go.sum at repo root. `go mod tidy` before commit. Pin versions for reproducibility.

High in 1 ruleset

Use Go testing package

go

Built-in testing package. Table-driven tests. `go test -v ./...`. Use testify for assertions if needed.

High in 7 rulesets

Use slog for structured logging

go

Use `log/slog` (Go 1.21+) for structured logging. JSON handler in production. slog.With() for context. Avoid fmt.Printf for logs.

High in 1 ruleset

Use Cargo for package management

rust

Cargo.toml for deps, Cargo.lock (commit it). `cargo add` for new deps. Workspace for monorepos.

High in 1 ruleset

Use cargo test for Rust

rust

`cargo test` for all tests. Doc tests in comments. Integration tests in tests/. `#[cfg(test)]` modules.

High in 7 rulesets

Use clippy and rustfmt

rust

`cargo fmt` before commit. `cargo clippy` with `-D warnings` in CI. Fix all warnings.

High in 1 ruleset