From e6c6b552c5ba2e954954e86250131b08e70a6ef0 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 16 Nov 2020 09:16:03 -0800 Subject: [PATCH] Update RuboCop to 1.3.1 Signed-off-by: Tim Smith --- config/upstream.yml | 13 ++++++++----- lib/chefstyle/version.rb | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config/upstream.yml b/config/upstream.yml index df644d2..ad72597 100644 --- a/config/upstream.yml +++ b/config/upstream.yml @@ -1176,7 +1176,7 @@ Layout/SpaceBeforeBlockBraces: SupportedStylesForEmptyBraces: - space - no_space - VersionChanged: '0.52.1' + VersionChanged: '0.52' Layout/SpaceBeforeComma: Description: 'No spaces before commas.' @@ -1401,7 +1401,10 @@ Lint/ConstantDefinitionInBlock: Enabled: true VersionAdded: '0.91' VersionChanged: '1.3' - AllowedMethods: [] + # `enums` for Typed Enums via T::Enum in Sorbet. + # https://sorbet.org/docs/tenum + AllowedMethods: + - enums Lint/ConstantResolution: Description: 'Check that constants are fully qualified with `::`.' @@ -1862,7 +1865,7 @@ Lint/RescueException: StyleGuide: '#no-blind-rescues' Enabled: true VersionAdded: '0.9' - VersionChanged: '0.27.1' + VersionChanged: '0.27' Lint/RescueType: Description: 'Avoid rescuing from non constants that could result in a `TypeError`.' @@ -3917,7 +3920,7 @@ Style/PercentLiteralDelimiters: '%r': '{}' '%w': '[]' '%W': '[]' - VersionChanged: '0.48.1' + VersionChanged: '0.48' Style/PercentQLiterals: Description: 'Checks if uses of %Q/%q match the configured preference.' @@ -4324,7 +4327,7 @@ Style/StringMethods: Description: 'Checks if configured preferred methods are used over non-preferred.' Enabled: false VersionAdded: '0.34' - VersionChanged: '0.34.2' + VersionChanged: '0.34' # Mapping from undesired method to desired_method # e.g. to use `to_sym` over `intern`: # diff --git a/lib/chefstyle/version.rb b/lib/chefstyle/version.rb index 4dbd2b4..2b4e548 100644 --- a/lib/chefstyle/version.rb +++ b/lib/chefstyle/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Chefstyle VERSION = "1.5.1" - RUBOCOP_VERSION = "1.3.0" + RUBOCOP_VERSION = "1.3.1" end \ No newline at end of file