Merge pull request #14408 from dduugg/rspec-disable
Inline RSpec/InstanceVariable todos
This commit is contained in:
commit
d636f5bc0a
@ -1,6 +1,5 @@
|
|||||||
inherit_from:
|
inherit_from:
|
||||||
- ../.rubocop.yml
|
- ../.rubocop.yml
|
||||||
- .rubocop_todo.yml
|
|
||||||
|
|
||||||
RSpec:
|
RSpec:
|
||||||
Include:
|
Include:
|
||||||
|
|||||||
@ -1,15 +0,0 @@
|
|||||||
# This configuration was generated by
|
|
||||||
# `rubocop --auto-gen-config --exclude-limit 100`
|
|
||||||
# on 2021-02-01 21:43:02 UTC using RuboCop version 1.9.0.
|
|
||||||
# The point is for the user to remove these configuration records
|
|
||||||
# one by one as the offenses are removed from the code base.
|
|
||||||
# Note that changes in the inspected code, or installation of new
|
|
||||||
# versions of RuboCop, may require this file to be generated again.
|
|
||||||
|
|
||||||
# Offense count: 7
|
|
||||||
# Configuration parameters: AssignmentOnly.
|
|
||||||
RSpec/InstanceVariable:
|
|
||||||
Exclude:
|
|
||||||
- "download_strategies/git_spec.rb"
|
|
||||||
- "support/helper/spec/shared_context/integration_test.rb"
|
|
||||||
- "utils/git_spec.rb"
|
|
||||||
@ -18,8 +18,11 @@ describe GitDownloadStrategy do
|
|||||||
|
|
||||||
def git_commit_all
|
def git_commit_all
|
||||||
system "git", "add", "--all"
|
system "git", "add", "--all"
|
||||||
|
# Allow instance variables here to have nice commit messages.
|
||||||
|
# rubocop:disable RSpec/InstanceVariable
|
||||||
system "git", "commit", "-m", "commit number #{@commit_id}"
|
system "git", "commit", "-m", "commit number #{@commit_id}"
|
||||||
@commit_id += 1
|
@commit_id += 1
|
||||||
|
# rubocop:enable RSpec/InstanceVariable
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup_git_repo
|
def setup_git_repo
|
||||||
|
|||||||
@ -119,7 +119,10 @@ RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWordin
|
|||||||
end
|
end
|
||||||
|
|
||||||
Bundler.with_unbundled_env do
|
Bundler.with_unbundled_env do
|
||||||
|
# Allow instance variable here to improve performance through memoization.
|
||||||
|
# rubocop:disable RSpec/InstanceVariable
|
||||||
stdout, stderr, status = Open3.capture3(env, *@ruby_args, *args)
|
stdout, stderr, status = Open3.capture3(env, *@ruby_args, *args)
|
||||||
|
# rubocop:enable RSpec/InstanceVariable
|
||||||
$stdout.print stdout
|
$stdout.print stdout
|
||||||
$stderr.print stderr
|
$stderr.print stderr
|
||||||
status
|
status
|
||||||
|
|||||||
@ -45,12 +45,15 @@ describe Utils::Git do
|
|||||||
end
|
end
|
||||||
|
|
||||||
let(:file) { "README.md" }
|
let(:file) { "README.md" }
|
||||||
|
# Allow instance variables here for a simpler `before do` block.
|
||||||
|
# rubocop:disable RSpec/InstanceVariable
|
||||||
let(:file_hash1) { @h1[0..6] }
|
let(:file_hash1) { @h1[0..6] }
|
||||||
let(:file_hash2) { @h2[0..6] }
|
let(:file_hash2) { @h2[0..6] }
|
||||||
let(:files) { ["README.md", "LICENSE.txt"] }
|
let(:files) { ["README.md", "LICENSE.txt"] }
|
||||||
let(:files_hash1) { [@h3[0..6], ["LICENSE.txt"]] }
|
let(:files_hash1) { [@h3[0..6], ["LICENSE.txt"]] }
|
||||||
let(:files_hash2) { [@h2[0..6], ["README.md"]] }
|
let(:files_hash2) { [@h2[0..6], ["README.md"]] }
|
||||||
let(:cherry_pick_commit) { @cherry_pick_commit[0..6] }
|
let(:cherry_pick_commit) { @cherry_pick_commit[0..6] }
|
||||||
|
# rubocop:enable RSpec/InstanceVariable
|
||||||
|
|
||||||
describe "#cherry_pick!" do
|
describe "#cherry_pick!" do
|
||||||
it "can cherry pick a commit" do
|
it "can cherry pick a commit" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user