Skip to content

Update SA1135UsingDirectivesMustBeQualified to not crash on a UsingDirectiveSyntax without a Name - #3883

Merged
AArnott merged 2 commits into
DotNetAnalyzers:masterfrom
bjornhellander:feature/sa1135-using-type-alias
Oct 7, 2026
Merged

AArnott merged 2 commits into
DotNetAnalyzers:masterfrom
bjornhellander:feature/sa1135-using-type-alias

Conversation

@bjornhellander

Copy link
Copy Markdown
Contributor

Fixes #3882.

@codecov

codecov Bot commented Aug 5, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.45%. Comparing base (ff5c432) to head (ea5e0d9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3883   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files         926      927    +1     
  Lines      110237   110265   +28     
  Branches     3315     3316    +1     
=======================================
+ Hits       107433   107461   +28     
  Misses       1837     1837           
  Partials      967      967           

@bjornhellander
bjornhellander force-pushed the feature/sa1135-using-type-alias branch from d4b0351 to ea5e0d9 Compare August 6, 2024 07:54
@bjornhellander

Copy link
Copy Markdown
Contributor Author

So far, this pull request only prevents the exception. I assume that the analyzer should also be updated to check all the new types of aliases that can be created now. I have started looking at that as well, but it seems to be less trivial. Would it be ok to save that for another pull request if I create a separate issue for that, @sharwell?

@bjornhellander
bjornhellander marked this pull request as ready for review August 6, 2024 08:41
@sharwell

Copy link
Copy Markdown
Member

I'll finish updating this after #3678 merges

@AArnott
AArnott enabled auto-merge October 7, 2026 15:52
@AArnott
AArnott merged commit 425220e into DotNetAnalyzers:master Oct 7, 2026
31 of 36 checks passed
@bjornhellander
bjornhellander deleted the feature/sa1135-using-type-alias branch October 8, 2026 19:32
This was referenced Nov 11, 2026
This was referenced Nov 20, 2026
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.

SA1135 throws exception for type keywords

3 participants