mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Make InlineComments::COMMENT_DIRECTIVE_REGEX more strict (#146)
This commit is contained in:
parent
458c492730
commit
1a25583036
4 changed files with 22 additions and 17 deletions
|
@ -28,7 +28,7 @@ module Ameba::Rule::Lint
|
|||
|
||||
it "reports if there are incorrect rule names" do
|
||||
s = Source.new %(
|
||||
# ameba:enable BadRule1,BadRule2
|
||||
# ameba:enable BadRule1, BadRule2
|
||||
), "source.cr"
|
||||
subject.catch(s).should_not be_valid
|
||||
s.issues.size.should eq 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue