From 3a4f558e242f57730e74dce3866b99df4e738480 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Wed, 14 Aug 2024 00:37:59 +0000 Subject: [PATCH] fix rubocop --- .rubocop.yml | 7 +++++++ test/mathematical/fixtures_test.rb | 2 +- test/mathematical/mathjax_test.rb | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2ae5ba2..e26c1c4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,3 +6,10 @@ inherit_gem: AllCops: Exclude: - 'ext/mathematical/mtex2MML/**/*' + +# temporary fix for current rubocop bug +# https://github.com/rubocop/rubocop/issues/13093 +Lint/ImplicitStringConcatenation: + Enabled: false +Lint/RedundantCopDisableDirective: + Enabled: false diff --git a/test/mathematical/fixtures_test.rb b/test/mathematical/fixtures_test.rb index 9a32e55..ba23305 100644 --- a/test/mathematical/fixtures_test.rb +++ b/test/mathematical/fixtures_test.rb @@ -13,7 +13,7 @@ def strip_id(blob) Dir["#{fixtures_dir}/before/*.text"].each do |before| name = before.split("/").last - define_method "test_#{name}" do + define_method :"test_#{name}" do source = File.read(before) if ENV["MATHEMATICAL_GENERATE_SAMPLE"] diff --git a/test/mathematical/mathjax_test.rb b/test/mathematical/mathjax_test.rb index 77a15f2..9861f94 100644 --- a/test/mathematical/mathjax_test.rb +++ b/test/mathematical/mathjax_test.rb @@ -9,7 +9,7 @@ class MathJaxTest < Minitest::Test SKIPPED = [] Dir["#{MATHJAX_TEX_DIR}/**/*.txt"].each do |tex| - define_method "test_#{tex}" do + define_method :"test_#{tex}" do tex_contents = File.read(tex) data = nil