Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1135UsingDirectivesMustBeQualified threw an exception of type 'System.ArgumentNullException' with message 'Value cannot be null. (Parameter 'syntax') #3916

Open
Senderek opened this issue Feb 12, 2025 · 1 comment

Comments

@Senderek
Copy link

.NET version: 9.0.1
Stylecop version: 1.2.0-beta.556

Error:
##[error]CSC(0,0): Error AD0001: Analyzer 'StyleCop.Analyzers.ReadabilityRules.SA1135UsingDirectivesMustBeQualified' threw an exception of type 'System.ArgumentNullException' with message 'Value cannot be null. (Parameter 'syntax')'.

Line that triggers it:
using RequestResponse = (int UpdateCount, int CreateCount);

so using directive that is an alias for a new tuple.

@bjornhellander
Copy link
Contributor

Looks like a duplicate of #3882

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

No branches or pull requests

2 participants