SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

New Mark rule does not allow marks with only a hyphen

Open aron opened this issue 10 years ago • 5 comments

The mark rule added in #768 does not allow marks containing only a hyphen.

// MARK: -

We use these often to split up files into sections as they insert dividers in the Document Items view.

aron avatar Aug 25 '16 08:08 aron

Thanks for reporting this. Should be an easy fix, if you're looking to contribute to SwiftLint @aron 😄

jpsim avatar Aug 25 '16 17:08 jpsim

please accept my pull request for this issue: #789

roddi avatar Aug 30 '16 15:08 roddi

This bug is reproducible in 0.13.1/cc @jpsim

otaran avatar Dec 01 '16 02:12 otaran

You're right, sorry about reintroducing this. I'm on it.

jpsim avatar Dec 01 '16 05:12 jpsim

👍

otaran avatar Dec 01 '16 15:12 otaran