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

AD0001 for S4426: CryptographicKeyShouldNotBeTooShort #6341

Closed
mary-georgiou-sonarsource opened this issue Nov 9, 2022 · 0 comments · Fixed by #6371
Closed

AD0001 for S4426: CryptographicKeyShouldNotBeTooShort #6341

mary-georgiou-sonarsource opened this issue Nov 9, 2022 · 0 comments · Fixed by #6371
Assignees
Labels
Area: C# C# rules related issues. Type: Bug Exceptions and blocking issues during analysis.
Milestone

Comments

@mary-georgiou-sonarsource
Copy link
Contributor

mary-georgiou-sonarsource commented Nov 9, 2022

Description

CSC : warning AD0001: Analyzer 'SonarAnalyzer.Rules.CSharp.CryptographicKeyShouldNotBeTooShort' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. [C:\work\C# Libraries\RestSharp\src\RestSharp\RestSharp.csproj::TargetFramework=net5.0]
  RestSharp -> C:\work\C# Libraries\RestSharp\src\RestSharp\bin\Debug\net5.0\RestSharp.dll
  Sonar: (RestSharp.csproj) Project processed successfully

Repro steps

git clone https://github.com/restsharp/RestSharp.git
git checkout 052357b025da664327747a721a7f978c4c0a124b 
cd RestSharp
dotnet sonarscanner begin /k:restsharp  /d:sonar.login=token
dotnet build .\RestSharp.sln
dotnet sonarscanner end /d:sonar.login=token

Related information

  • C#/VB.NET Plugins version: 8.46.0.54807
  • MSBuild / dotnet version: 17.4.0+18d5aef85 / 7.0.100
  • SonarScanner for .NET version: 5.8
  • Operating System: Windows 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Type: Bug Exceptions and blocking issues during analysis.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants