AnyLint icon indicating copy to clipboard operation
AnyLint copied to clipboard

Add Todo date lint custom rule to lint.swift

Open Jeehut opened this issue 4 years ago • 0 comments

For a given comment like this:

// TODO: [cg_2016-05-28] find a better way to implement this

The rule could report a warning if the given TODO is between 3-6 months ago and an error if it's more than 6 months ago. That could be achieved with regexes, file reading, but with custom logic using the current date and transforming the date, which shows the strengths of AnyLint very well.

Jeehut avatar Apr 23 '20 15:04 Jeehut