-
Notifications
You must be signed in to change notification settings - Fork 96
nix: Full reformat according to RFC 166 #7161
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
Conversation
📝 WalkthroughWalkthroughThis set of changes focuses on reformatting and restructuring various Nix expression files for improved readability and stylistic consistency. The updates include adjustments to argument lists, attribute set formatting, list indentation, and shell script string formatting. No modifications are made to logic, functionality, exported entities, or control flow; all changes are purely stylistic. Changes
Sequence Diagram(s)No sequence diagrams generated, as the changes are purely stylistic and do not introduce or modify control flow or feature logic. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (10)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (39)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 10 changed files in this pull request and generated no comments.
Files not reviewed (9)
- nix/cargo-bench.nix: Language not supported
- nix/ciShell.nix: Language not supported
- nix/ciTestShell.nix: Language not supported
- nix/devShell.nix: Language not supported
- nix/docker-builder.nix: Language not supported
- nix/mkShell.nix: Language not supported
- nix/rust-builder.nix: Language not supported
- nix/rust-package.nix: Language not supported
- nix/testShell.nix: Language not supported
This pull request refactors multiple Nix files to improve code readability and maintainability by adopting a consistent formatting style. The changes primarily involve restructuring function arguments, reformatting lists, and improving indentation. Additionally, some minor logic adjustments and cleanups were made to streamline the code.
General Refactoring and Formatting:
nix/cargo-bench.nix
- [1]nix/ciShell.nix
- [2]nix/ciTestShell.nix
- [3]nix/devShell.nix
- [4]nix/docker-builder.nix
- [5]nix/mkShell.nix
- [6]nix/rust-builder.nix
- [7]nix/rust-package.nix
- [8]nix/testShell.nix
- [9]Logic Adjustments:
useRustNightly
innix/mkShell.nix
andnix/rust-builder.nix
to improve readability. ([[1]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-752d0fd4b5e4e869e73b3d6595c90ab223165d9d05b313ccd3f6da6558ea788dL3-R23)
,[[2]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-e6d1fdf69580149a5e1ca677e574a38ec6801a9ef0030e8a87ff0cda25fe3d2bL59-R70)
)nix/rust-package.nix
. ([[1]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-ddb90233e19f19be4cba88e3a2de97470eef8a4628cbb184f1d2d40df3b443b6L47-R50)
,[[2]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-ddb90233e19f19be4cba88e3a2de97470eef8a4628cbb184f1d2d40df3b443b6L93-R118)
)Consistent Formatting of Lists and Attributes:
nix/docker-builder.nix
,nix/rust-package.nix
, andnix/rust-builder.nix
. ([[1]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-d713e6aeb3aba5d4d7830fb2b36f236ef03336c65c7b85f56c66f7aa84e58577L1-R21)
,[[2]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-ddb90233e19f19be4cba88e3a2de97470eef8a4628cbb184f1d2d40df3b443b6L93-R118)
,[[3]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-e6d1fdf69580149a5e1ca677e574a38ec6801a9ef0030e8a87ff0cda25fe3d2bL69-R88)
)Improvements to Shell Hooks:
nix/testShell.nix
to improve readability and ensure consistent formatting for multi-line strings. ([nix/testShell.nixL19-R29](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-8c24d44470b8ff447664f6c19883951182e3ad0ac0539462dd5ecafd9a832996L19-R29)
)Cleanup of Redundant Code:
nix/rust-builder.nix
andnix/rust-package.nix
, to streamline the code. ([[1]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-e6d1fdf69580149a5e1ca677e574a38ec6801a9ef0030e8a87ff0cda25fe3d2bL42-R53)
,[[2]](https://github.com/hoprnet/hoprnet/pull/7161/files#diff-ddb90233e19f19be4cba88e3a2de97470eef8a4628cbb184f1d2d40df3b443b6L154-R172)
)