I am trying to write a swift lint rule that will ignore certain files in my project. Those files either start with Fake or end with Spec.swift.
Example:
Object.swift
FakeObject.swift
ObjectSpec.swift
I only want the regex to match on Object.swift
Using http://rubular.com I was able to get it working with ^(?!Fake).*(?<!Spec).swift
Unfortunately, that doesn't seem to work with swiftlint.
A regular expression that works for excluding files ending in Spec.swift
(.*(?<!Spec).swift
)doesn't work on http://nsregularexpression.com. So I'm not sure how swiftlint is doing it.