mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-19 13:05:46 +00:00
Fix auto-gen formatting + RuboCop AutoFix Style/ModuleFunction
This commit is contained in:
parent
ba45a7dbf9
commit
b338298711
2 changed files with 22 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config`
|
||||
# on 2025-06-30 11:36:15 UTC using RuboCop version 1.77.0.
|
||||
# on 2025-07-10 10:25:51 UTC using RuboCop version 1.77.0.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
|
||||
Gemspec/DevelopmentDependencies:
|
||||
Exclude:
|
||||
- "grape_logging.gemspec"
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
|
|
@ -20,7 +20,7 @@ Gemspec/DevelopmentDependencies:
|
|||
# Include: **/*.gemspec
|
||||
Gemspec/RequireMFA:
|
||||
Exclude:
|
||||
- "grape_logging.gemspec"
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: Severity, Include.
|
||||
|
|
@ -28,6 +28,7 @@ Gemspec/RequireMFA:
|
|||
Gemspec/RequiredRubyVersion:
|
||||
Exclude:
|
||||
- 'grape_logging.gemspec'
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches, IgnoreDuplicateElseBranch.
|
||||
Lint/DuplicateBranch:
|
||||
|
|
@ -38,7 +39,7 @@ Lint/DuplicateBranch:
|
|||
# Configuration parameters: AllowedParentClasses.
|
||||
Lint/MissingSuper:
|
||||
Exclude:
|
||||
- "lib/grape_logging/loggers/filter_parameters.rb"
|
||||
- 'lib/grape_logging/loggers/filter_parameters.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
||||
|
|
@ -72,16 +73,16 @@ Metrics/PerceivedComplexity:
|
|||
# AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
||||
Naming/VariableNumber:
|
||||
Exclude:
|
||||
- "spec/lib/grape_logging/formatters/rails_spec.rb"
|
||||
- 'spec/lib/grape_logging/formatters/rails_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: MinBranchesCount.
|
||||
Style/CaseLikeIf:
|
||||
Exclude:
|
||||
- "lib/grape_logging/formatters/default.rb"
|
||||
- "lib/grape_logging/formatters/logstash.rb"
|
||||
- "lib/grape_logging/formatters/rails.rb"
|
||||
- 'lib/grape_logging/formatters/default.rb'
|
||||
- 'lib/grape_logging/formatters/logstash.rb'
|
||||
- 'lib/grape_logging/formatters/rails.rb'
|
||||
|
||||
# Offense count: 17
|
||||
# Configuration parameters: AllowedConstants.
|
||||
|
|
@ -99,7 +100,7 @@ Style/FrozenStringLiteralComment:
|
|||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Style/GlobalStdStream:
|
||||
Exclude:
|
||||
- "lib/grape_logging/reporters/logger_reporter.rb"
|
||||
- 'lib/grape_logging/reporters/logger_reporter.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
|
|
@ -109,22 +110,13 @@ Style/MutableConstant:
|
|||
Exclude:
|
||||
- 'lib/grape_logging/version.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
||||
# SupportedStyles: predicate, comparison
|
||||
Style/NumericPredicate:
|
||||
Exclude:
|
||||
- "spec/**/*"
|
||||
- "lib/grape_logging/formatters/rails.rb"
|
||||
|
||||
# Offense count: 10
|
||||
Style/OpenStructUse:
|
||||
Exclude:
|
||||
- "spec/lib/grape_logging/loggers/client_env_spec.rb"
|
||||
- "spec/lib/grape_logging/loggers/filter_parameters_spec.rb"
|
||||
- "spec/lib/grape_logging/loggers/request_headers_spec.rb"
|
||||
- "spec/lib/grape_logging/loggers/response_spec.rb"
|
||||
- 'spec/lib/grape_logging/loggers/client_env_spec.rb'
|
||||
- 'spec/lib/grape_logging/loggers/filter_parameters_spec.rb'
|
||||
- 'spec/lib/grape_logging/loggers/request_headers_spec.rb'
|
||||
- 'spec/lib/grape_logging/loggers/response_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
|
|
@ -138,7 +130,7 @@ Style/SafeNavigation:
|
|||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
Style/SlicingWithRange:
|
||||
Exclude:
|
||||
- "lib/grape_logging/loggers/request_headers.rb"
|
||||
- 'lib/grape_logging/loggers/request_headers.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
|
|
@ -146,16 +138,16 @@ Style/SlicingWithRange:
|
|||
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
||||
Style/SpecialGlobalVars:
|
||||
Exclude:
|
||||
- "spec/spec_helper.rb"
|
||||
- 'spec/spec_helper.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: Mode.
|
||||
Style/StringConcatenation:
|
||||
Exclude:
|
||||
- "lib/grape_logging/formatters/json.rb"
|
||||
- "lib/grape_logging/formatters/lograge.rb"
|
||||
- "lib/grape_logging/formatters/logstash.rb"
|
||||
- 'lib/grape_logging/formatters/json.rb'
|
||||
- 'lib/grape_logging/formatters/lograge.rb'
|
||||
- 'lib/grape_logging/formatters/logstash.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
|
|
@ -163,11 +155,11 @@ Style/StringConcatenation:
|
|||
# AllowedMethods: define_method
|
||||
Style/SymbolProc:
|
||||
Exclude:
|
||||
- "lib/grape_logging/util/parameter_filter.rb"
|
||||
- 'lib/grape_logging/util/parameter_filter.rb'
|
||||
|
||||
# Offense count: 11
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
||||
# URISchemes: http, https
|
||||
Layout/LineLength:
|
||||
Max: 203
|
||||
Max: 203
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module GrapeLogging
|
||||
module Timings
|
||||
extend self
|
||||
module_function
|
||||
|
||||
def db_runtime=(value)
|
||||
Thread.current[:grape_db_runtime] = value
|
||||
|
|
|
|||
Loading…
Reference in a new issue