Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 14:38:41 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commit6a1d3bc891acd11e7826ab496a1902b004656687 (patch)
tree1cac2e138c63e56a0132f4dd33c6580fb7721e7c
parenteb8f3ca4de085f0a602191102adae15ed74927f6 (diff)
freeze string literals in rake tasks
These were marked as not-to-be-frozen in 1d55bdbb (Don't freeze rake tasks, 2018-11-20). But I don't see why, and now rubocop complains about it. They seem to work fine after this change.
-rw-r--r--lib/tasks/book2.rake2
-rw-r--r--lib/tasks/downloads.rake2
-rw-r--r--lib/tasks/index.rake2
-rw-r--r--lib/tasks/search.rake2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/book2.rake b/lib/tasks/book2.rake
index 9d17d269..b61372e8 100644
--- a/lib/tasks/book2.rake
+++ b/lib/tasks/book2.rake
@@ -1,4 +1,4 @@
-# rubocop:disable Style/FrozenStringLiteralComment
+# frozen_string_literal: true
require "nokogiri"
require "octokit"
diff --git a/lib/tasks/downloads.rake b/lib/tasks/downloads.rake
index 0ce174a9..0fb07ef8 100644
--- a/lib/tasks/downloads.rake
+++ b/lib/tasks/downloads.rake
@@ -1,4 +1,4 @@
-# rubocop:disable Style/FrozenStringLiteralComment
+# frozen_string_literal: true
desc "find newest mac and windows binary downloads"
task downloads: %i[windows_downloads mac_downloads]
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index 3ff7d1f9..a57a16c5 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -1,4 +1,4 @@
-# rubocop:disable Style/FrozenStringLiteralComment
+# frozen_string_literal: true
require "asciidoctor"
require "octokit"
diff --git a/lib/tasks/search.rake b/lib/tasks/search.rake
index 83589591..9d802894 100644
--- a/lib/tasks/search.rake
+++ b/lib/tasks/search.rake
@@ -1,4 +1,4 @@
-# rubocop:disable Style/FrozenStringLiteralComment
+# frozen_string_literal: true
task search_clear: :environment do
# BONSAI.clear