Skip to content

Commit

Permalink
update expected
Browse files Browse the repository at this point in the history
  • Loading branch information
mary-georgiou-sonarsource committed Mar 9, 2023
1 parent 520ee39 commit 7fe2b29
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 152 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -91,23 +91,7 @@ public static string CreateSonarProjectConfigWithFilesToAnalyze(TestContext cont
string[] testExclusions = null,
string[] testInclusions = null,
string[] globalTestExclusions = null) =>
<<<<<<< HEAD
TestHelper.WriteFile(context, "SonarLint.xml", GenerateSonarLintXmlContent(language, analyzeGeneratedCode, exclusions, inclusions, globalExclusions, testExclusions, testInclusions, globalTestExclusions));
=======
TestHelper.WriteFile(context, "SonarLint.xml",
new XDocument(
new XDeclaration("1.0", "utf-8", "yes"),
new XElement("AnalysisInput",
new XElement("Settings",
CreateKeyValuePair("Setting", $"sonar.{(language == LanguageNames.CSharp ? "cs" : "vbnet")}.ignoreHeaderComments", ignoreHeaderComments.ToString()),
CreateKeyValuePair("Setting", $"sonar.{(language == LanguageNames.CSharp ? "cs" : "vbnet")}.analyzeGeneratedCode", analyzeGeneratedCode.ToString()),
CreateKeyValuePair("Setting", "sonar.exclusions", string.Join(",", exclusions ?? Array.Empty<string>())),
CreateKeyValuePair("Setting", "sonar.inclusions", string.Join(",", inclusions ?? Array.Empty<string>())),
CreateKeyValuePair("Setting", "sonar.global.exclusions", string.Join(",", globalExclusions ?? Array.Empty<string>())),
CreateKeyValuePair("Setting", "sonar.test.exclusions", string.Join(",", testExclusions ?? Array.Empty<string>())),
CreateKeyValuePair("Setting", "sonar.test.inclusions", string.Join(",", testInclusions ?? Array.Empty<string>())),
CreateKeyValuePair("Setting", "sonar.global.test.exclusions", string.Join(",", globalTestExclusions ?? Array.Empty<string>()))))).ToString());
>>>>>>> 11aa64900 (Addressed PR comments)

public static string GenerateSonarLintXmlContent(
string language = LanguageNames.CSharp,
Expand Down

0 comments on commit 7fe2b29

Please sign in to comment.