aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-06-25 09:07:52 +0200
committersonartech <sonartech@sonarsource.com>2018-06-29 09:10:12 +0200
commitfd0f0abf6a20554e2b08c003f6e1a80c2340331f (patch)
treecfaae61ed4fe1198f33b8c8d1ab4a9338e924efe
parentdae4348f09a1364904a2e63caebf2dd9f205752b (diff)
downloadsonarqube-fd0f0abf6a20554e2b08c003f6e1a80c2340331f.tar.gz
sonarqube-fd0f0abf6a20554e2b08c003f6e1a80c2340331f.zip
integrate eslint report (#441)
-rw-r--r--server/sonar-bitbucketcloud/.gitignore3
-rw-r--r--server/sonar-bitbucketcloud/build.gradle1
-rw-r--r--server/sonar-bitbucketcloud/package.json1
-rw-r--r--server/sonar-vsts/.gitignore3
-rw-r--r--server/sonar-vsts/build.gradle1
-rw-r--r--server/sonar-vsts/package.json1
-rw-r--r--server/sonar-web/.gitignore3
-rw-r--r--server/sonar-web/build.gradle3
-rw-r--r--server/sonar-web/package.json1
9 files changed, 16 insertions, 1 deletions
diff --git a/server/sonar-bitbucketcloud/.gitignore b/server/sonar-bitbucketcloud/.gitignore
index c5bfb808764..170910afa26 100644
--- a/server/sonar-bitbucketcloud/.gitignore
+++ b/server/sonar-bitbucketcloud/.gitignore
@@ -24,3 +24,6 @@ build/
src/test/json/**/*.png
lcov.info
.nyc_output
+
+# eslint
+eslint-report.json
diff --git a/server/sonar-bitbucketcloud/build.gradle b/server/sonar-bitbucketcloud/build.gradle
index 435d4a59ca8..5a848ddf1f0 100644
--- a/server/sonar-bitbucketcloud/build.gradle
+++ b/server/sonar-bitbucketcloud/build.gradle
@@ -5,6 +5,7 @@ sonarqube {
property "sonar.tests", "src/main/ts"
property "sonar.test.inclusions", "src/main/ts/**/__tests__/**"
property "sonar.exclusions", "src/main/ts/**/__tests__/**"
+ property "sonar.typescript.eslint.reportPaths", "eslint-report.json"
}
}
diff --git a/server/sonar-bitbucketcloud/package.json b/server/sonar-bitbucketcloud/package.json
index 5c336532dd9..d48bd027adc 100644
--- a/server/sonar-bitbucketcloud/package.json
+++ b/server/sonar-bitbucketcloud/package.json
@@ -86,6 +86,7 @@
"coverage": "yarn jest --coverage",
"format": "yarn prettier --write --list-different 'src/main/ts/**/*.{js,ts,tsx,css}'",
"lint": "yarn eslint --ext js,ts,tsx --quiet src/main/ts",
+ "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/ts",
"prettier-check": "yarn prettier --list-different 'src/main/ts/**/*.{js,ts,tsx,css}'",
"ts-check": "yarn tsc --noEmit",
"validate": "yarn lint && yarn ts-check && yarn prettier-check && NODE_ENV=test jest"
diff --git a/server/sonar-vsts/.gitignore b/server/sonar-vsts/.gitignore
index c5bfb808764..170910afa26 100644
--- a/server/sonar-vsts/.gitignore
+++ b/server/sonar-vsts/.gitignore
@@ -24,3 +24,6 @@ build/
src/test/json/**/*.png
lcov.info
.nyc_output
+
+# eslint
+eslint-report.json
diff --git a/server/sonar-vsts/build.gradle b/server/sonar-vsts/build.gradle
index 078b68814c1..80e96ce4daa 100644
--- a/server/sonar-vsts/build.gradle
+++ b/server/sonar-vsts/build.gradle
@@ -5,6 +5,7 @@ sonarqube {
property "sonar.tests", "src/main/js"
property "sonar.test.inclusions", "src/main/js/**/__tests__/**"
property "sonar.exclusions", "src/main/js/libs/third-party/**/*,src/main/js/**/__tests__/**"
+ property "sonar.typescript.eslint.reportPaths", "eslint-report.json"
}
}
diff --git a/server/sonar-vsts/package.json b/server/sonar-vsts/package.json
index 89e50759e91..678db6727bc 100644
--- a/server/sonar-vsts/package.json
+++ b/server/sonar-vsts/package.json
@@ -74,6 +74,7 @@
"coverage": "npm test -- --coverage",
"format": "prettier --write --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
"lint": "eslint --ext js,ts,tsx --quiet src/main/js",
+ "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
"prettier-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
"ts-check": "tsc --noEmit",
"validate":
diff --git a/server/sonar-web/.gitignore b/server/sonar-web/.gitignore
index 52ac5f8df67..82da3a3155e 100644
--- a/server/sonar-web/.gitignore
+++ b/server/sonar-web/.gitignore
@@ -21,3 +21,6 @@ yarn-error.log*
src/test/json/**/*.png
lcov.info
.nyc_output
+
+# eslint
+eslint-report.json
diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle
index 0cdcd8499c1..b0b13ec8d0e 100644
--- a/server/sonar-web/build.gradle
+++ b/server/sonar-web/build.gradle
@@ -4,7 +4,8 @@ sonarqube {
property "sonar.sources", "src/main/js"
property "sonar.tests", "src/main/js"
property "sonar.test.inclusions", "src/main/js/**/__tests__/**"
- property "sonar.exclusions", "src/main/js/libs/third-party/**/*,src/main/js/libs/require.js,src/main/js/**/__tests__/**"
+ property "sonar.exclusions", "src/main/js/**/__tests__/**"
+ property "sonar.typescript.eslint.reportPaths", "eslint-report.json"
}
}
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index a8b603c90d8..4dbeec54ff5 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -127,6 +127,7 @@
"coverage": "npm test -- --coverage",
"format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
"lint": "eslint --ext js,ts,tsx --quiet src/main/js",
+ "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
"flow-check": "flow check src/main/js",
"ts-check": "tsc --noEmit",
"validate": "yarn lint && yarn flow-check && yarn ts-check && NODE_ENV=test jest",