Skip to content

[Feature] Create analyzer#3981

Merged
iancooper merged 19 commits into
BrighterCommand:masterfrom
AboubakrNasef:Create-Analyzer
Feb 19, 2026
Merged

[Feature] Create analyzer#3981
iancooper merged 19 commits into
BrighterCommand:masterfrom
AboubakrNasef:Create-Analyzer

Conversation

@AboubakrNasef

Copy link
Copy Markdown
Contributor

the current implemented analyzers will be reporting :
Warning about missing RequestType on publication
Warning about RequestType on publication doesn't implement IRequest
Warning about missing messagePump
Warning when you tries to wrapper attribute in MapToRequest
Warning when you tries to unwrapper attribute in MapToMessage

#3681

codescene-delta-analysis[bot]

This comment was marked as outdated.

@iancooper

Copy link
Copy Markdown
Member

This looks valuable, thank you. Can you do me a favour and put together a short ADR to describe it. That also helps for generating documentation. But otherwise happy to merge

codescene-delta-analysis[bot]

This comment was marked as outdated.

@AboubakrNasef

Copy link
Copy Markdown
Contributor Author

This looks valuable, thank you. Can you do me a favour and put together a short ADR to describe it. That also helps for generating documentation. But otherwise happy to merge

sure i will do

@iancooper iancooper added 2 - In Progress dependencies Pull requests that update a dependency file feature request .NET Pull requests that update .net code V10.X labels Jan 21, 2026
Comment thread src/Paramore.Brighter.Analyzer.Package/tools/install.ps1
Comment thread src/Paramore.Brighter.Analyzer/Visitors/Symbol/WrapAttributeSymbolVisitor.cs Outdated
Comment thread src/Paramore.Brighter.Analyzer/Visitors/Symbol/WrapAttributeSymbolVisitor.cs Outdated
Comment thread src/Paramore.Brighter.ServiceActivator.Control.Api/Properties/launchSettings.json Outdated
codescene-delta-analysis[bot]

This comment was marked as outdated.

Comment thread docs/adr/0037-provide-roslyn-analyzers-for-brighter.md
codescene-delta-analysis[bot]

This comment was marked as outdated.

@iancooper

Copy link
Copy Markdown
Member

@AboubakrNasef Thanks for the ADR. I will give it a full review tomorrow. I think that Roslyn Analyzers to help with configuration are a great idea.

iancooper

This comment was marked as duplicate.

@iancooper

iancooper commented Jan 28, 2026

Copy link
Copy Markdown
Member

@AboubakrNasef Thanks for the ADR.

Can you fix the following for Claude's review (above):

Issues to Address

  1. Typo in namespace: Vistiors vs Visitors
  2. Duplicate word in diagnostic title
  3. Incomplete ADR for WrapAttributeAnalyzer
  4. Hardcoded package version
  5. Missing newlines at end of files
  6. Resources.resx contains placeholder text
  7. AnalyzerReleases.Shipped.md missing descriptions

Thanks. Keen to get started on Analyzer help, so looking forward to this tidying so that we can get it in

@iancooper iancooper changed the title Create analyzer [Feature] Create analyzer Jan 28, 2026
codescene-delta-analysis[bot]

This comment was marked as outdated.

@AboubakrNasef

Copy link
Copy Markdown
Contributor Author

@AboubakrNasef Thanks for the ADR.

Can you fix the following for Claude's review (above):

Issues to Address

  1. Typo in namespace: Vistiors vs Visitors
  2. Duplicate word in diagnostic title
  3. Incomplete ADR for WrapAttributeAnalyzer
  4. Hardcoded package version
  5. Missing newlines at end of files
  6. Resources.resx contains placeholder text
  7. AnalyzerReleases.Shipped.md missing descriptions

Thanks. Keen to get started on Analyzer help, so looking forward to this tidying so that we can get it in

thanks for the review
i've pushed the fixes 👌

@iancooper

Copy link
Copy Markdown
Member

@AboubakrNasef Do me a favor and merge master, then I will get it out asap

codescene-delta-analysis[bot]

This comment was marked as outdated.

@AboubakrNasef

Copy link
Copy Markdown
Contributor Author

@AboubakrNasef Do me a favor and merge master, then I will get it out asap

here we go i've merged with master

@iancooper

Copy link
Copy Markdown
Member

@AboubakrNasef There seems to be a build issue around names. Presumably a merge issue. Can you take a look?

codescene-delta-analysis[bot]

This comment was marked as outdated.

@codescene-delta-analysis codescene-delta-analysis 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.

Gates Passed
4 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@AboubakrNasef

Copy link
Copy Markdown
Contributor Author

i've fixed the issues if you can take a look @iancooper

@iancooper

Copy link
Copy Markdown
Member

@AboubakrNasef Cool. I will need to get it into the build, but let me raise a separate issue so that I can handle that. The failing tests here a separate issue, and not from this work.

Thanks, once this is in, we can more easily add new skills.

@iancooper iancooper merged commit 85a7869 into BrighterCommand:master Feb 19, 2026
20 of 29 checks passed
DevJonny pushed a commit to DevJonny/Brighter that referenced this pull request Feb 28, 2026
* init brighter analyzer

* add message pump analyzer

* finalize subscription analyzer

* add analyzer for the wrapper Attributes

* wip Rules documentation

* enhance csproj

* clean some files

* resolve comments

* add adr

* resolve comments

* refactor the function of report attributes

* fix pr comments wip

* remove resources.resx and packageid

* add WrapAttributeAnalyzer to the adr

* add missing tests project

* remove package id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Done dependencies Pull requests that update a dependency file feature request .NET Pull requests that update .net code V10.X

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants