Skip to content

CSHARP-6189: Make the license headers, encoding and line endings uniform and enforce them in CI - #2096

Open
papafe wants to merge 2 commits into
mongodb:mainfrom
papafe:csharp6189
Open

CSHARP-6189: Make the license headers, encoding and line endings uniform and enforce them in CI#2096
papafe wants to merge 2 commits into
mongodb:mainfrom
papafe:csharp6189

Conversation

@papafe

@papafe papafe commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

https://jira.mongodb.org/browse/CSHARP-6189

This normalizes every header to a single banner with a uniform 2010 year, updates the Rider file templates to match, and adds a CI check so they cannot drift apart again. It also sets charset = utf-8 and end_of_line = lf for .cs files and normalizes the tree to match, so encoding and line endings are enforced by the dotnet format check we already run.

Nothing changes beyond license headers, the BOM and line endings. src/MongoDB.Driver/Authentication/SaslPrepHelper.cs is excluded, as Apache-2.0 section 4 requires retaining its dual-license attribution.

@papafe
papafe requested a review from a team as a code owner August 11, 2026 12:55
@papafe
papafe requested review from BorisDog and a lite review from Copilot August 11, 2026 12:55

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@papafe papafe added the maintenance Non-code maintenance (deps, docs, configs, etc.). label Aug 11, 2026
@papafe papafe changed the title CSHARP-6189: Make the license headers uniform and enforce them in CI CSHARP-6189: Make the license headers, encoding and line endings uniform and enforce them in CI Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Non-code maintenance (deps, docs, configs, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants