Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .codespellignore
Empty file.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = ./.git,./bin,./obj,./worktrees,./.config,*.lock,*.lockfile,./TestResults
ignore-words = .codespellignore
8 changes: 8 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
default: true

# MD013 line-length — prose lines aren't worth wrapping at 80.
MD013: false
# MD024 duplicate headings — common in changelogs/READMEs with repeated section names.
MD024: false
# MD033 inline HTML — README uses <details>, <kbd>, etc.
MD033: false
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: ["--branch", "master"]
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: check-json
- id: detect-private-key

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ["--config", ".codespellrc", "--check-filenames"]

- repo: local
hooks:
- id: csharpier
name: csharpier format
entry: dotnet csharpier check
language: system
files: \.(cs|csproj|props|slnx)$
pass_filenames: false
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,18 @@ All of this is translated into standard EF Core migrations — no manual SQL req

LINQ methods on `EF.Functions` are translated to SQL via `IMethodCallTranslatorPlugin`. The mapping for each method is shown alongside its example in the [Querying](#querying) section above.

## Contributing

The repo uses [CSharpier](https://csharpier.com) for formatting and a [`prek`](https://github.com/j178/prek) (or `pre-commit`-compatible) hook bundle for the usual hygiene checks (`end-of-file-fixer`, `trailing-whitespace`, `markdownlint`, `codespell`, etc.).

```bash
dotnet tool restore # installs CSharpier locally
prek install -f # installs the pre-commit hooks
prek run --all-files # one-off sweep over the whole repo
```

CI runs the same checks (CSharpier check + `-warnaserror` build) in the `lint` job, so even contributors who skip the local hooks get caught at PR time.

## License

[MIT](LICENSE)
Expand Down
Loading