From 370664bae722af8dad0b22c0e1c5f2c8d04ebdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Vantomme?= Date: Wed, 5 Jan 2022 15:43:48 +0100 Subject: [PATCH] style(rubocop): reorder cops alphabetically --- .rubocop.yml | 91 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 7c7982b4b..e5eac1a9b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -674,15 +674,24 @@ Performance/UnfreezeString: Performance/UriDefaultParser: Enabled: true +Rails: + Enabled: true + Rails/ActionFilter: Enabled: true Rails/ActiveRecordAliases: Enabled: true +Rails/ActiveRecordCallbacksOrder: + Enabled: false + Rails/ActiveSupportAliases: Enabled: true +Rails/AfterCommitOverride: + Enabled: true + Rails/ApplicationJob: Enabled: true @@ -692,8 +701,8 @@ Rails/ApplicationRecord: Rails/ApplicationController: Enabled: false -Rails/RakeEnvironment: - Enabled: false +Rails/AttributeDefaultBlockValue: + Enabled: true Rails/Blank: Enabled: true @@ -739,6 +748,9 @@ Rails/FilePath: Rails/FindBy: Enabled: true +Rails/FindById: + Enabled: true + Rails/FindEach: Enabled: true @@ -754,12 +766,24 @@ Rails/HttpPositionalArguments: Rails/HttpStatus: Enabled: false +Rails/Inquiry: + Enabled: true + Rails/InverseOf: Enabled: true Rails/LexicallyScopedActionFilter: Enabled: false +Rails/MailerName: + Enabled: true + +Rails/MatchRoute: + Enabled: true + +Rails/NegateInclude: + Enabled: false + Rails/NotNullColumn: Enabled: false @@ -769,6 +793,12 @@ Rails/Output: Rails/OutputSafety: Enabled: true +Rails/Pluck: + Enabled: false + +Rails/PluckInWhere: + Enabled: true + Rails/PluralizationGrammar: Enabled: true @@ -778,6 +808,9 @@ Rails/Presence: Rails/Present: Enabled: true +Rails/RakeEnvironment: + Enabled: false + Rails/ReadWriteAttribute: Enabled: false @@ -790,6 +823,12 @@ Rails/RedundantReceiverInWithOptions: Rails/RelativeDateConstant: Enabled: true +Rails/RenderInline: + Enabled: true + +Rails/RenderPlainText: + Enabled: true + Rails/RequestReferer: Enabled: true @@ -802,9 +841,15 @@ Rails/SaveBang: Rails/ScopeArgs: Enabled: true +Rails/ShortI18n: + Enabled: true + Rails/SkipsModelValidations: Enabled: false +Rails/SquishedSQLHeredocs: + Enabled: true + Rails/TimeZone: EnforcedStyle: strict @@ -820,7 +865,13 @@ Rails/UnknownEnv: Rails/Validation: Enabled: true -Rails: +Rails/WhereEquals: + Enabled: true + +Rails/WhereExists: + Enabled: true + +Rails/WhereNot: Enabled: true RSpec/Focused: @@ -1323,37 +1374,3 @@ Style/YodaCondition: Style/ZeroLengthPredicate: Enabled: true -Rails/ActiveRecordCallbacksOrder: - Enabled: false -Rails/AfterCommitOverride: - Enabled: true -Rails/AttributeDefaultBlockValue: - Enabled: true -Rails/FindById: - Enabled: true -Rails/Inquiry: - Enabled: true -Rails/MailerName: - Enabled: true -Rails/MatchRoute: - Enabled: true -Rails/NegateInclude: - Enabled: false -Rails/Pluck: - Enabled: false -Rails/PluckInWhere: - Enabled: true -Rails/RenderInline: - Enabled: true -Rails/RenderPlainText: - Enabled: true -Rails/ShortI18n: - Enabled: true -Rails/SquishedSQLHeredocs: - Enabled: true -Rails/WhereEquals: - Enabled: true -Rails/WhereExists: - Enabled: true -Rails/WhereNot: - Enabled: true