Skip to content

Conversation

benalleng
Copy link
Contributor

We had a hard time getting the lint working locally with a standard cargo clippy command and as a result we should probably ensure that we all have a standardized way of linting the source in the repo.

@benalleng
Copy link
Contributor Author

@0xBEEFCAF3 I think our problem was some conflicts in our version tree from possibly having work before 0.23.0


# Run clippy at top level for crates without feature-specific checks
echo "Running workspace lint..."
cargo +nightly clippy --all-targets --keep-going --all-features -- -D warnings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is it ok that I added +nightly here? not sure if that is something we always want to be the case for lints

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we implictly use nightly for rust-payjoin so that should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do

Copy link
Contributor

Choose a reason for hiding this comment

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

Note that this does assume that the runner is installed using rustup, which may not always be the case

Copy link
Contributor

@arminsabouri arminsabouri left a comment

Choose a reason for hiding this comment

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

tACK 9af573a

We had a hard time getting the lint working locally with a standard
cargo clippy command and as a result we should probably ensure that
we all have a standardized way of linting the source in the repo.
@DanGould
Copy link
Contributor

I'm comfortable merging on armin's ack, but the commit hash changed. Ideally we run this from flake-configured rust version but for now I'm not completely opposed to the concept for this repo.

Copy link
Contributor

@arminsabouri arminsabouri left a comment

Choose a reason for hiding this comment

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

Re-ACK f952399

@benalleng
Copy link
Contributor Author

benalleng commented Apr 29, 2025

Sorry! I had split the add lint file and clippy fixes just as I got the review

@DanGould DanGould merged commit 7c32c41 into LtbLightning:main Apr 29, 2025
10 checks passed
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.

3 participants