Skip to content

Instantly share code, notes, and snippets.

@anreton
Created January 26, 2022 21:32
Show Gist options
  • Save anreton/2e7bc744c28a032763ce1b25e4249869 to your computer and use it in GitHub Desktop.
Save anreton/2e7bc744c28a032763ce1b25e4249869 to your computer and use it in GitHub Desktop.
<?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>S103</Key>
<Parameters>
<Parameter>
<Key>maximumLineLength</Key>
<Value>256</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S104</Key>
<Parameters>
<Parameter>
<Key>maximumFileLocThreshold</Key>
<Value>1000</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1067</Key>
<Parameters>
<Parameter>
<Key>max</Key>
<Value>3</Value>
</Parameter>
</Parameters>
</Rule>
<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>S1151</Key>
<Parameters>
<Parameter>
<Key>max</Key>
<Value>8</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1192</Key>
<Parameters>
<Parameter>
<Key>threshold</Key>
<Value>3</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1200</Key>
<Parameters>
<Parameter>
<Key>max</Key>
<Value>30</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S134</Key>
<Parameters>
<Parameter>
<Key>maximumNestingLevel</Key>
<Value>3</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S138</Key>
<Parameters>
<Parameter>
<Key>max</Key>
<Value>80</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1451</Key>
<Parameters>
<Parameter>
<Key>headerFormat</Key>
<Value>
Anton Egorov ([email protected])
</Value>
</Parameter>
<Parameter>
<Key>isRegularExpression</Key>
<Value>false</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1479</Key>
<Parameters>
<Parameter>
<Key>maximum</Key>
<Value>30</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S1541</Key>
<Parameters>
<Parameter>
<Key>maximumFunctionComplexityThreshold</Key>
<Value>10</Value>
</Parameter>
</Parameters>
</Rule>
<Rule>
<Key>S2068</Key>
<Parameters>
<Parameter>
<Key>credentialWords</Key>
<Value>oauthToken, secret, password, token, passwd, pwd, passphrase</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>
<Rule>
<Key>S5693</Key>
<Parameters>
<Parameter>
<Key>fileUploadSizeLimit</Key>
<Value>8_000_000</Value>
</Parameter>
</Parameters>
</Rule>
</Rules>
</AnalysisInput>
@anreton
Copy link
Author

anreton commented Jan 26, 2022

Analyzers:

  • SonarAnalyzer.CSharp 8.43.0.51858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment