Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
4e554c4c committed Aug 14, 2024
1 parent c6299aa commit 3a4f558
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/mathematical/fixtures_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion test/mathematical/mathjax_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a4f558

Please sign in to comment.