Skip to content

refactor: resolve open Sonar maintainability issues - #178

Merged
rodri-oliveira-dev merged 7 commits into
masterfrom
fix/resolve-open-sonar-issues
Sep 9, 2026
Merged

refactor: resolve open Sonar maintainability issues#178
rodri-oliveira-dev merged 7 commits into
masterfrom
fix/resolve-open-sonar-issues

Conversation

@rodri-oliveira-dev

Copy link
Copy Markdown
Owner

Summary

Refactors the open Sonar maintainability findings without changing public API or runtime behavior. The changes reduce cognitive complexity by extracting focused private helpers and remove inner-member shadowing by renaming internal members to names that describe their local responsibility.

Changes

  • Release validation: split common package metadata checks into identity, asset and repository metadata helpers.
  • Core mapping/runtime: decomposed persistence metadata validation, generated materializer matching, reflection member-path parsing, runtime snapshot factory names and constructor materialization naming.
  • Analyzer: decomposed fluent chain analysis, member-path parsing, converter compatibility checks and persistence chain state validation.
  • Source generator: split generated source emission, fluent map chain analysis, member-path parsing, constructor binding selection and renamed generated materialization state members that shadow static helpers.
  • Dommel: decomposed property and column resolution into explicit mapped/default paths.

Issues resolved

Closes #154
Closes #155
Closes #156
Closes #157
Closes #158
Closes #159
Closes #160
Closes #161
Closes #162
Closes #163
Closes #164
Closes #165
Closes #166
Closes #167
Closes #168
Closes #169
Closes #170
Closes #171
Closes #172
Closes #173
Closes #174
Closes #175
Closes #176
Closes #177

Validation

  • dotnet restore .\Dapper.FluentMap.sln passed
  • dotnet build .\Dapper.FluentMap.sln --configuration Release --no-restore passed with 0 warnings and 0 errors
  • dotnet test .\Dapper.FluentMap.sln --configuration Release --no-build passed: 477 total, 463 passed, 14 skipped, 0 failed
  • .\eng\validate-slnx-equivalence.ps1 passed: 14 projects matched
  • dotnet pack .\Dapper.FluentMap.slnx --configuration Release --no-build --output artifacts\validation-open-sonar-issues\packages passed: 5 .nupkg and 3 .snupkg packages created for 3.0.0-dev
  • .\eng\validate-package-metadata.ps1 -PackageDirectory artifacts\validation-open-sonar-issues\packages passed
  • .\eng\validate-release-artifacts.ps1 -PackageDirectory artifacts\validation-open-sonar-issues\packages -Version 3.0.0-dev -Repository rodri-oliveira-dev/Dapper-FluentMap -RepositoryUrl https://github.com/rodri-oliveira-dev/Dapper-FluentMap -Commit <HEAD> -Branch refs/heads/fix/resolve-open-sonar-issues -ManifestPath artifacts\validation-open-sonar-issues\release-metadata\artifact-manifest.json passed
  • git diff --check master...HEAD passed
  • dotnet format .\Dapper.FluentMap.sln --verify-no-changes --verbosity minimal was run and failed on existing repository-wide whitespace/charset/import ordering issues, including many files outside this change; no formatter rewrites were applied.

Compatibility

No public API changes were introduced. Observable runtime behavior and analyzer/generator diagnostic IDs/messages are intended to be preserved; the changes are private/internal refactorings and internal member renames only.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

SonarQube Cloud success

The SonarQube Cloud Quality Gate passed for this PR.

Quality Gate status: OK

Metric Status Actual Threshold
new_reliability_rating OK 1 1
new_security_rating OK 1 1
new_maintainability_rating OK 1 1
new_coverage OK 81.3 80
new_duplicated_lines_density OK 2.2 3
new_security_hotspots_reviewed OK 100.0 100

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b30327d9fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Dapper.FluentMap.Dommel/Resolvers/DommelPropertyResolver.cs Outdated
@rodri-oliveira-dev
rodri-oliveira-dev merged commit d7cf2c3 into master Sep 9, 2026
6 checks passed
@rodri-oliveira-dev
rodri-oliveira-dev deleted the fix/resolve-open-sonar-issues branch September 9, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment