-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first round of fixing more sc warnings (#753)
* first round of fixing more sc warnings * add sonar cloud via vs extension * fix more warnings * change order * fix yml * force re-build * add keyvault build * fix new code warning
- Loading branch information
Showing
37 changed files
with
674 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"ServerUri": "https://sonarcloud.io/", | ||
"Organization": { | ||
"Key": "azuread", | ||
"Name": "Azure Active Directory" | ||
}, | ||
"ProjectKey": "AzureAD_microsoft-identity-web", | ||
"ProjectName": "microsoft-identity-web", | ||
"Profiles": { | ||
"CSharp": { | ||
"ProfileKey": "AXMqHrScFqF0v-dl6dl_", | ||
"ProfileTimestamp": "2020-10-13T14:12:09Z" | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
.sonarlint/azuread_microsoft-identity-web/CSharp/SonarLint.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AnalysisInput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<Settings> | ||
<Setting> | ||
<Key>sonar.cs.analyzeGeneratedCode</Key> | ||
<Value>false</Value> | ||
</Setting> | ||
<Setting> | ||
<Key>sonar.cs.file.suffixes</Key> | ||
<Value>.cs</Value> | ||
</Setting> | ||
<Setting> | ||
<Key>sonar.cs.ignoreHeaderComments</Key> | ||
<Value>true</Value> | ||
</Setting> | ||
<Setting> | ||
<Key>sonar.cs.roslyn.ignoreIssues</Key> | ||
<Value>false</Value> | ||
</Setting> | ||
</Settings> | ||
<Rules> | ||
<Rule> | ||
<Key>S107</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>max</Key> | ||
<Value>7</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
<Rule> | ||
<Key>S110</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>max</Key> | ||
<Value>5</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
<Rule> | ||
<Key>S1479</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>maximum</Key> | ||
<Value>30</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
<Rule> | ||
<Key>S2342</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>flagsAttributeFormat</Key> | ||
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Key>format</Key> | ||
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
<Rule> | ||
<Key>S2436</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>max</Key> | ||
<Value>2</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Key>maxMethod</Key> | ||
<Value>3</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
<Rule> | ||
<Key>S3776</Key> | ||
<Parameters> | ||
<Parameter> | ||
<Key>propertyThreshold</Key> | ||
<Value>3</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Key>threshold</Key> | ||
<Value>15</Value> | ||
</Parameter> | ||
</Parameters> | ||
</Rule> | ||
</Rules> | ||
</AnalysisInput> |
Oops, something went wrong.