Skip to content

docs: add the empty line after a declaration to the agent instructions - #66

Merged
xperiandri merged 1 commit into
mainfrom
docs/blank-line-after-declaration
Oct 18, 2026
Merged

xperiandri merged 1 commit into
mainfrom
docs/blank-line-after-declaration

Conversation

@xperiandri

Copy link
Copy Markdown
Collaborator

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.

module DocsTool =

    let quoted s = $"\"%s{s}\""

The rule goes into the agent instructions (.github/copilot-instructions.md, which CLAUDE.md imports), in a new section Layout after Language 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/Cosmos already follows it for its modules (CosmosName, ResponseMessage, Operations, TaskSeq, and so on); some of the older builders and build/build.fs do 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 x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in 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.

  • Build and tests pass locally - nothing but a Markdown file changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate) - none apply to an instruction
  • I have added necessary documentation (if appropriate) - this is the documentation

Further comments

  • Not in this pull request: reformatting the code that does not follow the rule.

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 01:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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
xperiandri force-pushed the docs/blank-line-after-declaration branch from 16dd77f to 4f3a65e Compare October 17, 2026 22:31
@xperiandri
xperiandri force-pushed the docs/blank-line-after-declaration branch from 4f3a65e to 92a9e09 Compare October 17, 2026 23:38
@xperiandri
xperiandri merged commit 5d8f209 into main Oct 18, 2026
15 checks passed
@xperiandri
xperiandri deleted the docs/blank-line-after-declaration branch October 18, 2026 14:16
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.

2 participants