You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- PR [#294](https://github.com/marinasundstrom/CheckedExceptions/pull/294) Enable batch fixing for catch-clause, try-catch, and redundant catch clause code fixes
25
+
- PR [#293](https://github.com/marinasundstrom/CheckedExceptions/pull/293) Mark throws declarations in LINQ lambdas as redundant when implicitly declared exceptions are enabled
> Exceptions are inferred and implicit on LINQ methods, so no declarations needed. this behavior can be disabled.
320
+
> Exceptions are inferred and implicit on LINQ methods. Any explicit `[Throws]` on LINQ lambdas is flagged as redundant. This behavior can be disabled.
Copy file name to clipboardExpand all lines: docs/analyzer-specification.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -503,7 +503,7 @@ This option disables analysis of LINQ operators defined on `Queryable`. Expressi
503
503
504
504
#### Disable implicitly declared exceptions in lambdas
505
505
506
-
This option control whether to disable implicitly declared exceptions in lambdas passed into LINQ operator methods.
506
+
This option controls whether to disable implicitly declared exceptions in lambdas passed into LINQ operator methods. When enabled (the default), exceptions are inferred and any `[Throws]` declarations on these lambdas are reported as redundant.
Copy file name to clipboardExpand all lines: docs/linq-support.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ var allEven = values
26
26
// THROW001: Unhandled exception type 'OverflowException'
27
27
```
28
28
29
-
> Exceptions are inferred and implicit on LINQ methods, so no declarations needed. this behavior can be disabled.
29
+
> Exceptions are inferred and implicit on LINQ methods. Any explicit `[Throws]` on LINQ lambdas is reported as redundant. This behavior can be disabled.
30
30
31
31
This differs from `First()`/`Single()` cases by not adding its own “empty/duplicate” errors—`All` only reflects exceptions from the predicate.
0 commit comments