Skip to content

Refactor Source Generator#87

Merged
marcominerva merged 3 commits intomasterfrom
develop
Jul 28, 2025
Merged

Refactor Source Generator#87
marcominerva merged 3 commits intomasterfrom
develop

Conversation

@marcominerva
Copy link
Copy Markdown
Owner

This pull request introduces several changes across multiple files to enhance workflow permissions, simplify the codebase, and improve functionality for routing analyzers. The most significant changes include adding permissions to GitHub workflows, transitioning from .sln to .slnx format for solution files, refactoring the EndpointRouteHandlerGenerator class, and removing unused code.

Workflow Enhancements:

  • .github/workflows/publish_fluentvalidation.yml, .github/workflows/publish_routing.yml, .github/workflows/publish_routing_analyzers.yml, .github/workflows/publish_validation.yml: Added permissions for contents, packages, and actions to ensure proper access during publishing workflows. [1] [2] [3] [4]

Solution File Transition:

  • Removed MinimalHelpers.sln and replaced it with MinimalHelpers.slnx, which introduces a more structured and XML-based format for managing projects and solution items. [1] [2]

Routing Analyzer Refactor:

Code Cleanup:

  • Removed src/MinimalHelpers.Routing.Analyzers/TypeDeclarationSyntaxExtensions.cs as it contained unused extension methods for syntax analysis.

Version Update:

Updated multiple YAML files to include a `permissions` section specifying `contents: read`, `packages: write`, and `actions: write`. This change ensures that the workflows have the necessary permissions for successful execution on push to the master branch and manual triggers.
- Refactored `EndpointRouteHandlerGenerator` in `EndpointRouteHandlerGenerator.cs` to improve class processing and validation, and added a method for interface registration.
- Removed `TypeDeclarationSyntaxExtensions.cs`, which contained unused extension methods.
@marcominerva marcominerva merged commit 57e919d into master Jul 28, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant