Skip to content

Commit

Permalink
Reduce MSBuild complexity checks
Browse files Browse the repository at this point in the history
According to the docs, the only keyword that supports the kind of 
Boolean or branching complexity used for other languages is the
`Condition` keyword. Even the Choose and When elements depend
on some element containing a Condition attribute.

https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-conditions?view=vs-2022

https://learn.microsoft.com/en-us/visualstudio/msbuild/msbuild-conditional-constructs?view=vs-2022
  • Loading branch information
AnthonyMastrean authored Dec 13, 2022
1 parent 526e41d commit 90af153
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4133,17 +4133,7 @@
},
"MSBuild": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"switch ",
"while ",
"else ",
"|| ",
"&& ",
"!= ",
"== "
"Condition"
],
"extensions": [
"csproj",
Expand Down

0 comments on commit 90af153

Please sign in to comment.