Skip to content

Commit

Permalink
Rubocop fixes and configuration update (#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia authored Nov 27, 2023
1 parent e553ad0 commit 21053a2
Show file tree
Hide file tree
Showing 11 changed files with 474 additions and 397 deletions.
11 changes: 11 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inherit_from: .rubocop_todo.yml

AllCops:
Exclude:
- vendor/**/*
Expand All @@ -7,15 +9,24 @@ Layout/LineLength:
Max: 180
Exclude:
- fastlane/Fastfile
- scripts/themes/download_themes.rb
- scripts/themes/generate_themes.rb
- scripts/themes/generate_kotlin.rb

Metrics/BlockLength:
Exclude:
- fastlane/Fastfile
- scripts/themes/download_themes.rb
- scripts/themes/generate_themes.rb
- scripts/themes/generate_kotlin.rb

Metrics/MethodLength:
Max: 30
Exclude:
- fastlane/Fastfile
- scripts/themes/download_themes.rb
- scripts/themes/generate_themes.rb
- scripts/themes/generate_kotlin.rb

Style/HashSyntax:
EnforcedShorthandSyntax: never
37 changes: 37 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-09-20 10:40:52 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: 3
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 75

# Offense count: 1
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4

# Offense count: 2
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 26

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

# Offense count: 3
# Configuration parameters: AllowedConstants.
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'scripts/themes/download_themes.rb'
- 'scripts/themes/generate_kotlin.rb'
- 'scripts/themes/generate_kotlin_compose.rb'
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GEM
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.843.0)
aws-sdk-core (3.185.1)
aws-sdk-core (3.185.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
Expand Down
Loading

0 comments on commit 21053a2

Please sign in to comment.