diff options
Diffstat (limited to 'config/initializers/parser_patch.rb')
| -rw-r--r-- | config/initializers/parser_patch.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/config/initializers/parser_patch.rb b/config/initializers/parser_patch.rb deleted file mode 100644 index 8ebd804b94f..00000000000 --- a/config/initializers/parser_patch.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_literal_string: true - -# This works around unnecessary static-analysis warnings that will be -# fixed via https://github.com/whitequark/parser/pull/528. -module Parser - class << self - def warn_syntax_deviation(feature, version) - return if ['2.3.8', '2.4.5', '2.5.3'].include?(version) - - warn "warning: parser/current is loading #{feature}, which recognizes" - warn "warning: #{version}-compliant syntax, but you are running #{RUBY_VERSION}." - warn "warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri." - end - end -end |
