summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChris Akritidis <43294513+cakrit@users.noreply.github.com>2019-02-05 17:10:33 +0100
committerGitHub <noreply@github.com>2019-02-05 17:10:33 +0100
commitabd29a391df21a1700079902bb5ae581f18c7708 (patch)
treeb46f65efead7f0f3f35f906ec68770f9b369fe1e /web
parent283443a46ab56b7409fafcbc969a1fd65545328a (diff)
Add global comments to js for Codacy (#5335)
Diffstat (limited to 'web')
-rw-r--r--web/gui/dashboard.js9
-rw-r--r--web/gui/dashboard_info_custom_example.js3
-rw-r--r--web/gui/src/dashboard.js/charting/dygraph.js4
-rw-r--r--web/gui/src/dashboard.js/main.js3
-rw-r--r--web/gui/src/dashboard.js/themes.js2
5 files changed, 21 insertions, 0 deletions
diff --git a/web/gui/dashboard.js b/web/gui/dashboard.js
index 71d12e590b..8fea62541b 100644
--- a/web/gui/dashboard.js
+++ b/web/gui/dashboard.js
@@ -1704,6 +1704,8 @@ NETDATA.timeout = {
};
NETDATA.timeout.init();
+// Codacy declarations
+/* global netdataTheme */
NETDATA.themes = {
white: {
@@ -1796,6 +1798,10 @@ NETDATA.colors = NETDATA.themes.current.colors;
//NETDATA.colors = [ '#5DA5DA', '#F15854', '#FAA43A', '#60BD68', '#F17CB0', '#B2912F', '#B276B2', '#DECF3F', '#4D4D4D' ];
// dygraph
+// Codacy declarations
+/* global smoothPlotter */
+/* global Dygraph */
+
NETDATA.dygraph = {
smooth: false
};
@@ -4980,6 +4986,9 @@ NETDATA.commonColors = {
// *** src/dashboard.js/main.js
+// Codacy declarations
+/* global clipboard */
+
if (NETDATA.options.debug.main_loop) {
console.log('welcome to NETDATA');
}
diff --git a/web/gui/dashboard_info_custom_example.js b/web/gui/dashboard_info_custom_example.js
index 51ce0be22a..6a2d537653 100644
--- a/web/gui/dashboard_info_custom_example.js
+++ b/web/gui/dashboard_info_custom_example.js
@@ -21,6 +21,9 @@
*
*/
+// Codacy declarations
+/* global customDashboard */
+
// ----------------------------------------------------------------------------
// MENU
//
diff --git a/web/gui/src/dashboard.js/charting/dygraph.js b/web/gui/src/dashboard.js/charting/dygraph.js
index 62cb466fc9..a60af18b83 100644
--- a/web/gui/src/dashboard.js/charting/dygraph.js
+++ b/web/gui/src/dashboard.js/charting/dygraph.js
@@ -1,5 +1,9 @@
// dygraph
+// Codacy declarations
+/* global smoothPlotter */
+/* global Dygraph */
+
NETDATA.dygraph = {
smooth: false
};
diff --git a/web/gui/src/dashboard.js/main.js b/web/gui/src/dashboard.js/main.js
index 3d8cc3b7cb..1d050d6136 100644
--- a/web/gui/src/dashboard.js/main.js
+++ b/web/gui/src/dashboard.js/main.js
@@ -1,6 +1,9 @@
// *** src/dashboard.js/main.js
+// Codacy declarations
+/* global clipboard */
+
if (NETDATA.options.debug.main_loop) {
console.log('welcome to NETDATA');
}
diff --git a/web/gui/src/dashboard.js/themes.js b/web/gui/src/dashboard.js/themes.js
index a83a1dd38f..aafe157687 100644
--- a/web/gui/src/dashboard.js/themes.js
+++ b/web/gui/src/dashboard.js/themes.js
@@ -1,3 +1,5 @@
+// Codacy declarations
+/* global netdataTheme */
NETDATA.themes = {
white: {