-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add development_guidelines.md
for both human and machine
#9696
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
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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:
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
CodeRabbit Configuration File (
|
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 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
docs/code_formatting_rules.md:1
- Since this file has been removed, please ensure that all references to docs/code_formatting_rules.md elsewhere in the repository have been updated to point to the new development guidelines file.
# Code formatting rules
.github/pull_request_template.md:15
- Verify that the section 'code-documentation-and-commenting' exists in the new development_guidelines.md file, and update the link if needed.
- [ ] The change obeys the [Code Documentation and Commenting](https://github.com/lightningnetwork/lnd/blob/master/docs/development_guidelines.md#code-documentation-and-commenting) guidelines, and lines wrap at 80.
docs/code_contribution_guidelines.md:141
- Ensure that any test coverage guidelines previously found in the Testing section are adequately referenced or integrated into the new consolidated development guidelines, to avoid missing test requirements.
## Development Guidelines
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.
Nice, thank you! LGTM 🎉
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.
LGTM 🤖 nice idea!
There are two broken links, which need changes
docs/development_guidelines.md
Outdated
Blocks of code within `lnd` should be segmented into logical stanzas of | ||
operation. Such spacing makes the code easier to follow at a skim, and reduces | ||
unnecessary line noise. Coupled with the commenting scheme specified in the | ||
[contribution guide](./code_contribution_guidelines.md#code-documentation-and-commenting), |
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.
That link broke, we can just keep the # part, as this references a section in this doc
There is also a line that needs update in review.md, I think:
- Is the flow of the commits easy to understand? Does the order make sense?
See the [code development
guidelines](docs/development_guidelines.md#ideal-git-commit-structure) for
more information on this.
I'm not sure if this needs to be relative to the root dir or relative to docs.
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.
Nice thanks!
This file focuses on the requirements and steps needed to make an acceptable PR.
When running aider I'd use both
code_contribution_guidelines.md
anddocs/code_formatting_rules.md
as the convention file, while only a portion ofcode_contribution_guidelines.md
is used, which can waste tokens.This PR moves all the coding related requirements into one file to guide aider, so one can add the line to its config,
The
## Testing
section is expanded with details on how to run the unit test, so the aider will produce sth like,