Repository navigation
docs: add the empty line after a declaration to the agent instructions - #66
Merged
Merged
Conversation
The maintainer asked for the rule in the review of #64: an empty line follows the declaration line of a module, and of a type that has members, before the first member, binding or nested declaration. A record or a union keeps its fields or cases directly under the declaration. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The documentation change is clear, correctly placed, and consistent with the stated scope.
0 open findings
What changed in this PR
Adds the requested F# layout convention to the shared agent instructions.
Changes:
- Requires an empty line after module and member-bearing type declarations.
- Documents record and union exceptions with an example.
| File | Description |
|---|---|
.github/copilot-instructions.md |
Adds the F# declaration layout rule. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
xperiandri
force-pushed
the
docs/blank-line-after-declaration
branch
from
October 17, 2026 22:31
16dd77f to
4f3a65e
Compare
xperiandri
force-pushed
the
docs/blank-line-after-declaration
branch
from
October 17, 2026 23:38
4f3a65e to
92a9e09
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
The rule that the maintainer asked for in the review of #64 (
build/build.fs,module DocsTool =): an empty line follows the declaration line of a module, and of a type that has members.The rule goes into the agent instructions (
.github/copilot-instructions.md, whichCLAUDE.mdimports), in a new sectionLayoutafterLanguage and Tooling. It names the declarations that it is about (module Name =,type Name () =,type IName =), and says that a record or a union keeps its fields or cases directly under the declaration, since an empty line there would separate nothing from nothing.The code of
src/Cosmosalready follows it for its modules (CosmosName,ResponseMessage,Operations,TaskSeq, and so on); some of the older builders andbuild/build.fsdo not, and are changed when they are touched.Types of changes
What types of changes does your code introduce to FSharp.Azure.Cosmos?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
🤖 Generated with Claude Code