CI / Build and test (SQLite) (pull_request) Successful in 43s
CI / PostgreSQL 16 integration (pull_request) Skipped
CI / PostgreSQL 17 integration (pull_request) Skipped
CI / YAML check (pull_request) Successful in 15s
CI / Docker image (pull_request) Successful in 59s
Start development with the skeleton every later milestone builds on, so that code, image and release path exist and are verified from day one. - Khaemhat.sln with the ten projects of SPEC section 3 and six MSTest projects; shared build rules with warnings as errors, analyzers and Central Package Management restricted to the allowlist. - Architecture tests and scripts/check-packages.sh fail on any project reference or package that SPEC does not allow. - Khaemhat.Web serves an Italian "under construction" page with the official icons and version, plus /health/live, /health/ready and /health (ADR 0012); honours KHAEMHAT_URLS and KHAEMHAT_LOG_LEVEL. - docker/Dockerfile (non-root app user aligned to PUID/PGID by the entrypoint, pg_dump 17, healthcheck, OCI and Unraid labels) and compose files for PostgreSQL and a standalone SQLite demo. - Gitea Actions: ci.yml (build, tests, image smoke test, PostgreSQL 16/17 on tags, YAML check), release.yml (image and release from a vX.Y.Z tag, skipping versions already published) and wiki.yml. - Development scripts, VS Code launch/tasks for debugging, and ADR 0012-0017 deciding the M0 open points of docs/STATUS.md. Closes #1, #2, #3, #4, #5, #114 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74 lines
2.9 KiB
INI
74 lines
2.9 KiB
INI
# Khaemhat code style (SPEC §1.11, §19). Build enforces analyzers and code style (EnforceCodeStyleInBuild).
|
|
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
[*.{csproj,props,targets,xml,json,yml,yaml,razor.css,css,js,html,svg}]
|
|
indent_size = 2
|
|
|
|
[*.razor]
|
|
indent_size = 4
|
|
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
|
|
[*.sh]
|
|
end_of_line = lf
|
|
|
|
[*.cs]
|
|
# Namespaces and usings
|
|
csharp_style_namespace_declarations = file_scoped:warning
|
|
dotnet_sort_system_directives_first = true
|
|
csharp_using_directive_placement = outside_namespace:warning
|
|
|
|
# var and expression style
|
|
csharp_style_var_for_built_in_types = true:suggestion
|
|
csharp_style_var_when_type_is_apparent = true:suggestion
|
|
csharp_style_var_elsewhere = true:suggestion
|
|
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
|
|
csharp_style_expression_bodied_properties = true:suggestion
|
|
csharp_prefer_braces = when_multiline:suggestion
|
|
dotnet_style_qualification_for_field = false:warning
|
|
dotnet_style_qualification_for_property = false:warning
|
|
dotnet_style_qualification_for_method = false:warning
|
|
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
|
|
dotnet_style_readonly_field = true:warning
|
|
csharp_style_prefer_primary_constructors = true:suggestion
|
|
|
|
# Naming: private fields _camelCase, constants PascalCase
|
|
dotnet_naming_rule.private_fields.symbols = private_fields
|
|
dotnet_naming_rule.private_fields.style = underscore_camel
|
|
dotnet_naming_rule.private_fields.severity = warning
|
|
dotnet_naming_symbols.private_fields.applicable_kinds = field
|
|
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
|
|
dotnet_naming_style.underscore_camel.required_prefix = _
|
|
dotnet_naming_style.underscore_camel.capitalization = camel_case
|
|
dotnet_naming_rule.constants.symbols = constants
|
|
dotnet_naming_rule.constants.style = pascal
|
|
dotnet_naming_rule.constants.severity = warning
|
|
dotnet_naming_symbols.constants.applicable_kinds = field
|
|
dotnet_naming_symbols.constants.required_modifiers = const
|
|
dotnet_naming_style.pascal.capitalization = pascal_case
|
|
|
|
# Analyzer adjustments (each with its reason)
|
|
# CA1515 (make types internal): Khaemhat is an application, but its libraries are consumed across projects.
|
|
dotnet_diagnostic.CA1515.severity = none
|
|
# CA1848/CA1873 (LoggerMessage delegates): adopted where logging is hot (Infrastructure/Logging, M2), not everywhere.
|
|
dotnet_diagnostic.CA1848.severity = suggestion
|
|
dotnet_diagnostic.CA1873.severity = suggestion
|
|
# CA2007 (ConfigureAwait): ASP.NET Core has no synchronization context.
|
|
dotnet_diagnostic.CA2007.severity = none
|
|
# IDE0005 (unnecessary using) needs GenerateDocumentationFile, which is on: keep it as an error-free warning.
|
|
dotnet_diagnostic.IDE0005.severity = warning
|
|
|
|
[tests/**.cs]
|
|
# CA1707 (underscores in names): test names read as Method_Condition_Result.
|
|
dotnet_diagnostic.CA1707.severity = none
|
|
# MSTEST0037 and friends stay at their defaults.
|