Class RoslynProfileExporter

java.lang.Object
org.sonar.api.profiles.ProfileExporter
org.sonarsource.dotnet.shared.plugins.RoslynProfileExporter

public class RoslynProfileExporter extends org.sonar.api.profiles.ProfileExporter
This profile exporter was build to be used by the SonarQube SonarScanner for .NET (S4MSB) during the Begin step, to download the SonarLint.xml. However, starting 2016, it is not used anymore. See commit ce945d inside the S4MSB repo. To see the defaults of the settings, see AbstractPropertyDefinitions.java See https://github.com/SonarSource/sonar-scanner-msbuild/blob/4.6.1.2049/src/SonarScanner.MSBuild.PreProcessor/Roslyn/RoslynAnalyzerProvider.cs#L150
  • Constructor Details

    • RoslynProfileExporter

      public RoslynProfileExporter(DotNetPluginMetadata pluginMetadata, org.sonar.api.config.Configuration configuration, org.sonar.api.server.rule.RulesDefinition[] rulesDefinitions)
  • Method Details

    • sonarLintRepositoryProperties

      public static List<org.sonar.api.config.PropertyDefinition> sonarLintRepositoryProperties(DotNetPluginMetadata pluginMetadata)
    • exportProfile

      public void exportProfile(org.sonar.api.profiles.RulesProfile rulesProfile, Writer writer)
      Specified by:
      exportProfile in class org.sonar.api.profiles.ProfileExporter
    • activeRoslynRulesByPartialRepoKey

      public static Map<String,List<org.sonar.api.rule.RuleKey>> activeRoslynRulesByPartialRepoKey(DotNetPluginMetadata pluginMetadata, Iterable<org.sonar.api.rule.RuleKey> activeRules)