summaryrefslogtreecommitdiff
path: root/lib/rouge
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-10-08 07:50:39 -0700
committergfyoung <gfyoung17@gmail.com>2018-10-08 11:16:49 -0700
commitc8755543f07aa35ec22e9509c0cc2d04e5d3e0d3 (patch)
treeebae01fff813047d7192b3f10aad475b1894c744 /lib/rouge
parent1540d51a54f6c2e63335824deb93dad75aba1aec (diff)
downloadgitlab-ce-c8755543f07aa35ec22e9509c0cc2d04e5d3e0d3.tar.gz
Enable even more frozen string in lib/**/*.rb
Enables frozen string for the following files: * lib/generators/**/*.rb * lib/gitaly/**/*.rb * lib/google_api/**/*.rb * lib/haml_lint/**/*.rb * lib/json_web_token/**/*.rb * lib/mattermost/**/*.rb * lib/microsoft_teams/**/*.rb * lib/object_storage/**/*.rb * lib/omni_auth/**/*.rb * lib/peek/**/*.rb * lib/rouge/**/*.rb * lib/rspec_flaky/**/*.rb * lib/system_check/**/*.rb Partially addresses #47424.
Diffstat (limited to 'lib/rouge')
-rw-r--r--lib/rouge/formatters/html_gitlab.rb2
-rw-r--r--lib/rouge/plugins/common_mark.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/rouge/formatters/html_gitlab.rb b/lib/rouge/formatters/html_gitlab.rb
index e877ab10248..e2a7d3ef5ba 100644
--- a/lib/rouge/formatters/html_gitlab.rb
+++ b/lib/rouge/formatters/html_gitlab.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Rouge
module Formatters
class HTMLGitlab < Rouge::Formatters::HTML
diff --git a/lib/rouge/plugins/common_mark.rb b/lib/rouge/plugins/common_mark.rb
index 8f9de061124..d240df5a0e0 100644
--- a/lib/rouge/plugins/common_mark.rb
+++ b/lib/rouge/plugins/common_mark.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
# A rouge plugin for CommonMark markdown engine.
# Used to highlight code generated by CommonMark.