rubocop-config-captive 2.0.0.pre.alpha → 2.0.0.pre.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89d7f60a4c0f6bf82d38c7edb07550329610e4582994eab5fb226f24f89c8151
4
- data.tar.gz: 05efb5230791a782bf022fba4b8b8846b2afda8d9a4ffb59e6762e182ff54ef7
3
+ metadata.gz: 2c99695fc1dc46fea45cd66954df04ddd6e2ea13f28f53a933f961a026bf95df
4
+ data.tar.gz: da9335228acf9cb78300f709a1b57eb69466cb5ded705e29e8c21be2abee14c3
5
5
  SHA512:
6
- metadata.gz: '08acab7ddee1ce4de738918def23ef8dd9604f6983f2cda849ee3fe61f8e880a2d10d29a2eeff871f5679fabdacc175b3cd31757af81d5093bc0b42a5e866fc6'
7
- data.tar.gz: 337bd6708b8a78899344d7d768b691b3b3d8748ceb48933a611cf7df0f5179091acacd97db5d66a7b5b6304f1bffb3f5ff88e310bc7b6c3d16bf38271dc4e03d
6
+ metadata.gz: cff9f4fa93b83242395217b1ceede3900fe0c6f961a6b4a7ee9b25da58039d5802674517b384d7c52975ab9c3b53b6b72da20d00228ed66e27f2aced86e04213
7
+ data.tar.gz: 90243990c19ed762be59170645fcc8b32b7714cac8eef762d2c3093faf46439d3df238768d114edc57ab864e92afa39fcb5d5c5e425f2acdc84382c902b9eeb9
@@ -1,6 +1,5 @@
1
1
  ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
- require:
3
- - rubocop-capybara
2
+ plugins: rubocop-capybara
4
3
 
5
4
  Capybara/CurrentPathExpectation:
6
5
  Description: Checks that no expectations are set on Capybara's `current_path`.
@@ -48,7 +48,7 @@ Naming/MethodName:
48
48
  - snake_case
49
49
  - camelCase
50
50
 
51
- Naming/PredicateName:
51
+ Naming/PredicatePrefix:
52
52
  Description: Check the names of predicate methods.
53
53
  StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bool-methods-qmark
54
54
  Enabled: false
@@ -1,2 +1 @@
1
- require:
2
- - rubocop-capybara
1
+ plugins: rubocop-capybara
@@ -1,2 +1 @@
1
- require:
2
- - rubocop-factory_bot
1
+ plugins: rubocop-factory_bot
@@ -1,2 +1,2 @@
1
- require:
2
- - rubocop-rails-omakase
1
+ inherit_gem:
2
+ rubocop-rails-omakase: rubocop.yml
@@ -1,2 +1 @@
1
- require:
2
- - rubocop-rake
1
+ plugins: rubocop-rake
@@ -11,7 +11,7 @@ module RuboCop
11
11
  path = CONFIG_DEFAULT.to_s
12
12
  hash = ConfigLoader.load_file(path).to_hash
13
13
  config = Config.new(hash, path)
14
- puts "configuration from #{path}" if ConfigLoader.debug?
14
+ Rails.logger.debug "configuration from #{path}" if ConfigLoader.debug?
15
15
  config = ConfigLoader.merge_with_default(config, path)
16
16
  ConfigLoader.instance_variable_set(:@default_configuration, config)
17
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Captive
5
- VERSION = "2.0.0-alpha"
5
+ VERSION = "2.0.0-alpha.1"
6
6
  end
7
7
  end
@@ -31,7 +31,7 @@ module RuboCop
31
31
  MSG = "Avoid using ActiveRecord::Migration methods in `up` and `down` methods. \
32
32
  Use `change` instead."
33
33
 
34
- BLACKLISTED_METHODS = %i(
34
+ BLACKLISTED_METHODS = %i[
35
35
  add_column
36
36
  add_foreign_key
37
37
  add_index
@@ -50,14 +50,14 @@ module RuboCop
50
50
  rename_column
51
51
  rename_index
52
52
  rename_table
53
- ).freeze
53
+ ].freeze
54
54
 
55
55
  def_node_search :migration_method?, <<~PATTERN
56
56
  (send nil? {#{BLACKLISTED_METHODS.map(&:inspect).join(" ")}} ...)
57
57
  PATTERN
58
58
 
59
59
  def on_def(node)
60
- return unless %i(up down).include?(node.method_name)
60
+ return unless %i[up down].include?(node.method_name)
61
61
  return unless migration_method?(node)
62
62
 
63
63
  add_offense(node, message: MSG)
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.version = RuboCop::Captive::VERSION
9
9
  gem.summary = "Shared rubocop configurations"
10
10
  gem.description = "Shared rubocop configuration for Captive projects"
11
- gem.authors = ["Captive", "Julien Polo", "Clément Prod'homme"]
12
- gem.email = ["julien.polo@captive.fr"]
11
+ gem.authors = [ "Captive", "Julien Polo", "Clément Prod'homme" ]
12
+ gem.email = [ "julien.polo@captive.fr" ]
13
13
  gem.homepage = "https://github.com/Captive-Studio/rubocop-config"
14
14
  gem.license = "MIT"
15
15
  gem.required_ruby_version = ">= 2.6"
@@ -21,6 +21,8 @@ Gem::Specification.new do |gem|
21
21
  "Gemfile",
22
22
  ]
23
23
 
24
+ # Pour mettre à jour les dépendances, vous pouvez utiliser le script :
25
+ # ruby script/update_dependencies.rb
24
26
  gem.add_dependency("rubocop", "~> 1.77.0")
25
27
  gem.add_dependency("rubocop-performance", "~> 1.25.0")
26
28
  gem.add_dependency("rubocop-rake", "~> 0.7.1")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-config-captive
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.alpha
4
+ version: 2.0.0.pre.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Captive