Skip to content

Commit 20992eb

Browse files
Add short product name constant (#61)
1 parent 55e5b33 commit 20992eb

17 files changed

+92
-91
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{+product+} Documentation
33
=================================
44

5-
This repository contains documentation for the {+product+}.
5+
This repository contains documentation for the {+product-short+}.
66

77
File JIRA Tickets
88
-----------------

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ toc_landing_pages = ["/analyze-code"]
44

55
[constants]
66
product = "MongoDB C# Analyzer"
7+
product-short = "C# Analyzer"
78
product-source-repo = "https://github.com/mongodb/mongo-csharp-analyzer"
89
# The home page is the project's Github repo for the time being. This may change
910
# to a DevRel article or product page such as

source/analyze-code.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Analyze Your Code
1919
Overview
2020
--------
2121

22-
Learn how to use the {+product+} to analyze your {+driver-long+} code.
23-
The {+product+} can analyze expressions created with the following patterns:
22+
Learn how to use the {+product-short+} to analyze your {+driver-long+} code.
23+
The {+product-short+} can analyze expressions created with the following patterns:
2424

2525
- :ref:`Builders Class <mongodb-analyzer-analyze-builders>`
2626
- :ref:`Language Integrated Query (LINQ) <mongodb-analyzer-analyze-linq>`
@@ -29,16 +29,16 @@ The {+product+} can analyze expressions created with the following patterns:
2929
Use the {+product+} From the Command Line
3030
-------------------------------------------------
3131

32-
To run the {+product+} from the command line and save your results to a
32+
To run the {+product-short+} from the command line and save your results to a
3333
:github:`SARIF </microsoft/sarif-tutorials/blob/main/docs/1-Introduction.md>`
3434
format file, perform the following actions:
3535

36-
- Install the {+product+} as described in the :ref:`Install <mongodb-analyzer-install>` guide.
36+
- Install the {+product-short+} as described in the :ref:`Install <mongodb-analyzer-install>` guide.
3737
- Execute the following command:
3838

3939
.. code-block:: shell
4040

41-
dotnet build -property:ErrorLog=<Path to save your {+product+} report>
41+
dotnet build -property:ErrorLog=<Path to save your {+product-short+} report>
4242

4343
To learn more about ``dotnet build``, see
4444
`.NET Fundamentals <https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build>`__

source/code-type/builders.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To learn more about builders, see
2323
Translate into the {+query-api+}
2424
------------------------------------
2525

26-
Use the {+product+} to translate your builder expressions into the {+query-api+}.
26+
Use the {+product-short+} to translate your builder expressions into the {+query-api+}.
2727
Click the following tabs to see an example of a builder expression
2828
and its corresponding {+query-api+} translation:
2929

@@ -56,7 +56,7 @@ Analyze Builders in Visual Studio
5656

5757
To analyze your builder expressions in Visual Studio, perform the following actions:
5858

59-
1. Install the {+product+} as described in the :ref:`Install <mongodb-analyzer-install>`
59+
1. Install the {+product-short+} as described in the :ref:`Install <mongodb-analyzer-install>`
6060
guide.
6161
#. Write a builder expression with the {+driver-short+}
6262
#. Move your mouse over the :guilabel:`...` annotation beneath the first
@@ -86,7 +86,7 @@ with or without an information message displayed:
8686
Track Builder Variables
8787
~~~~~~~~~~~~~~~~~~~~~~~
8888

89-
The {+product+} supports builder variable tracking and composition. You can
89+
The {+product-short+} supports builder variable tracking and composition. You can
9090
combine multiple builder expressions with `logical operators
9191
<https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/boolean-logical-operators>`__
9292
and view the {+query-api+} translation in the information message.
@@ -111,7 +111,7 @@ with or without an information message displayed:
111111
Fluent API
112112
~~~~~~~~~~
113113

114-
The {+product+} supports the Fluent API using builder classes in the {+driver-short+}. You can
114+
The {+product-short+} supports the Fluent API using builder classes in the {+driver-short+}. You can
115115
create a sequence of chained builder methods and view the {+query-api+} translation in
116116
the information message.
117117

source/code-type/linq.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To learn more about aggregation pipelines, see
2828

2929
.. note:: Runtime Differences
3030

31-
Although the {+query-api+} translations generated by the {+product+} have the same
31+
Although the {+query-api+} translations generated by the {+product-short+} have the same
3232
:manual:`query shape </reference/glossary/#std-term-query-shape>`
3333
as your runtime {+driver-short+}
3434
queries, there may be slight differences due to the following
@@ -37,15 +37,15 @@ To learn more about aggregation pipelines, see
3737
- Your Serialization Settings
3838
- Your LINQ Settings
3939

40-
The difference between the translations the {+product+} generates
40+
The difference between the translations the {+product-short+} generates
4141
and your queries at runtime should not impact your ability to analyze
4242
and debug your code.
4343

4444
To learn more about serialization and LINQ settings, see the
4545
:ref:`FAQ <mongodb-analyzer-faq-custom-serialization>`
4646
page.
4747

48-
Use the {+product+} to learn the following
48+
Use the {+product-short+} to learn the following
4949
about your LINQ expressions:
5050

5151
- How your LINQ expressions translate into the {+query-api+}
@@ -91,7 +91,7 @@ Analyze LINQ in Visual Studio
9191

9292
To analyze your LINQ expressions in Visual Studio, perform the following actions:
9393

94-
1. Install the {+product+} as described in the :ref:`Install <mongodb-analyzer-install>`
94+
1. Install the {+product-short+} as described in the :ref:`Install <mongodb-analyzer-install>`
9595
guide.
9696
#. Write a LINQ expression with the {+driver-short+}.
9797
#. Move your mouse over the :guilabel:`...` annotation beneath the first
@@ -101,7 +101,7 @@ To analyze your LINQ expressions in Visual Studio, perform the following actions
101101
Simple LINQ Expressions
102102
~~~~~~~~~~~~~~~~~~~~~~~
103103

104-
The {+product+} analyzes LINQ expressions in the following syntax types:
104+
The {+product-short+} analyzes LINQ expressions in the following syntax types:
105105

106106
- Method syntax
107107
- Query syntax
@@ -145,11 +145,11 @@ syntax with or without an information message displayed:
145145
Unsupported LINQ Expressions
146146
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147147

148-
If your LINQ expression is not supported, the {+product+} outputs a
148+
If your LINQ expression is not supported, the {+product-short+} outputs a
149149
``NotSupportedLinqExpression`` warning.
150150

151151
Click the following tabs to see a code snippet containing an unsupported LINQ expression
152-
and the corresponding warning message displayed by the {+product+}:
152+
and the corresponding warning message displayed by the {+product-short+}:
153153

154154
.. tabs::
155155

@@ -162,7 +162,7 @@ and the corresponding warning message displayed by the {+product+}:
162162

163163
var result = queryableColl.Where(b => b.GetHashCode() == 167);
164164

165-
The following screenshot shows the annotation displayed by the {+product+}
165+
The following screenshot shows the annotation displayed by the {+product-short+}
166166
underneath the preceding code snippet in Visual Studio:
167167

168168
.. figure:: /includes/images/linq-unsupported.png
@@ -171,7 +171,7 @@ and the corresponding warning message displayed by the {+product+}:
171171
.. tab:: Warning
172172
:tabid: warning
173173

174-
The following is the warning generated by the {+product+}:
174+
The following is the warning generated by the {+product-short+}:
175175

176176
.. code-block:: text
177177
:copyable: false
@@ -193,18 +193,18 @@ To view more examples of unsupported LINQ expressions, see the
193193
Analyze LINQ3
194194
~~~~~~~~~~~~~
195195

196-
To analyze a LINQ3 expression, you must configure the {+product+} to use the LINQ3
196+
To analyze a LINQ3 expression, you must configure the {+product-short+} to use the LINQ3
197197
provider. To learn how to configure your LINQ provider, see the
198198
:ref:`configuration <mongodb-analyzer-configuration>` guide.
199199

200200
.. important:: Expressions Supported Only by LINQ3
201201

202-
If your {+driver-short+} version supports LINQ3 but you configure your {+product+} to use
203-
the default LINQ provider (LINQ2), the {+product+} informs you if your LINQ expression
202+
If your {+driver-short+} version supports LINQ3 but you configure your {+product-short+} to use
203+
the default LINQ provider (LINQ2), the {+product-short+} informs you if your LINQ expression
204204
is supported by LINQ3 but not LINQ2.
205205

206206
Click the tabs to see a LINQ expression supported by LINQ3 but not LINQ2 and the
207-
corresponding warning output by the {+product+}:
207+
corresponding warning output by the {+product-short+}:
208208

209209
.. tabs::
210210

source/code-type/pocos.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Overview
1616
Plain old CLR objects, or plain old class objects (POCOs), are
1717
simple class objects that don't
1818
inherit features from any framework-specific base classes or interfaces.
19-
If your application uses POCOs, you can use the {+product+} to preview them as JSON
19+
If your application uses POCOs, you can use the {+product-short+} to preview them as JSON
2020
objects.
2121

2222
To learn more about POCOs, see the :wikipedia:`POCOs page on Wikipedia <Plain_old_CLR_object>`
@@ -62,7 +62,7 @@ POCOs in JSON, you can see how BSON serialization attributes, such as ``BsonId``
6262

6363
.. tip:: Sample Data
6464

65-
The {+product+} includes predefined sample values for certain common property names.
65+
The {+product-short+} includes predefined sample values for certain common property names.
6666
If you use
6767
these property names in your POCO, the Analyzer uses the sample values in the JSON
6868
output. For any property names without predefined sample values, the Analyzer uses a
@@ -77,7 +77,7 @@ Preview POCOs in Visual Studio
7777

7878
To preview your POCOs in Visual Studio, perform the following actions:
7979

80-
1. Install the {+product+} as described in the :ref:`mongodb-analyzer-install`
80+
1. Install the {+product-short+} as described in the :ref:`mongodb-analyzer-install`
8181
guide.
8282
#. Define a POCO class.
8383
#. Move your cursor over the :guilabel:`...` ellipsis annotation beneath the first
@@ -103,7 +103,7 @@ with or without an information message displayed:
103103

104104
.. tip:: Rule ID
105105

106-
The information message begins with the {+product+} Rule ID that generated the
106+
The information message begins with the {+product-short+} Rule ID that generated the
107107
popup. In the previous example, the Rule ID is ``MAPoco1001``, indicating
108108
the POCO is valid. To learn more about this rule, see the
109109
:ref:`mongodb-analyzer-rules` guide.

source/configuration.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Configure the {+product+}
1313
Overview
1414
--------
1515

16-
Learn how to configure the {+product+} in your .NET project and what
16+
Learn how to configure the {+product-short+} in your .NET project and what
1717
configuration options are available.
1818

1919
Configuration
2020
-------------
2121

22-
To configure the {+product+}, perform the following actions:
22+
To configure the {+product-short+}, perform the following actions:
2323

24-
#. Install the {+product+} as described in
24+
#. Install the {+product-short+} as described in
2525
:ref:`the installation guide <mongodb-analyzer-install>`.
2626

27-
#. Create a file specifying your configuration for the {+product+} named
27+
#. Create a file specifying your configuration for the {+product-short+} named
2828
``{+product-settings-file-constant+}``.
2929

3030
.. important:: Naming
@@ -33,7 +33,7 @@ To configure the {+product+}, 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+} use the
36+
The following sample configuration makes the {+product-short+} use the
3737
`LINQ3 <{+driver-docs+}/fundamentals/linq/>`__
3838
provider.
3939

@@ -51,7 +51,7 @@ To configure the {+product+}, perform the following actions:
5151

5252
.. note:: Configuration is Optional
5353

54-
If you do not specify a configuration file, the {+product+} uses
54+
If you do not specify a configuration file, the {+product-short+} uses
5555
the default value for all
5656
:ref:`configuration options <mongodb-analyzer-configuration-options>`.
5757

@@ -69,7 +69,7 @@ Options
6969
-------
7070

7171
The following is a description of all configuration options supported
72-
by the {+product+}:
72+
by the {+product-short+}:
7373

7474
.. list-table::
7575
:header-rows: 1
@@ -81,7 +81,7 @@ by the {+product+}:
8181
* - | **DefaultLinqVersion**
8282
- | **Type:** string
8383
|
84-
| **Description:** The LINQ provider the {+product+} uses.
84+
| **Description:** The LINQ provider the {+product-short+} uses.
8585

8686
.. tip::
8787

@@ -95,7 +95,7 @@ by the {+product+}:
9595
* - | **EnableVariableTracking**
9696
- | **Type:** boolean
9797
|
98-
| **Description:** Specifies if the {+product+} tracks and composes builder
98+
| **Description:** Specifies if the {+product-short+} tracks and composes builder
9999
expression variables.
100100

101101
.. tip::
@@ -110,7 +110,7 @@ by the {+product+}:
110110
* - | **LogFileName**
111111
- | **Type:** string
112112
|
113-
| **Description:** Specifies the path to which the {+product+} writes its
113+
| **Description:** Specifies the path to which the {+product-short+} writes its
114114
internal logs.
115115

116116
.. include:: includes/logging-admonition.rst
@@ -121,7 +121,7 @@ by the {+product+}:
121121
* - | **OutputDriverVersion**
122122
- | **Type:** boolean
123123
|
124-
| **Description:** Specifies if the {+product+} includes your {+driver-short+}
124+
| **Description:** Specifies if the {+product-short+} includes your {+driver-short+}
125125
version in diagnostic messages.
126126
|
127127
| **Accepted Values**: ``true`` or ``false``
@@ -130,7 +130,7 @@ by the {+product+}:
130130
* - | **OutputInternalExceptions**
131131
- | **Type:** boolean
132132
|
133-
| **Description:** Specifies if the {+product+} includes internal exceptions in
133+
| **Description:** Specifies if the {+product-short+} includes internal exceptions in
134134
diagnostic messages.
135135
|
136136
| **Accepted Values**: ``true`` or ``false``
@@ -139,7 +139,7 @@ by the {+product+}:
139139
* - | **OutputInternalLogsToFile**
140140
- | **Type:** boolean
141141
|
142-
| **Description:** Specifies if the {+product+} writes its internal logs to a file.
142+
| **Description:** Specifies if the {+product-short+} writes its internal logs to a file.
143143

144144
.. include:: includes/logging-admonition.rst
145145

@@ -149,7 +149,7 @@ by the {+product+}:
149149
* - | **PocoAnalysisVerbosity**
150150
- | **Type:** string
151151
|
152-
| **Description:** Specifies which POCOs the {+product+} previews as JSON. You can
152+
| **Description:** Specifies which POCOs the {+product-short+} previews as JSON. You can
153153
set this option to one of the following values:
154154

155155
- ``"All"``: Preview all POCOs
@@ -163,27 +163,27 @@ by the {+product+}:
163163
* - | **SendTelemetry**
164164
- | **Type:** boolean
165165
|
166-
| **Description:** Specifies if the {+product+} collects and sends anonymized
166+
| **Description:** Specifies if the {+product-short+} collects and sends anonymized
167167
information to MongoDB Inc. to improve products.
168168

169169
.. tip::
170170

171-
To learn more about telemetry in the {+product+}, see the
171+
To learn more about telemetry in the {+product-short+}, see the
172172
:ref:`<mongodb-analyzer-configuration-telemetry>`
173173
section of this guide.
174174

175175
| **Accepted Values**: ``true`` or ``false``
176176
| **Default**: ``true``
177177

178-
To learn more about the configuration options the {+product+} supports,
178+
To learn more about the configuration options the {+product-short+} supports,
179179
see the :github:`{+product+} source code </master/src/MongoDB.Analyzer/Core/Settings/SettingsHelper.cs>`.
180180

181181
.. _mongodb-analyzer-configuration-telemetry:
182182

183183
Telemetry
184184
~~~~~~~~~
185185

186-
When the {+product+} analyzes your source code, the tool by default
186+
When the {+product-short+} analyzes your source code, the tool by default
187187
collects and sends anonymized information to MongoDB Inc. to improve
188188
products.
189189

@@ -193,7 +193,7 @@ To disable this feature, specify the following option in your configuration file
193193

194194
"SendTelemetry": false
195195

196-
To view a complete list of all information collected by the {+product+} when you
196+
To view a complete list of all information collected by the {+product-short+} when you
197197
have enabled telemetry, see the :ref:`FAQ <mongodb-analyzer-all-telemetry-collected>`
198198
page.
199199

0 commit comments

Comments
 (0)