Skip to content

Commit cf43829

Browse files
authored
[C# Analyzer] LinqVerbosity config option and IQueryable inference (#80)
* update config * RR feedback
1 parent 2093ff1 commit cf43829

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

source/configuration.txt

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ To configure the {+product-short+}, perform the following actions:
3333

3434
#. Add your configuration to your ``{+product-settings-file-constant+}`` file.
3535

36-
The following sample configuration makes the {+product-short+} use the
37-
`LINQ3 <{+driver-docs+}/fundamentals/linq/>`__
38-
provider.
36+
The following sample configuration disables variable tracking:
3937

4038
.. code-block:: json
4139

42-
{ "DefaultLinqVersion": "V3" }
40+
{ "EnableVariableTracking": "false" }
4341

4442
#. Add the following to the ``.csproj`` file for your .NET application within the ``Project`` tag:
4543

@@ -78,20 +76,6 @@ by the {+product-short+}:
7876
* - Name
7977
- Description
8078

81-
* - | **DefaultLinqVersion**
82-
- | **Type:** string
83-
|
84-
| **Description:** The LINQ provider the {+product-short+} uses.
85-
86-
.. tip::
87-
88-
To learn more about LINQ, see the
89-
:ref:`Analyze Your Code <mongodb-analyzer-analyze-linq>`
90-
page.
91-
92-
| **Accepted Values**: ``"V2"`` or ``"V3"``
93-
| **Default**: ``"V2"``
94-
9579
* - | **EnableVariableTracking**
9680
- | **Type:** boolean
9781
|
@@ -118,6 +102,21 @@ by the {+product-short+}:
118102
| **Accepted Values**: A valid file path
119103
| **Default**: ``""``
120104

105+
* - | **LinqAnalysisVerbosity**
106+
- | **Type:** string
107+
|
108+
| **Description:** Specifies which LINQ expressions the {+product-short+}
109+
analyzes. You can set this option to one of the following values:
110+
111+
- ``"All"``: Analyze all LINQ expressions, except system collections and arrays
112+
- ``"Medium"``: Analyze all LINQ expressions, except for system
113+
collections and arrays, in files that include ``MongoDB.Driver`` and
114+
its nested namespaces only
115+
- ``"None"``: Do not analyze LINQ expressions
116+
117+
| **Accepted Values**: ``"All"``, ``"Medium"``, or ``"None"``
118+
| **Default**: ``"Medium"``
119+
121120
* - | **OutputDriverVersion**
122121
- | **Type:** boolean
123122
|

0 commit comments

Comments
 (0)