You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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.
The text was updated successfully, but these errors were encountered:
Jeehut
changed the title
Add Todo date lint custom rule as example in README
Add Todo date lint custom rule to lint.swift
May 17, 2020
For a given comment like 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.
The text was updated successfully, but these errors were encountered: