Skip to content

feat(makefile): add lint and check targets and wire them into CI (Fixes #865) - #894

Closed
kleitonbernardino-lab wants to merge 1 commit into
MergeFi:mainfrom
kleitonbernardino-lab:fix/makefile-lint-check-gates-865
Closed

kleitonbernardino-lab wants to merge 1 commit into
MergeFi:mainfrom
kleitonbernardino-lab:fix/makefile-lint-check-gates-865

Conversation

@kleitonbernardino-lab

Copy link
Copy Markdown

Summary

Fixes #865.

Adds make lint and make check targets to the Makefile and updates .github/workflows/ci.yml and CONTRIBUTING.md so that contributors can reproduce all CI verification gates locally with a single command.

Rationale

Previously, the Makefile only provided fmt (which writes formatting changes in place) and test, but lacked targets for cargo fmt --check, cargo clippy, the dead-code detection build (RUSTFLAGS="-D dead_code"), or documentation link checking. CI ran these checks as individual workflow steps that could not easily be run locally, leading to formatting or lint failures slipping into PRs.

Changes

  1. Makefile:
    • Add lint and check to .PHONY.
    • Add lint target running:
      • cargo fmt --check
      • cargo clippy --workspace --all-targets --locked -- -D warnings
      • RUSTFLAGS="-D dead_code" cargo build --workspace --locked
      • RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items
    • Add check target chaining lint and test.
    • Update test and test-verbose to use --locked to prevent unexpected Cargo.lock modifications.
  2. .github/workflows/ci.yml:
    • Update the test job to invoke make lint and make test, ensuring local and remote CI gates remain strictly synchronized.
  3. CONTRIBUTING.md:
    • Document make lint and make check in the build, test, and lint instructions.

Verification

  • Validated Makefile tab indentation across all recipe lines.
  • Validated .github/workflows/ci.yml YAML syntax.
  • Verified clean atomic git diff.

MergeFi#865)

Signed-off-by: Kleiton Bernardino <kleiton.bernardino@gmail.com>
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

@kleitonbernardino-lab is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@chonilius chonilius closed this Nov 12, 2026
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.

The Makefile has no clippy or lint target, and its fmt target writes instead of checking, so contributors cannot reproduce the CI gates locally

2 participants