Skip to content

chore: document quality gates baseline#395

Merged
JerrettDavis merged 1 commit into
mainfrom
chore/quality-gates-baseline
May 28, 2026
Merged

chore: document quality gates baseline#395
JerrettDavis merged 1 commit into
mainfrom
chore/quality-gates-baseline

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Summary

  • Adds a root .editorconfig so editors have a shared baseline for C# and docs formatting.
  • Documents PatternKit quality gates, TinyBDD expectations, package currency checks, and known format/analyzer baseline work.
  • Makes shared ScenarioExpect string assertions nullable-safe so tests can assert nullable output without compiler noise.
  • Baselines remaining nullable-flow warnings in test projects where scenarios intentionally inspect generated/reflection output.

Audit follow-ups opened

Verification

  • dotnet build PatternKit.slnx --configuration Release --no-restore -m:1
  • dotnet test test\PatternKit.Tests\PatternKit.Tests.csproj --configuration Release --framework net8.0 --no-build --logger "console;verbosity=minimal"
  • dotnet test test\PatternKit.Generators.Tests\PatternKit.Generators.Tests.csproj --configuration Release --framework net8.0 --no-build --logger "console;verbosity=minimal"
  • dotnet test test\PatternKit.Examples.Tests\PatternKit.Examples.Tests.csproj --configuration Release --framework net8.0 --no-build --logger "console;verbosity=minimal"
  • dotnet test test\PatternKit.Hosting.Extensions.Tests\PatternKit.Hosting.Extensions.Tests.csproj --configuration Release --no-build --logger "console;verbosity=minimal" -p:TestTfmsInParallel=false
  • docfx docs\docfx.json --warningsAsErrors
  • dotnet list PatternKit.slnx package --outdated

Notes: dotnet format PatternKit.slnx --verify-no-changes still fails on historical formatting; #393 tracks the dedicated mechanical baseline PR. JetBrains InspectCode was not available on PATH in this environment.

Copilot AI review requested due to automatic review settings May 28, 2026 00:08
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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.

Pull request overview

This PR establishes a documented baseline for PatternKit quality gates while making shared test assertions friendlier to nullable string inputs.

Changes:

  • Adds a root .editorconfig for shared C# and documentation formatting settings.
  • Adds a new quality-gates guide and links it from the guides TOC.
  • Updates shared test string assertions and nullable warning baselines in test projects.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.editorconfig Defines baseline formatting and style settings.
docs/guides/quality-gates.md Documents local validation, TinyBDD expectations, package checks, formatting, and analyzer baseline policy.
docs/guides/toc.yml Adds the new Quality Gates guide to the guides navigation.
test/ScenarioExpect.cs Allows selected string assertion helpers to accept nullable actual strings safely.
test/PatternKit.Tests/PatternKit.Tests.csproj Adds nullable-flow warning suppressions to the test baseline.
test/PatternKit.Generators.Tests/PatternKit.Generators.Tests.csproj Adds a nullable dereference warning suppression to the generator test baseline.
test/PatternKit.Examples.Tests/PatternKit.Examples.Tests.csproj Adds a nullable dereference warning suppression to the examples test baseline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -10,7 +10,7 @@
CS0618: Tests intentionally use obsolete APIs to verify backward compatibility
@@ -8,7 +8,7 @@
<!-- Suppress warnings:
@@ -9,7 +9,7 @@
CS1591: Missing XML comment (examples don't need docs)
CS0649: Field never assigned (used in serialization scenarios)
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    12 files      12 suites   8m 38s ⏱️
 3 513 tests  3 513 ✅ 0 💤 0 ❌
10 550 runs  10 550 ✅ 0 💤 0 ❌

Results for commit 0193aa0.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Validation Results

Version: ``

✅ Validation Steps

  • Build solution
  • Run tests
  • Build documentation
  • Dry-run NuGet packaging

📊 Artifacts

Dry-run artifacts have been uploaded and will be available for 7 days.


This comment was automatically generated by the PR validation workflow.

@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.63%. Comparing base (d56978c) to head (0193aa0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #395      +/-   ##
==========================================
+ Coverage   89.56%   95.63%   +6.07%     
==========================================
  Files         530      530              
  Lines       42899    42899              
  Branches     6203     6203              
==========================================
+ Hits        38421    41027    +2606     
+ Misses       2022     1872     -150     
+ Partials     2456        0    -2456     
Flag Coverage Δ
unittests 95.63% <ø> (+6.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Summary
  Generated on: 05/28/2026 - 00:13:54
  Coverage date: 05/28/2026 - 00:11:11 - 05/28/2026 - 00:13:41
  Parser: MultiReport (12x Cobertura)
  Assemblies: 5
  Classes: 1613
  Files: 649
  Line coverage: 94.6%
  Covered lines: 42063
  Uncovered lines: 2386
  Coverable lines: 44449
  Total lines: 97120
  Branch coverage: 75.5% (12375 of 16380)
  Covered branches: 12375
  Total branches: 16380
  Method coverage: 96% (8425 of 8770)
  Full method coverage: 88.1% (7732 of 8770)
  Covered methods: 8425
  Fully covered methods: 7732
  Total methods: 8770

PatternKit.Core                                                                                                     95.4%
  PatternKit.Application.ActivityTracking.ActivityGateState                                                          100%
  PatternKit.Application.ActivityTracking.ActivityLease                                                              100%
  PatternKit.Application.ActivityTracking.ActivityRecord                                                             100%
  PatternKit.Application.ActivityTracking.ActivityTracker                                                            100%
  PatternKit.Application.AntiCorruption.AntiCorruptionLayer<T1, T2>                                                 90.4%
  PatternKit.Application.AntiCorruption.AntiCorruptionResult<T>                                                      100%
  PatternKit.Application.AuditLog.AuditLogAppendResult<T>                                                           85.7%
  PatternKit.Application.AuditLog.InMemoryAuditLog<T1, T2>                                                          95.4%
  PatternKit.Application.DataMapping.DataMapper<T1, T2>                                                             94.6%
  PatternKit.Application.DataMapping.DataMapperError                                                                  90%
  PatternKit.Application.DataMapping.DataMapperResult<T>                                                            84.6%
  PatternKit.Application.DomainEvents.DomainEventDispatcher<T>                                                      95.4%
  PatternKit.Application.DomainEvents.DomainEventDispatchResult                                                      100%
  PatternKit.Application.EventSourcing.EventStoreAppendResult                                                        100%
  PatternKit.Application.EventSourcing.InMemoryEventStore<T1, T2>                                                   97.9%
  PatternKit.Application.EventSourcing.StoredEvent<T1, T2>                                                            80%
  PatternKit.Application.FeatureToggles.FeatureToggleDecision                                                       87.5%
  PatternKit.Application.FeatureToggles.FeatureToggleRule<T>                                                         100%
  PatternKit.Application.FeatureToggles.FeatureToggleSet<T>                                                         96.9%
  PatternKit.Application.IdentityMap.IdentityMap<T1, T2>                                                             100%
  PatternKit.Application.IdentityMap.IdentityMapResult<T>                                                           92.8%
  PatternKit.Application.MaterializedViews.MaterializedView<T1, T2>                                                 98.4%
  PatternKit.Application.Repository.InMemoryRepository<T1, T2>                                                      92.8%
  PatternKit.Application.Repository.RepositoryResult<T>                                                             93.3%
  PatternKit.Application.ServiceLayer.ServiceLayerOperation<T1, T2>                                                 96.7%
  PatternKit.Application.ServiceLayer.ServiceLayerResult<T>                                                         94.7%
  PatternKit.Application.ServiceLayer.ServiceLayerRule<T>                                                            100%
  PatternKit.Application.Specification.Specification<T>                                                              100%
  PatternKit.Application.Specification.SpecificationRegistry<T>                                                     93.3%
  PatternKit.Application.TableDataGateway.InMemoryTableDataGateway<T1, T2>                                            86%
  PatternKit.Application.TableDataGateway.TableGatewayResult<T>                                                     82.3%
  PatternKit.Application.TransactionScript.TransactionScript<T1, T2>                                                  97%
  PatternKit.Application.TransactionScript.TransactionScriptError                                                     90%
  PatternKit.Application.TransactionScript.TransactionScriptResult<T>                                                100%
  PatternKit.Application.UnitOfWork.UnitOfWork                                                                      90.9%
  PatternKit.Application.UnitOfWork.UnitOfWorkResult                                                                94.7%
  PatternKit.Application.UnitOfWork.UnitOfWorkRollbackResult                                                         100%
  PatternKit.Application.UnitOfWork.UnitOfWorkStep                                                                   100%

@JerrettDavis JerrettDavis merged commit 277c30d into main May 28, 2026
13 checks passed
@JerrettDavis JerrettDavis deleted the chore/quality-gates-baseline branch May 28, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants