-
Notifications
You must be signed in to change notification settings - Fork 0
feat(standards): canonical C#, SQL, Markdown configs (complete the set) #32
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // Canonical ResQ markdownlint config — copy to a repo root as .markdownlint.jsonc. | ||
| // Encodes docs/standards/02-languages.md (Markdown). | ||
| { | ||
| "default": true, | ||
| "MD013": false, // line length — prose wraps; not a lint error | ||
| "MD033": false, // inline HTML — our READMEs use centered <div>/<img> heroes | ||
| "MD041": false, // first line need not be a heading (template opens with an HTML comment/banner) | ||
| "MD024": { "siblings_only": true }, // duplicate headings ok across sections | ||
| "MD029": { "style": "ordered" } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <!-- | ||
| Canonical ResQ .NET build props. Encodes docs/standards/02-languages.md (C#). | ||
| Unlike the copy-only configs, Directory.Build.props is auto-imported by MSBuild | ||
| from the repo root — drop it in and every project inherits these. Merge into an | ||
| existing Directory.Build.props if one is already present. | ||
| --> | ||
| <Project> | ||
| <PropertyGroup> | ||
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <LangVersion>latest</LangVersion> | ||
|
|
||
| <!-- Built-in Roslyn (.NET) analyzers + code-style enforced at build. --> | ||
| <EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
| <AnalysisLevel>latest-recommended</AnalysisLevel> | ||
| <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
|
|
||
| <!-- Treat warnings as errors in CI; keep local dev builds loud-but-green. --> | ||
| <TreatWarningsAsErrors Condition="'$(CI)' == 'true'">true</TreatWarningsAsErrors> | ||
| <GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
| </PropertyGroup> | ||
| </Project> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # Canonical ResQ SQLFluff config — copy to a repo root as .sqlfluff. | ||
| # Encodes docs/standards/02-languages.md (SQL). Dialect = Postgres (Supabase). | ||
| [sqlfluff] | ||
| dialect = postgres | ||
| templater = jinja | ||
| max_line_length = 100 | ||
|
|
||
| [sqlfluff:indentation] | ||
| indent_unit = space | ||
| tab_space_size = 2 | ||
|
|
||
| [sqlfluff:rules:capitalisation.keywords] | ||
| capitalisation_policy = lower | ||
|
|
||
| [sqlfluff:rules:capitalisation.identifiers] | ||
| extended_capitalisation_policy = lower | ||
|
Comment on lines
+12
to
+16
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In SQLFluff v2.0.0 and later, all rule names and configuration options were renamed from British spelling ( Please update the section headers and configuration keys to use |
||
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.
Enabling
<GenerateDocumentationFile>true</GenerateDocumentationFile>globally triggers compiler warningCS1591(Missing XML comment for publicly visible type or member) for all public APIs. Since<TreatWarningsAsErrors>is enabled in CI, this will break the build for any project containing public members without XML comments (which is common in application projects, controllers, etc.).It is highly recommended to suppress
CS1591globally so that documentation files are still generated (e.g., for Swagger/OpenAPI) without forcing XML comments on every public member.