aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/build.gradle14
-rw-r--r--server/sonar-web/config/autoprefixer.js4
-rw-r--r--server/sonar-web/config/jest/CSSStub.js2
-rw-r--r--server/sonar-web/config/jest/FileStub.js4
-rw-r--r--server/sonar-web/config/jest/SetupEnzyme.js4
-rw-r--r--server/sonar-web/config/jest/SetupTestEnvironment.js4
-rw-r--r--server/sonar-web/config/paths.js4
-rw-r--r--server/sonar-web/config/polyfills.js4
-rw-r--r--server/sonar-web/config/utils.js4
-rw-r--r--server/sonar-web/scripts/analyze.js2
-rw-r--r--server/sonar-web/scripts/build.js4
-rw-r--r--server/sonar-web/scripts/start.js4
-rw-r--r--server/sonar-web/scripts/test.js4
-rw-r--r--server/sonar-web/scripts/utils/formatSize.js4
-rw-r--r--server/sonar-web/scripts/utils/getMessages.js4
-rw-r--r--server/sonar-web/src/main/js/components/workspace/context.ts36
16 files changed, 58 insertions, 44 deletions
diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle
index 4b42c238e36..d56a846ff3a 100644
--- a/server/sonar-web/build.gradle
+++ b/server/sonar-web/build.gradle
@@ -69,3 +69,17 @@ yarn_run {
args = ['build']
}
+
+def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config")
+
+task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) {
+ source = sources
+ if (release) exclude 'main/js/app/components/GlobalFooterBranding.js'
+}
+licenseMain.dependsOn licenseCheckWeb
+
+task licenseFormatWeb(type: com.hierynomus.gradle.license.tasks.LicenseFormat) {
+ source = sources
+ if (release) exclude 'main/js/app/components/GlobalFooterBranding.js'
+}
+licenseFormat.dependsOn licenseFormatWeb
diff --git a/server/sonar-web/config/autoprefixer.js b/server/sonar-web/config/autoprefixer.js
index 211383fb035..a00043159b3 100644
--- a/server/sonar-web/config/autoprefixer.js
+++ b/server/sonar-web/config/autoprefixer.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/jest/CSSStub.js b/server/sonar-web/config/jest/CSSStub.js
index bc903452330..f9324a21d48 100644
--- a/server/sonar-web/config/jest/CSSStub.js
+++ b/server/sonar-web/config/jest/CSSStub.js
@@ -1,6 +1,6 @@
/*
* SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
+ * Copyright (C) 2009-2018 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
diff --git a/server/sonar-web/config/jest/FileStub.js b/server/sonar-web/config/jest/FileStub.js
index bff56dc8933..3a49ea256c6 100644
--- a/server/sonar-web/config/jest/FileStub.js
+++ b/server/sonar-web/config/jest/FileStub.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/jest/SetupEnzyme.js b/server/sonar-web/config/jest/SetupEnzyme.js
index ec2ff5f0561..7e42de4fbb0 100644
--- a/server/sonar-web/config/jest/SetupEnzyme.js
+++ b/server/sonar-web/config/jest/SetupEnzyme.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/jest/SetupTestEnvironment.js b/server/sonar-web/config/jest/SetupTestEnvironment.js
index c5d8747dde5..3d6a8825599 100644
--- a/server/sonar-web/config/jest/SetupTestEnvironment.js
+++ b/server/sonar-web/config/jest/SetupTestEnvironment.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/paths.js b/server/sonar-web/config/paths.js
index cc9a4f70bf2..9733ef712ff 100644
--- a/server/sonar-web/config/paths.js
+++ b/server/sonar-web/config/paths.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/polyfills.js b/server/sonar-web/config/polyfills.js
index fdb2b100715..38798ecd7bc 100644
--- a/server/sonar-web/config/polyfills.js
+++ b/server/sonar-web/config/polyfills.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/config/utils.js b/server/sonar-web/config/utils.js
index e2fef069675..d555f996789 100644
--- a/server/sonar-web/config/utils.js
+++ b/server/sonar-web/config/utils.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/scripts/analyze.js b/server/sonar-web/scripts/analyze.js
index c821eb19790..cca5227cbad 100644
--- a/server/sonar-web/scripts/analyze.js
+++ b/server/sonar-web/scripts/analyze.js
@@ -1,6 +1,6 @@
/*
* SonarQube
- * Copyright (C) 2009-2017 SonarSource SA
+ * Copyright (C) 2009-2018 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
diff --git a/server/sonar-web/scripts/build.js b/server/sonar-web/scripts/build.js
index 92f8a426a29..7084db2aa08 100644
--- a/server/sonar-web/scripts/build.js
+++ b/server/sonar-web/scripts/build.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/scripts/start.js b/server/sonar-web/scripts/start.js
index 96ceaa8ed9d..dfb765d1b65 100644
--- a/server/sonar-web/scripts/start.js
+++ b/server/sonar-web/scripts/start.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/scripts/test.js b/server/sonar-web/scripts/test.js
index 2b6156cd2c4..77a6010face 100644
--- a/server/sonar-web/scripts/test.js
+++ b/server/sonar-web/scripts/test.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/scripts/utils/formatSize.js b/server/sonar-web/scripts/utils/formatSize.js
index 40aab4ab236..00b7c11cbf4 100644
--- a/server/sonar-web/scripts/utils/formatSize.js
+++ b/server/sonar-web/scripts/utils/formatSize.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/scripts/utils/getMessages.js b/server/sonar-web/scripts/utils/getMessages.js
index ac9c71aeec0..340011b17d7 100644
--- a/server/sonar-web/scripts/utils/getMessages.js
+++ b/server/sonar-web/scripts/utils/getMessages.js
@@ -1,7 +1,7 @@
/*
* SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
diff --git a/server/sonar-web/src/main/js/components/workspace/context.ts b/server/sonar-web/src/main/js/components/workspace/context.ts
index 07dde023200..af0a75818cb 100644
--- a/server/sonar-web/src/main/js/components/workspace/context.ts
+++ b/server/sonar-web/src/main/js/components/workspace/context.ts
@@ -1,22 +1,22 @@
/*
-* SonarQube
-* Copyright (C) 2009-2018 SonarSource SA
-* mailto:info AT sonarsource DOT com
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public
-* License as published by the Free Software Foundation; either
-* version 3 of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public License
-* along with this program; if not, write to the Free Software Foundation,
-* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/
+ * SonarQube
+ * Copyright (C) 2009-2018 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
import { BranchLike } from '../../app/types';
export interface ComponentDescriptor {