about summary refs log tree commit diff
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:05:57 -0500
committerGitHub <noreply@github.com>2023-02-18 11:05:57 +0900
commitac59d6f19f00f1503343cd587c4238dc0038127a (patch)
treeb0960d3c19a9cd516242622ff3fe71fc84b48881 /.rubocop.yml
parent669f6d2c0af969268c76e389ed626bce0cc9f998 (diff)
Enable Rubocop Style/NumericLiterals (#23647)
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 5278ee38c..eb3fcba43 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -101,6 +101,10 @@ Style/Copyright:
 Style/HashSyntax:
   EnforcedStyle: ruby19_no_mixed_keys
 
+Style/NumericLiterals:
+  AllowedPatterns:
+    - \d{4}_\d{2}_\d{2}_\d{6} # For DB migration date version number readability
+
 Style/PercentLiteralDelimiters:
   PreferredDelimiters:
     '%i': '()'