Error on bad expiring todo date formats. #3626
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
For expiring todos, there is currently a lack of documentation on the default date format. This currently requires a deep dive into SwiftLint to figure out what it is. This is a detractor of this tool in a team setting. Unfortunately, the default is an American date format which is a little surprising. Although it may be too late to change the default to be in line with ISO 8601, we can reject badly formatted dates which otherwise never expire or unexpectedly expire.
What Changed
consoleDescription
has been updated to correct and include all the latest propertiesdate_format
and removedate_separator