Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Todo date lint custom rule to lint.swift #19

Open
Jeehut opened this issue Apr 23, 2020 · 0 comments
Open

Add Todo date lint custom rule to lint.swift #19

Jeehut opened this issue Apr 23, 2020 · 0 comments

Comments

@Jeehut
Copy link
Member

Jeehut commented Apr 23, 2020

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant