Skip to content

Commit

Permalink
Fix typo in BuildCheck codes doc (#10510)
Browse files Browse the repository at this point in the history
* Fix typo

* Fix typo 2
  • Loading branch information
JanKrivanek authored Aug 13, 2024
1 parent 0716e1c commit 1b1df9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/specs/BuildCheck/Codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This practice can result in inconsistent build outcomes and makes debugging diff

"A property that is accessed should be declared first."

This check indicates that a property was acessed without being declared (the declaration might have happen later - see [BC0202](#BC0202) for such checking). Only accessing in the configured scope (by default it's the project file only) are checked.
This check indicates that a property was accessed without being declared (the declaration might have happen later - see [BC0202](#BC0202) for such checking). Only accessing in the configured scope (by default it's the project file only) are checked.

There are couple cases which are allowed by the check:

Expand All @@ -59,7 +59,7 @@ There are couple cases which are allowed by the check:
* Checking the property for emptyness - e.g.:
`<PropertyGroup Condition="'$(PropertyThatMightNotBeDefined)' == ''">`

* Any usage of property in condition. This can be opted out vie the configuration `AllowUninitializedPropertiesInConditions` - e.g.:
* Any usage of property in condition. This can be opted out via the configuration `AllowUninitializedPropertiesInConditions` - e.g.:
```ini
[*.csproj]
build_check.BC0201.severity=error
Expand All @@ -73,7 +73,7 @@ There are couple cases which are allowed by the check:

"A property should be declared before it is first used."

This check indicates that a property was acessed before it was declared. The default scope of this rule is the project file only. The scope captures the read and write operations as well. So this rule reports:
This check indicates that a property was accessed before it was declared. The default scope of this rule is the project file only. The scope captures the read and write operations as well. So this rule reports:
* Uninitialized reads that happened anywhere during the build, while the uninitialized property was later defined within the scope of this check (e.g. project file).
* Uninitialized reads that happened within the scope of check (e.g. project file), while later defined anywhere in the build

Expand Down

0 comments on commit 1b1df9e

Please sign in to comment.