Skip to content

Commit

Permalink
ignore percent-we rule for specs because many lists of test name cont…
Browse files Browse the repository at this point in the history
…ain spaces
  • Loading branch information
anmarchenko committed Jun 3, 2024
1 parent e83688a commit 1514898
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.2.4'
ruby-version: '3.3'
- uses: rubygems/release-gem@v1
2 changes: 1 addition & 1 deletion spec/datadog/ci/test_visibility/context/global_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@

context "when multiple test suites are running" do
before do
["suite1", "suite2"].each do |test_suite_name|
%w[suite1 suite2].each do |test_suite_name|
subject.fetch_or_activate_test_suite(test_suite_name) do
Datadog::CI::TestSuite.new(double(Datadog::Tracing::SpanOperation))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/support/span_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def description_of(actual) # rubocop:disable Lint/NestedMethodDefinition
end
end

["skip", "pass", "fail"].each do |status|
%w[skip pass fail].each do |status|
RSpec::Matchers.define "have_#{status}_status" do
match do |span|
@actual = span.get_tag(Datadog::CI::Ext::Test::TAG_STATUS)
Expand Down
5 changes: 5 additions & 0 deletions static-analysis.datadog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ rulesets:
hash-fetch:
ignore:
- spec/**/*
rules:
percent-w:
ignore:
- spec/**/*

0 comments on commit 1514898

Please sign in to comment.