Skip to content

Commit

Permalink
first round of fixing more sc warnings (#753)
Browse files Browse the repository at this point in the history
* 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
jennyf19 authored Nov 12, 2020
1 parent 6ad2b24 commit 1a073ed
Show file tree
Hide file tree
Showing 37 changed files with 674 additions and 77 deletions.
15 changes: 15 additions & 0 deletions .sonarlint/Microsoft.Identity.Web.slconfig
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 .sonarlint/azuread_microsoft-identity-web/CSharp/SonarLint.xml
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>
Loading

0 comments on commit 1a073ed

Please sign in to comment.