From de358ad58c314be7ccc5d996de018f51927eef42 Mon Sep 17 00:00:00 2001 From: Tibor Blenessy Date: Tue, 21 Jul 2020 16:02:05 +0200 Subject: [PATCH] SONAR-13576 Remove sonar-typescript-plugin (#2920) * SONAR-13576 Remove sonar-typescript-plugin * Update sonar-javascript-plugin to 6.3.0.12464 --- build.gradle | 3 +- .../src/pages/analysis/languages/overview.md | 2 +- .../pages/analysis/languages/typescript.md | 40 ------------------- .../static/SonarCloudNavigationTree.json | 1 - .../static/SonarQubeNavigationTree.json | 1 - .../static/StaticNavigationTree.json | 1 - sonar-application/bundled_plugins.gradle | 1 - 7 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 server/sonar-docs/src/pages/analysis/languages/typescript.md diff --git a/build.gradle b/build.gradle index b85127053bb..d307531b1d5 100644 --- a/build.gradle +++ b/build.gradle @@ -179,7 +179,7 @@ subprojects { dependency 'org.sonarsource.html:sonar-html-plugin:3.2.0.2082' // bundled_plugin:web:sonar-html dependency 'org.sonarsource.jacoco:sonar-jacoco-plugin:1.1.0.898' // bundled_plugin:jacoco:sonar-jacoco dependency 'org.sonarsource.java:sonar-java-plugin:6.5.1.22586' // bundled_plugin:java:sonar-java - dependency 'org.sonarsource.javascript:sonar-javascript-plugin:6.2.1.12157' // bundled_plugin:javascript:SonarJS + dependency 'org.sonarsource.javascript:sonar-javascript-plugin:6.3.0.12464' // bundled_plugin:javascript:SonarJS dependency 'org.sonarsource.php:sonar-php-plugin:3.5.0.5655' // bundled_plugin:php:sonar-php dependency 'org.sonarsource.python:sonar-python-plugin:2.13.0.7236' // bundled_plugin:python:sonar-python dependency 'org.sonarsource.scm.git:sonar-scm-git-plugin:1.12.0.2034' // bundled_plugin:scmgit:sonar-scm-git @@ -188,7 +188,6 @@ subprojects { dependency 'org.sonarsource.slang:sonar-kotlin-plugin:1.5.0.315' // bundled_plugin:kotlin:slang-enterprise dependency 'org.sonarsource.slang:sonar-ruby-plugin:1.5.0.315' // bundled_plugin:ruby:slang-enterprise dependency 'org.sonarsource.slang:sonar-scala-plugin:1.5.0.315' // bundled_plugin:sonarscala:slang-enterprise - dependency 'org.sonarsource.typescript:sonar-typescript-plugin:2.1.0.4359' // bundled_plugin:typescript:SonarTS dependency 'org.sonarsource.xml:sonar-xml-plugin:2.0.1.2020' // bundled_plugin:xml:sonar-xml // please keep this list alphabetically ordered diff --git a/server/sonar-docs/src/pages/analysis/languages/overview.md b/server/sonar-docs/src/pages/analysis/languages/overview.md index 8ab0c849107..373083a276a 100644 --- a/server/sonar-docs/src/pages/analysis/languages/overview.md +++ b/server/sonar-docs/src/pages/analysis/languages/overview.md @@ -28,7 +28,7 @@ SonarQube allows to analyze different languages depending on the Edition you are | [Ruby](/analysis/languages/ruby/) | ![](/images/check.svg) | ![](/images/check.svg) | ![](/images/check.svg) | | [Scala](/analysis/languages/scala/) | ![](/images/check.svg) | ![](/images/check.svg) | ![](/images/check.svg) | | [Swift](/analysis/languages/swift/) | | ![](/images/check.svg) | ![](/images/check.svg) | -| [TypeScript](/analysis/languages/typescript/) | ![](/images/check.svg) | ![](/images/check.svg) | ![](/images/check.svg) | +| [TypeScript](/analysis/languages/javascript/) | ![](/images/check.svg) | ![](/images/check.svg) | ![](/images/check.svg) | | [TSQL](/analysis/languages/tsql/) | | ![](/images/check.svg) | ![](/images/check.svg) | | [VB.NET](/analysis/languages/vbnet/) | ![](/images/check.svg) | ![](/images/check.svg) | ![](/images/check.svg) | | [VB6](/analysis/languages/vb6/) | | | ![](/images/check.svg) | diff --git a/server/sonar-docs/src/pages/analysis/languages/typescript.md b/server/sonar-docs/src/pages/analysis/languages/typescript.md deleted file mode 100644 index c1d6130cd16..00000000000 --- a/server/sonar-docs/src/pages/analysis/languages/typescript.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: TypeScript -url: /analysis/languages/typescript/ ---- - - - - - - -## Prerequisites - -In order to analyze TypeScript code, you need to have Node.js >= 8 installed on the machine running the scan. Set property `sonar.typescript.node` to an absolute path to Node.js executable, if standard `node` is not available. - -Also make sure to have [TypeScript](https://www.npmjs.com/package/typescript) as a project dependency or dev dependency. If it's not the case, add it: -``` -cd -npm install -D typescript -``` -If you can't have TypeScript as a project dependency you can set your `NODE_PATH` variable to point to your globally installed TypeScript (but this is generally discouraged by the Node.js documentation). - -## Language-Specific Properties - -Discover and update the TypeScript-specific properties in: **Project [Administration > General Settings > TypeScript](/#sonarqube-admin#/admin/settings?category=typescript)** - -## Supported Frameworks and Versions -* TypeScript >= 2.2 - -## Rule Profiles - -There are 2 built-in rule profiles for TypeScript: `Sonar way` (default) and `Sonar way Recommended`. -* `Sonar way` profile is activated by default. It defines a trimmed list of high-value/low-noise rules useful in almost any TS development context. -* `Sonar way Recommended` contains all rules from `Sonar way`, plus more rules that mandate high code readability and long-term project evolution. - -## Related Pages - -* [Test Coverage & Execution](/analysis/coverage/) (LCOV format) -* [Importing External Issues](/analysis/external-issues/) (TSLint) -* [SonarTS Plugin for TSLint](https://www.npmjs.com/package/tslint-sonarts) -* [Sample TypeScript Project](https://github.com/SonarSource/SonarTS-example/) diff --git a/server/sonar-docs/static/SonarCloudNavigationTree.json b/server/sonar-docs/static/SonarCloudNavigationTree.json index 4b8c1bd64ba..1068e470de7 100644 --- a/server/sonar-docs/static/SonarCloudNavigationTree.json +++ b/server/sonar-docs/static/SonarCloudNavigationTree.json @@ -30,7 +30,6 @@ "/analysis/languages/scala/", "/analysis/languages/swift/", "/analysis/languages/tsql/", - "/analysis/languages/typescript/", "/analysis/languages/vbnet/", "/analysis/languages/xml/" ] diff --git a/server/sonar-docs/static/SonarQubeNavigationTree.json b/server/sonar-docs/static/SonarQubeNavigationTree.json index 96563ec18ba..27a3c7844c4 100644 --- a/server/sonar-docs/static/SonarQubeNavigationTree.json +++ b/server/sonar-docs/static/SonarQubeNavigationTree.json @@ -47,7 +47,6 @@ "/analysis/languages/ruby/", "/analysis/languages/scala/", "/analysis/languages/swift/", - "/analysis/languages/typescript/", "/analysis/languages/tsql/", "/analysis/languages/vbnet/", "/analysis/languages/vb6/", diff --git a/server/sonar-docs/static/StaticNavigationTree.json b/server/sonar-docs/static/StaticNavigationTree.json index 10e5f7be86e..8542b08c480 100644 --- a/server/sonar-docs/static/StaticNavigationTree.json +++ b/server/sonar-docs/static/StaticNavigationTree.json @@ -69,7 +69,6 @@ "/analysis/languages/ruby/", "/analysis/languages/scala/", "/analysis/languages/swift/", - "/analysis/languages/typescript/", "/analysis/languages/tsql/", "/analysis/languages/vbnet/", "/analysis/languages/vb6/", diff --git a/sonar-application/bundled_plugins.gradle b/sonar-application/bundled_plugins.gradle index 4867e92946e..50f146c15e9 100644 --- a/sonar-application/bundled_plugins.gradle +++ b/sonar-application/bundled_plugins.gradle @@ -15,6 +15,5 @@ dependencies { bundledPlugin 'org.sonarsource.scm.git:sonar-scm-git-plugin@jar' bundledPlugin 'org.sonarsource.scm.svn:sonar-scm-svn-plugin@jar' bundledPlugin "org.sonarsource.slang:sonar-scala-plugin@jar" - bundledPlugin 'org.sonarsource.typescript:sonar-typescript-plugin@jar' bundledPlugin 'org.sonarsource.xml:sonar-xml-plugin@jar' } -- 2.39.5