Skip to content

Conversation

krororo
Copy link

@krororo krororo commented Dec 19, 2019

現在は -w オプションを付けて、テストを実行すると以下のような警告が出力されます。

$ ruby -I ./lib -w test.rb
/work/github/mailparser/lib/mailparser/rfc2822/parser.rb:923: warning: mismatched indentations at 'end' with 'module' at 10
/work/github/mailparser/lib/mailparser/rfc2822/parser.rb:924: warning: mismatched indentations at 'end' with 'module' at 9
/work/github/mailparser/lib/mailparser/rfc2045/parser.rb:244: warning: mismatched indentations at 'end' with 'module' at 10
/work/github/mailparser/lib/mailparser/rfc2045/parser.rb:245: warning: mismatched indentations at 'end' with 'module' at 9
/work/github/mailparser/lib/mailparser/rfc2183/parser.rb:186: warning: mismatched indentations at 'end' with 'module' at 10
/work/github/mailparser/lib/mailparser/rfc2183/parser.rb:187: warning: mismatched indentations at 'end' with 'module' at 9

最新の racc 1.4.16 を使うと end のインデントが修正され、この警告は出力されなくなりました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant