Description
Not all exceptions in C# are proof of exceptional circumstances. For example, the OperationCanceledException is often an expected exception and therefore it should not be flagged as one that should be logged.
Maybe there should be a way to configure this rule on an exception level for example:
S6667 = warning
S6667.OperationCanceledException = none
Reproducer
Product and Version
SonarQube Server Data Center Edition v2025.5 (113872)
Description
Not all exceptions in C# are proof of exceptional circumstances. For example, the
OperationCanceledExceptionis often an expected exception and therefore it should not be flagged as one that should be logged.Maybe there should be a way to configure this rule on an exception level for example:
Reproducer
Product and Version
SonarQube Server Data Center Edition v2025.5 (113872)