Add frozen string literal comment to files.

Add frozen string literal comment to files.

diff --git a/db/migrate/20181213080000_create_custom_field_indexes.rb b/db/migrate/20181213080000_create_custom_field_indexes.rb
index bb8427a..045fb19 100644
--- a/db/migrate/20181213080000_create_custom_field_indexes.rb
+++ b/db/migrate/20181213080000_create_custom_field_indexes.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class CreateCustomFieldIndexes < ActiveRecord::Migration[5.2]
   def change
     add_index :topic_custom_fields, [:value], unique: true, where: "name = 'commit hash'"
diff --git a/lib/discourse_code_review/importer.rb b/lib/discourse_code_review/importer.rb
index b9c2ae1..3aeadfd 100644
--- a/lib/discourse_code_review/importer.rb
+++ b/lib/discourse_code_review/importer.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module DiscourseCodeReview
   class Importer
     attr_reader :github_repo
diff --git a/plugin.rb b/plugin.rb
index ef16984..bb1fe02 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 # name: discourse-code-review
 # about: use discourse for after the fact code reviews
 # version: 0.1
diff --git a/spec/discourse_code_review/lib/github_repo_spec.rb b/spec/discourse_code_review/lib/github_repo_spec.rb
index c83368f..51e1a8b 100644
--- a/spec/discourse_code_review/lib/github_repo_spec.rb
+++ b/spec/discourse_code_review/lib/github_repo_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 module DiscourseCodeReview
diff --git a/spec/discourse_code_review/lib/importer_spec.rb b/spec/discourse_code_review/lib/importer_spec.rb
index 741c6bb..dfe56d3 100644
--- a/spec/discourse_code_review/lib/importer_spec.rb
+++ b/spec/discourse_code_review/lib/importer_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 module DiscourseCodeReview
diff --git a/spec/requests/discourse_code_review/code_review_controller_spec.rb b/spec/requests/discourse_code_review/code_review_controller_spec.rb
index ff38f20..1ebd731 100644
--- a/spec/requests/discourse_code_review/code_review_controller_spec.rb
+++ b/spec/requests/discourse_code_review/code_review_controller_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 describe DiscourseCodeReview::CodeReviewController do

GitHub sha: 6e8818a5

1 Like