Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint the linter via clippy + handle/fix findings #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbast
Copy link

@dbast dbast commented Feb 26, 2025

Integrates Clippy linting into the build process via nix flake build, ensuring automated code quality checks for all PRs.

This change includes:

  • Fixed Clippy warnings by:
    • Using #[derive(Default)] for OutFormat enum
    • Correcting parameter references in Label creation
    • Adding is_empty() method to address Clippy recommendation
  • Added #[allow(clippy::borrowed_box)] annotations for cases where fixing would require broader code changes (to be changed by further PRs)
  • Updated GitHub Actions dependencies:
    • actions/checkout from v3 to v4
    • cachix/install-nix-action from v18 to v30 (resolves input parameter warnings). Older versions of cachix/install-nix-action didn't yet support the input parameter github_access_token.
  • Modified flake.nix to include Clippy in the Rust toolchain and run it during the check phase

note: I am a first time contributor to the repo, so the workflow run is awaiting for approval. A green workflow run can be seen in my fork of the repo https://github.com/dbast/statix/actions/runs/13545008940

Integrates Clippy linting into the build process via `nix flake build`,
ensuring automated code quality checks for all PRs.

This change includes:
- Fixed Clippy warnings by:
  - Using `#[derive(Default)]` for OutFormat enum
  - Correcting parameter references in Label creation
  - Adding is_empty() method to address Clippy recommendation
- Added #[allow(clippy::borrowed_box)] annotations for cases where
  fixing would require broader code changes (to be changed by further PRs)
- Updated GitHub Actions dependencies:
  - actions/checkout from v3 to v4
  - cachix/install-nix-action from v18 to v30 (resolves input parameter
    warnings). Older versions of cachix/install-nix-action didn't yet
    support the input parameter `github_access_token`.
- Modified flake.nix to include Clippy in the Rust toolchain and run it
  during the check phase
@dbast
Copy link
Author

dbast commented Feb 26, 2025

@oppiliappan @mightyiam ready for review. thanks!

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.

1 participant