Groups
Groups
Sign in
Groups
Groups
SonarLint
Conversations
Labels
About
Send feedback
Help
SonarAnalyzer.CSharp - General exceptions should never be thrown (Rule ID: S112) should check that the exception is actually thrown
85 views
Skip to first unread message
oha...@gmail.com
unread,
Jul 26, 2017, 10:08:26 AM
7/26/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SonarLint
It should only trigger for things like:
throw new Exception()
However, as of now it only seems to check for initialization. For example, this will also trigger the rule:
new Exception().ToString()
michal....@sonarsource.com
unread,
Jul 27, 2017, 7:21:55 AM
7/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SonarLint, oha...@gmail.com
Thanks for reporting. I've created a ticket to tweak the rule:
https://github.com/SonarSource/sonar-csharp/issues/608
Regards,
Reply all
Reply to author
Forward
0 new messages