From fa13409e1f22e74d658bfc1fcd6ffafb1219f8c6 Mon Sep 17 00:00:00 2001 From: Tony Ta Date: Wed, 25 Oct 2017 08:55:39 -0700 Subject: [PATCH] Explicitly Disable Style/Encoding (support RuboCop >= 0.50.0) As of RuboCop v0.50.0, the Style/Encoding cop is now enabled by default and configured to remove the encoding magic-comment. This deviates from the expected behavior in specs and changes the behavior of this gem. Disabling this cop will ensure that fix_db_schema_conflicts will output consistently regardless of RuboCop version. Change in RuboCop: https://github.com/bbatsov/rubocop/pull/4445 --- .rubocop_schema.49.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop_schema.49.yml b/.rubocop_schema.49.yml index 8996d87..316ce49 100644 --- a/.rubocop_schema.49.yml +++ b/.rubocop_schema.49.yml @@ -13,6 +13,9 @@ Layout/ExtraSpacing: Layout/SpaceBeforeFirstArg: Enabled: true +Style/Encoding: + Enabled: false + Style/NumericLiterals: Enabled: false