Skip to content

Commit

Permalink
SLVS-1769 Enable HTML analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaskos-sonar committed Jan 22, 2025
1 parent 8b9902d commit 9a1b6f4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/CopyDependencies/CopyDependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<SourceJars Include="$(JarDownloadDir)\sonar-csharp-enterprise-plugin-$(EmbeddedSonarAnalyzerVersion).jar" />
<SourceJars Include="$(JarDownloadDir)\sonar-vbnet-enterprise-plugin-$(EmbeddedSonarAnalyzerVersion).jar" />
<SourceJars Include="$(JarDownloadDir)\sonar-javascript-plugin-$(EmbeddedSonarJSAnalyzerVersion).jar" />
<SourceJars Include="$(JarDownloadDir)\sonar-html-plugin-$(EmbeddedSonarHtmlAnalyzerVersion).jar" />
<SourceJars Include="$(JarDownloadDir)\sonar-text-plugin-$(EmbeddedSonarSecretsJarVersion).jar" />
</ItemGroup>
<Copy SourceFiles ="@(SourceJars)" DestinationFolder="$(EmbeddedJarDir)" />
Expand Down
6 changes: 6 additions & 0 deletions build/DownloadDependencies/CommonProperties.props
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
<JavascriptPluginRemoteUrl>https://repox.jfrog.io/artifactory/sonarsource/org/sonarsource/javascript/sonar-javascript-plugin/$(EmbeddedSonarJSAnalyzerVersion)/$(JavascriptPluginFileName)</JavascriptPluginRemoteUrl>
</PropertyGroup>

<PropertyGroup>
<HtmlPluginFileName>sonar-html-plugin-$(EmbeddedSonarHtmlAnalyzerVersion).jar</HtmlPluginFileName>
<HtmlPluginDownloadPath>$(JarDownloadDir)\$(HtmlPluginFileName)</HtmlPluginDownloadPath>
<HtmlPluginRemoteUrl>https://repox.jfrog.io/artifactory/sonarsource/org/sonarsource/html/sonar-html-plugin/$(EmbeddedSonarHtmlAnalyzerVersion)/$(HtmlPluginFileName)</HtmlPluginRemoteUrl>
</PropertyGroup>

<PropertyGroup>
<SonarTextPluginFileName>sonar-text-plugin-$(EmbeddedSonarSecretsJarVersion).jar</SonarTextPluginFileName>
<SonarTextPluginDownloadPath>$(JarDownloadDir)\$(SonarTextPluginFileName)</SonarTextPluginDownloadPath>
Expand Down
1 change: 1 addition & 0 deletions build/DownloadDependencies/JarProcessing.targets
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

<Target Name="DownloadRepoxJars">
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(JavaScriptPluginDownloadPath) --url $(JavascriptPluginRemoteUrl)" />
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(HtmlPluginDownloadPath) --url $(HtmlPluginRemoteUrl)" />
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(SonarTextPluginDownloadPath) --url $(SonarTextPluginRemoteUrl)" />
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(EnterpriseSonarCSharpPluginDownloadPath) --url $(EnterpriseSonarCSharpPluginRemoteUrl)" />
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(EnterpriseSonarVBNetPluginDownloadPath) --url $(EnterpriseSonarVBNetPluginRemoteUrl)" />
Expand Down
1 change: 1 addition & 0 deletions src/EmbeddedSonarAnalyzer.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<EmbeddedSonarAnalyzerVersion>10.4.0.108396</EmbeddedSonarAnalyzerVersion>
<EmbeddedSonarCFamilyAnalyzerVersion>6.62.0.78645</EmbeddedSonarCFamilyAnalyzerVersion>
<EmbeddedSonarJSAnalyzerVersion>10.20.0.29356</EmbeddedSonarJSAnalyzerVersion>
<EmbeddedSonarHtmlAnalyzerVersion>3.18.0.5605</EmbeddedSonarHtmlAnalyzerVersion>
<EmbeddedSonarSecretsJarVersion>2.20.0.5038</EmbeddedSonarSecretsJarVersion>
<!-- SLOOP: Binaries for SonarLint Out Of Process -->
<EmbeddedSloopVersion>10.13.0.79996</EmbeddedSloopVersion>
Expand Down
2 changes: 2 additions & 0 deletions src/Integration/SLCore/SLCoreConstantsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public SLCoreConstantsProvider(IVsInfoProvider vsInfoProvider)
[
Language.JS,
Language.TS,
Language.HTML,
Language.CSS,
Language.C,
Language.CPP,
Expand All @@ -65,6 +66,7 @@ public SLCoreConstantsProvider(IVsInfoProvider vsInfoProvider)
[
Language.JS,
Language.TS,
Language.HTML,
Language.CSS,
Language.C,
Language.CPP,
Expand Down
2 changes: 2 additions & 0 deletions src/SLCore.IntegrationTests/DependencyLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ private static void EnsurePluginsAreAvailable(string localAppData, XmlDocument d
var roslynAnalyzerVersion = GetDependencyVersion("EmbeddedSonarAnalyzerVersion", dependencyProps);
var cfamilyAnalyzerVersion = GetDependencyVersion("EmbeddedSonarCFamilyAnalyzerVersion", dependencyProps);
var jstsAnalyzerVersion = GetDependencyVersion("EmbeddedSonarJSAnalyzerVersion", dependencyProps);
var htmlAnalyzerVersion = GetDependencyVersion("EmbeddedSonarHtmlAnalyzerVersion", dependencyProps);
var secrestsAnalyzerVersion = GetDependencyVersion("EmbeddedSonarSecretsJarVersion", dependencyProps);
AnalyzerPlugins = new List<string>
{
GetAnalyzerPath("sonar-csharp-enterprise-plugin", roslynAnalyzerVersion, availablePluginJars),
GetAnalyzerPath("sonar-vbnet-enterprise-plugin", roslynAnalyzerVersion, availablePluginJars),
GetAnalyzerPath("sonar-cfamily-plugin", cfamilyAnalyzerVersion, availablePluginJars),
GetAnalyzerPath("sonar-javascript-plugin", jstsAnalyzerVersion, availablePluginJars),
GetAnalyzerPath("sonar-html-plugin", htmlAnalyzerVersion, availablePluginJars),
GetAnalyzerPath("sonar-text-plugin", secrestsAnalyzerVersion, availablePluginJars),
};
}
Expand Down

0 comments on commit 9a1b6f4

Please sign in to comment.