Skip to content

Commit

Permalink
Merge pull request puppetlabs#53 from puppetlabs/2021-02-26_fix_ruboc…
Browse files Browse the repository at this point in the history
…op_1.10_linter_issues

2021 02 26 fix rubocop 1.10 linter issues
  • Loading branch information
lucywyman committed Feb 26, 2021
2 parents 632c1b0 + 39dea90 commit 92ef8f4
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 19 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Expand Up @@ -4,6 +4,7 @@ require:

AllCops:
TargetRubyVersion: 2.5
NewCops: enable

Metrics/BlockLength:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/i18n/rails_i18n/decorate_string.rb
Expand Up @@ -122,7 +122,7 @@ def regexp_from_string_type
when 'sentence' then SENTENCE_REGEXP
when 'fragmented_sentence' then FRAGMENTED_SENTENCE_REGEXP
when 'fragment' then FRAGMENT_REGEXP
else
else # rubocop:disable Lint/DuplicateBranch
SENTENCE_REGEXP
end
end
Expand Down
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::GetText::DecorateFunctionMessage do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::GetText::DecorateFunctionMessage, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::GetText::DecorateStringFormattingUsingInterpolation do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::GetText::DecorateStringFormattingUsingInterpolation, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::GetText::DecorateStringFormattingUsingPercent do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::GetText::DecorateStringFormattingUsingPercent, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down
4 changes: 1 addition & 3 deletions spec/rubocop/cop/i18n/gettext/decorate_string_spec.rb
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::GetText::DecorateString do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::GetText::DecorateString, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::RailsI18n::DecorateStringFormattingUsingInterpolation do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::RailsI18n::DecorateStringFormattingUsingInterpolation, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down
4 changes: 1 addition & 3 deletions spec/rubocop/cop/i18n/rails_i18n/decorate_string_spec.rb
Expand Up @@ -2,9 +2,7 @@

require 'spec_helper'

describe RuboCop::Cop::I18n::RailsI18n::DecorateString do
let(:config) { RuboCop::Config.new }
subject(:cop) { described_class.new(config) }
describe RuboCop::Cop::I18n::RailsI18n::DecorateString, :config, :config do
before(:each) do
investigate(cop, source)
end
Expand Down

0 comments on commit 92ef8f4

Please sign in to comment.