Browse Source

Add global comments to js for Codacy (#5335)

Chris Akritidis 6 years ago
parent
commit
abd29a391d

+ 9 - 0
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');
 }

+ 3 - 0
web/gui/dashboard_info_custom_example.js

@@ -21,6 +21,9 @@
  *
  */
 
+// Codacy declarations
+/* global customDashboard */
+
 // ----------------------------------------------------------------------------
 // MENU
 //

+ 4 - 0
web/gui/src/dashboard.js/charting/dygraph.js

@@ -1,5 +1,9 @@
 // dygraph
 
+// Codacy declarations
+/* global smoothPlotter */
+/* global Dygraph */
+
 NETDATA.dygraph = {
     smooth: false
 };

+ 3 - 0
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');
 }

+ 2 - 0
web/gui/src/dashboard.js/themes.js

@@ -1,3 +1,5 @@
+// Codacy declarations
+/* global netdataTheme */
 
 NETDATA.themes = {
     white: {