Created
January 2, 2018 19:10
-
-
Save rmirabelli/ca24aee8bed5b1f2b559aa4a7c6a98bd to your computer and use it in GitHub Desktop.
This is a little snippet to make sure we don't ever use YYYY for date formatting-- this can rarely lead to a very serious bug.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom_rules: | |
YYYY_considered_harmful: # rule identifier | |
name: "YYYY considered harmful" # rule name. optional. | |
regex: "(YYYY)" # matching pattern | |
message: "YYYY means week-year; you probably want yyyy" # violation message. optional. | |
severity: error # violation severity. optional. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment