diff --git a/.codespellrc b/.codespellrc index 57c91a0140a..7e4dc4ab80d 100644 --- a/.codespellrc +++ b/.codespellrc @@ -3,4 +3,4 @@ skip = .git,*.pdf,*.svg,gems,index,fixtures,CHANGELOG_ARCHIVE_*,yarn.lock ignore-regex = \bsha512-[^"]*|ENV\["ROUGE"\]|\b(com\.google\.errorprone)\b|\bto(_not)? include .*versio"|https://\S* # some modules, parts of regexes, and variable names to ignore, some # misspellings in fixtures/external responses we do not own -ignore-words-list = caf,bu,nwo,nd,kernal,crate,unparseable,couldn,defintions +ignore-words-list = caf,bu,nwo,nd,kernal,crate,unparseable,couldn,defintions,hashin diff --git a/bundler/spec/dependabot/bundler/file_fetcher/path_gemspec_finder_spec.rb b/bundler/spec/dependabot/bundler/file_fetcher/path_gemspec_finder_spec.rb index b7e310704ab..92c2fe58eae 100644 --- a/bundler/spec/dependabot/bundler/file_fetcher/path_gemspec_finder_spec.rb +++ b/bundler/spec/dependabot/bundler/file_fetcher/path_gemspec_finder_spec.rb @@ -36,7 +36,7 @@ it { is_expected.to eq([Pathname.new("plugins/example")]) } - context "when the path must be eval-ed" do + context "when gemspec path must be evaluated" do let(:gemfile) { bundler_project_dependency_file("path_source_eval", filename: "Gemfile") } it "raises a helpful error" do diff --git a/bundler/spec/dependabot/bundler/file_fetcher/require_relative_finder_spec.rb b/bundler/spec/dependabot/bundler/file_fetcher/require_relative_finder_spec.rb index effa20b8165..8a2d2c47d8d 100644 --- a/bundler/spec/dependabot/bundler/file_fetcher/require_relative_finder_spec.rb +++ b/bundler/spec/dependabot/bundler/file_fetcher/require_relative_finder_spec.rb @@ -52,20 +52,20 @@ end # rubocop:disable Lint/InterpolationCheck - context "when that needs to be evaled" do + context "when the file body needs to be evaluated" do let(:file_body) do 'require_relative "./my_file_#{raise %(hell)}"' end it { is_expected.to eq([]) } + end - context "when it can't be" do - let(:file_body) do - 'require_relative "./my_file_#{unknown_var}"' - end - - it { is_expected.to eq([]) } + context "when the file body can't be evaluated" do + let(:file_body) do + 'require_relative "./my_file_#{unknown_var}"' end + + it { is_expected.to eq([]) } end # rubocop:enable Lint/InterpolationCheck diff --git a/bundler/spec/dependabot/bundler/file_fetcher_spec.rb b/bundler/spec/dependabot/bundler/file_fetcher_spec.rb index cd7fa34105a..1bedd51e356 100644 --- a/bundler/spec/dependabot/bundler/file_fetcher_spec.rb +++ b/bundler/spec/dependabot/bundler/file_fetcher_spec.rb @@ -78,7 +78,7 @@ .to match_array(%w(Gemfile Gemfile.lock .ruby-version)) end - context "when that can't be found" do + context "when the files can't be found" do before do stub_request(:get, url + "?ref=sha") .with(headers: { "Authorization" => "token token" }) @@ -94,7 +94,7 @@ end end - context "when that returns a file" do + context "when returning a file" do before do stub_request(:get, url + "?ref=sha") .with(headers: { "Authorization" => "token token" }) @@ -234,7 +234,7 @@ ) end - context "when that has a fetchable path" do + context "when there is a fetchable path" do before do stub_request(:get, imported_file_url + "?ref=sha") .with(headers: { "Authorization" => "token token" }) @@ -280,7 +280,7 @@ ) end - context "when that has a fetchable path" do + context "when there is a fetchable path" do before do stub_request(:get, url + "plugins/bump-core?ref=sha") .with(headers: { "Authorization" => "token token" })