Enable frozen string across project (#1319)

Turn on frozen string support in all files by using a comment to avoid
enabling across dependencies where it may not work.

Fixes: #1177
This commit is contained in:
Darragh Bailey
2021-06-30 13:27:03 +01:00
committed by GitHub
parent 6dac9c9054
commit 18ebb9d9ed
91 changed files with 220 additions and 46 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
##
# A simple extension of the Proc class that supports setting a custom binding
# and evaluates everything in the Proc using the new binding.

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'ostruct'
require 'pathname'

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'fog/libvirt'
shared_context 'libvirt' do

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "rspec/expectations/version"
#
# Taken from https://github.com/cucumber/aruba/blob/main/lib/aruba/matchers/file/have_file_content.rb

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'spec_helper'
shared_context 'unit' do

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
shared_context 'temporary_dir' do
around do |example|
Dir.mktmpdir("rspec-") do |dir|