summaryrefslogtreecommitdiff
path: root/app/views/projects/pipelines/charts
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2018-02-28 15:59:50 -0700
committerConnor Shea <connor.james.shea@gmail.com>2018-02-28 15:59:50 -0700
commitad532918ed250ca341a2fd931598d1188adb35dd (patch)
treea9b4b9d964a0aa4d56bfe2e7245f1973d1a27cb6 /app/views/projects/pipelines/charts
parent25283e71011490c674c54e64384957a692235e38 (diff)
downloadgitlab-ce-ad532918ed250ca341a2fd931598d1188adb35dd.tar.gz
Ignore InlineJavaScript linter in existing script tag locations.winh-inline-script-linter
Diffstat (limited to 'app/views/projects/pipelines/charts')
-rw-r--r--app/views/projects/pipelines/charts/_pipeline_times.haml1
-rw-r--r--app/views/projects/pipelines/charts/_pipelines.haml1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/pipelines/charts/_pipeline_times.haml b/app/views/projects/pipelines/charts/_pipeline_times.haml
index 510697c2ae9..c23fe6ff170 100644
--- a/app/views/projects/pipelines/charts/_pipeline_times.haml
+++ b/app/views/projects/pipelines/charts/_pipeline_times.haml
@@ -4,4 +4,5 @@
%canvas#build_timesChart{ height: 200 }
+-# haml-lint:disable InlineJavaScript
%script#pipelinesTimesChartsData{ type: "application/json" }= { :labels => @charts[:pipeline_times].labels, :values => @charts[:pipeline_times].pipeline_times }.to_json.html_safe
diff --git a/app/views/projects/pipelines/charts/_pipelines.haml b/app/views/projects/pipelines/charts/_pipelines.haml
index 2f4b6def155..14b3d47a9c2 100644
--- a/app/views/projects/pipelines/charts/_pipelines.haml
+++ b/app/views/projects/pipelines/charts/_pipelines.haml
@@ -26,6 +26,7 @@
= _("Pipelines for last year")
%canvas#yearChart.padded{ height: 250 }
+-# haml-lint:disable InlineJavaScript
%script#pipelinesChartsData{ type: "application/json" }
- chartData = []
- [:week, :month, :year].each do |scope|