Skip to content

Commit

Permalink
Merge pull request #89 from faberNovel/feature/dependency_updates
Browse files Browse the repository at this point in the history
Feature/dependency updates
  • Loading branch information
alexandre-pod authored Dec 12, 2023
2 parents 699fe8d + 5d7bf65 commit efb3d82
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 96 deletions.
80 changes: 33 additions & 47 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-02-02 13:39:01 UTC using RuboCop version 1.43.0.
# on 2023-12-12 14:55:05 UTC using RuboCop version 1.58.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
# versions of RuboCop, may require this file to be generated again.

# Offense count: 4
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'ad_localize.gemspec'

# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'ad_localize.gemspec'

# Offense count: 86
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterMagicComment:
Enabled: false

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'lib/ad_localize/mappers/locale_wording_to_hash.rb'

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Expand All @@ -41,30 +27,30 @@ Lint/UnusedMethodArgument:
- 'lib/ad_localize/interactors/base_generate_files.rb'
- 'lib/ad_localize/serializers/templated_serializer.rb'

# Offense count: 6
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
# Offense count: 7
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 35
Max: 31

# Offense count: 2
# Offense count: 4
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 139

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 11
Max: 9

# Offense count: 11
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
# Offense count: 13
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 40
Max: 27

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 11
Max: 9

# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
Expand Down Expand Up @@ -101,7 +87,7 @@ Naming/VariableName:

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
Expand Down Expand Up @@ -143,7 +129,7 @@ Style/FormatString:

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
EnforcedStyle: template
Expand All @@ -161,13 +147,16 @@ Style/GuardClause:
Exclude:
- 'lib/ad_localize/repositories/drive_repository.rb'

# Offense count: 57
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
Style/HashSyntax:
Enabled: false
Exclude:
- 'Rakefile'
- 'lib/ad_localize/option_handler.rb'
- 'test/interactors/process_export_request_test.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Expand Down Expand Up @@ -195,14 +184,13 @@ Style/NegatedIf:
Exclude:
- 'lib/ad_localize/interactors/generate_strings.rb'

# Offense count: 3
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Exclude:
- 'spec/**/*'
- 'test/interactors/process_export_request_test.rb'
- 'test/repositories/drive_repository_test.rb'

# Offense count: 1
Expand All @@ -218,13 +206,13 @@ Style/RedundantAssignment:
Exclude:
- 'lib/ad_localize/parsers/csv_parser.rb'

# Offense count: 1
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
Exclude:
- 'lib/ad_localize/repositories/drive_repository.rb'

# Offense count: 18
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFreeze:
Exclude:
Expand All @@ -234,7 +222,6 @@ Style/RedundantFreeze:
- 'lib/ad_localize/interactors/generate_strings.rb'
- 'lib/ad_localize/interactors/merge_wordings.rb'
- 'lib/ad_localize/parsers/csv_parser.rb'
- 'lib/ad_localize/parsers/key_parser.rb'
- 'lib/ad_localize/serializers/info_plist_serializer.rb'
- 'lib/ad_localize/serializers/localizable_strings_serializer.rb'
- 'lib/ad_localize/serializers/localizable_stringsdict_serializer.rb'
Expand All @@ -245,6 +232,12 @@ Style/RedundantPercentQ:
Exclude:
- 'ad_localize.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpArgument:
Exclude:
- 'lib/ad_localize/sanitizers/ios_to_android_sanitizer.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Expand Down Expand Up @@ -290,30 +283,23 @@ Style/StringConcatenation:
- 'lib/ad_localize/serializers/strings_serializer.rb'
- 'lib/ad_localize/serializers/templated_serializer.rb'

# Offense count: 85
# Offense count: 142
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false

# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/SymbolLiteral:
Exclude:
- 'lib/ad_localize/mappers/options_to_export_request.rb'
- 'test/option_handler_test.rb'

# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ZeroLengthPredicate:
Exclude:
- 'lib/ad_localize/mappers/locale_wording_to_hash.rb'
- 'test/repositories/drive_repository_test.rb'

# Offense count: 10
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 153
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- new option `--skip-value-stripping` that disable the leading and trailing whitespaces removal on wording values. The value stripping was introduced with version 6.0.0.

### Changed

- Updated dependencies

## 6.1.0
### Added

Expand Down
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ source "https://rubygems.org"

# Specify your gem's dependencies in ad_localize.gemspec
gemspec

gem 'bundler', '>= 1.12.0', '< 3.0.0'
gem 'debug', ">= 1.0.0", '< 2.0'
gem 'diffy', '~> 3.3'
gem 'minitest', '~> 5.11'
gem 'minitest-reporters', '~> 1.3'
gem 'rake', '>= 12.3.0', '< 14.0.0'
gem 'rubocop', "~> 1.0"
Loading

0 comments on commit efb3d82

Please sign in to comment.