Skip to content

Commit

Permalink
Configure rubocop to silence remaining offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia committed Oct 31, 2023
1 parent d3f6bdf commit 282715c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
inherit_from: .rubocop_todo.yml

AllCops:
Exclude:
- vendor/**/*
NewCops: enable

Metrics/BlockLength:
Exclude:
- fastlane/Fastfile
- fastlane/lanes/*.rb

Metrics/MethodLength:
Max: 30

Layout/LineLength:
Max: 180

Lint/ConstantDefinitionInBlock:
Exclude:
- fastlane/lanes/localization.rb
33 changes: 33 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-09-19 14:46:03 UTC using RuboCop version 1.56.3.
# 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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'fastlane/lanes/release.rb'

# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 32

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 12

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 13

# Offense count: 1
Style/MultilineBlockChain:
Exclude:
- 'fastlane/lanes/release.rb'

0 comments on commit 282715c

Please sign in to comment.