File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ gem 'rails', '>= 6.0'
99gem 'rake'
1010gem 'rspec'
1111gem 'simplecov'
12+ gem 'warning'
1213
1314# Dev tools / linter
1415gem 'guard-rspec' , require : false
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3+ # Load ruby-warning gem
4+ require 'warning'
5+
6+ Warning [ :deprecated ] = true
7+ Warning [ :experimental ] = true
8+ Warning [ :performance ] = true if Gem ::Version . new ( RUBY_VERSION ) >= Gem ::Version . new ( '3.3.0' )
9+
10+ # Ignore all warnings in Gem dependencies
11+ Gem . path . each do |path |
12+ Warning . ignore ( // , path )
13+ end
14+
15+ # Ignore OpenStruct warning (only used in tests)
16+ Warning . ignore ( /OpenStruct use is discouraged for performance reasons/ )
17+
318require 'simplecov'
419require 'simplecov_json_formatter'
520
You can’t perform that action at this time.
0 commit comments