Skip to content

Commit 2594450

Browse files
authored
Remove redundant encoding (#614)
This magic comment is not needed anymore because the default encoding of source code files assumed by Ruby 2 is utf-8, and the minimum required Ruby version is 2.7 Autofixed with: ``` rubocop -a ```
1 parent b6dac5d commit 2594450

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ RSpec/VoidExpect:
565565
RSpec/Yield:
566566
Enabled: true
567567

568+
Style/Encoding:
569+
Enabled: true
570+
568571
Style/FrozenStringLiteralComment:
569572
Enabled: true
570573
Exclude:

arbre.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
$:.push File.expand_path("../lib", __FILE__)
43
require "arbre/version"

spec/arbre/unit/context_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding: utf-8
21
# frozen_string_literal: true
32
require 'spec_helper'
43

0 commit comments

Comments
 (0)