audit: simplify command-line spelling check
Closes Homebrew/homebrew#42403. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
65dbdccfc0
commit
e9180b39f5
@ -360,12 +360,8 @@ class FormulaAuditor
|
||||
EOS
|
||||
end
|
||||
|
||||
if desc =~ /[Cc]ommandline/
|
||||
problem "It should be \"command-line\", not \"commandline\"."
|
||||
end
|
||||
|
||||
if desc =~ /[Cc]ommand line/
|
||||
problem "It should be \"command-line\", not \"command line\"."
|
||||
if desc =~ %r[([Cc]ommand ?line)]
|
||||
problem "Description should use \"command-line\" instead of \"#{$1}\""
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user