Skip to content

Commit

Permalink
Remove redundant encoding
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
tagliala committed Aug 26, 2024
1 parent b6dac5d commit 52ab11f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ RSpec/VoidExpect:
RSpec/Yield:
Enabled: true

Style/Encoding:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
Expand Down
1 change: 0 additions & 1 deletion arbre.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "arbre/version"
Expand Down
1 change: 0 additions & 1 deletion spec/arbre/unit/context_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'

Expand Down

0 comments on commit 52ab11f

Please sign in to comment.