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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
11
11
### Added
12
12
13
-
- PR [#PR_NUMBER](https://github.com/marinasundstrom/CheckedExceptions/pull/PR_NUMBER) Handle LINQ methods on `AsyncEnumerable`
13
+
- PR [#290](https://github.com/marinasundstrom/CheckedExceptions/pull/290) Handle LINQ methods on `AsyncEnumerable`
14
+
- PR [#291](https://github.com/marinasundstrom/CheckedExceptions/pull/291) LINQ support for `IQueryable` enabled by default with option to disable via `disableLinqQueryableSupport`
14
15
15
16
### Changed
16
17
17
-
- PR [#PR_NUMBER](https://github.com/marinasundstrom/CheckedExceptions/pull/PR_NUMBER) Trim NuGet package README and document maintenance guidelines
18
+
- PR [#290](https://github.com/marinasundstrom/CheckedExceptions/pull/290) Trim NuGet package README and document maintenance guidelines
Copy file name to clipboardExpand all lines: README.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
@@ -307,7 +307,7 @@ This is due to a **technical limitation**: the XML documentation files for .NET
307
307
308
308
**Answer:**
309
309
310
-
There is support for LINQ query operators on `IEnumerable<T>` and asynchronous operators like `FirstAsync` on `IAsyncEnumerable<T>` (via [System.Linq.Async](https://www.nuget.org/packages/System.Linq.Async)).
310
+
There is support for LINQ query operators on `IEnumerable<T>` and asynchronous operators like `FirstAsync` on `IAsyncEnumerable<T>` (via [System.Linq.Async](https://www.nuget.org/packages/System.Linq.Async)). Support for `IQueryable<T>` is enabled by default and can be disabled via the `disableLinqQueryableSupport` setting.
Copy file name to clipboardExpand all lines: docs/analyzer-specification.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -400,7 +400,7 @@ This is treated as valid when there is only a `get` accessor.
400
400
401
401
### LINQ queries
402
402
403
-
The analyzer recognizes LINQ query operators whose extensions live in the `System.Linq` namespace and whose containing type name ends with `Enumerable` or `Queryable`, including `AsyncEnumerable` from the [`System.Linq.Async`](https://www.nuget.org/packages/System.Linq.Async) package.
403
+
The analyzer recognizes LINQ query operators whose extensions live in the `System.Linq` namespace and whose containing type name ends with `Enumerable`. Operators ending in `Queryable` are also supported. You can disable this by setting `disableLinqQueryableSupport` to `true`. `AsyncEnumerable` from the [`System.Linq.Async`](https://www.nuget.org/packages/System.Linq.Async) package is also recognized.
404
404
405
405
Async operator names suffixed with `Async`, `Await`, or `AwaitWithCancellation` are normalized to their synchronous counterparts so built-in exception knowledge applies.
406
406
@@ -491,6 +491,16 @@ var query = items.Where([Throws(typeof(FormatException), typeof(OverflowExceptio
491
491
varr=query.First();
492
492
```
493
493
494
+
### Disable LINQ IQueryable support
495
+
496
+
This option disables analysis of LINQ operators defined on `Queryable`. Expression tree translation depends on the provider, so disable this when your provider behaves differently.
497
+
498
+
```json
499
+
{
500
+
"disableLinqQueryableSupport": true
501
+
}
502
+
```
503
+
494
504
#### Disable implicitly declared exceptions in lambdas
495
505
496
506
This option control whether to disable implicitly declared exceptions in lambdas passed into LINQ operator methods.
0 commit comments