rubocop-treatwell 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78888a7263fa9709827413481636d1469552762a7e047c143e36394a241b74df
4
- data.tar.gz: b519e23fd656fbd329cfba1757912e9dfd31c3a9b401114cbaa75699be674d80
3
+ metadata.gz: bf5c2880cd3a1fd35ee9d339c0d3b94a487c8914fd0020cfce5367e4fd6af3b7
4
+ data.tar.gz: 3d8ed98e4a8ad5ce54b74d8db143a879e6ea7e17d439fa51b36e7512dd05bb59
5
5
  SHA512:
6
- metadata.gz: 8514468278c6f353ec85708a542041b205e0a2306a3f2f10dc0cee5db32db5613dfae6170bb3f10d86f399bd834808081c5cc570e7dbdcd1f2435f9a56237dfe
7
- data.tar.gz: 2998850409b9288554145b7b5c69e50ed32c7f50c2adaf4c0600ceaac621868807181ae4cf0c5da9d5a0a085b572a44d4af96392f9c4ef4412df2112012e806f
6
+ metadata.gz: 849a4aabd2a76445d069c275d9aeeae1bb49255ec53a7e353369e6342f809b171198280810d4f4617cc7aec164671261251d7e8e2283ae9a5237d13ba25b8c27
7
+ data.tar.gz: fef30eafcf9a65f3d0ac8a5f622ebab1cfaf590aeff7a51478b76734d46caed72b48306e3d62420d6b97c7528a15a5406f4184dcf4b0e9f152a6c279dd5c6c6c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-treatwell (0.1.1)
4
+ rubocop-treatwell (0.2.0)
5
5
  rubocop (~> 1.50.0)
6
6
  rubocop-checkstyle_formatter (~> 0.6.0)
7
7
  rubocop-performance (~> 1.17.0)
@@ -79,7 +79,10 @@ GEM
79
79
  unicode-display_width (2.4.2)
80
80
 
81
81
  PLATFORMS
82
- arm64-darwin-22
82
+ arm64-darwin
83
+ ruby
84
+ x86_64-darwin
85
+ x86_64-linux
83
86
 
84
87
  DEPENDENCIES
85
88
  rake (~> 13.0)
data/config/default.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  Rails/UnscopedOverNonModelConstant:
2
2
  Description: 'Identifies calls to `unscoped` over non model constants.'
3
- Enabled: pending
3
+ Enabled: true
4
4
  VersionAdded: '0.1.0'
5
5
  AllowedMethods: []
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require_relative 'rails/unscoped_over_non_model_constant'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Treatwell
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
@@ -24,20 +24,6 @@ require:
24
24
  - rubocop-rails
25
25
  - rubocop-treatwell
26
26
 
27
- AllCops:
28
- NewCops: enable
29
- Exclude:
30
- - '**/bin/*'
31
- - '**/db/schema.rb'
32
-
33
- # Ignore symlinks
34
- <% Dir['../**/*'].each do |dir| %>
35
- <% next unless File.symlink?(dir) %>
36
- - <%= File.directory?(dir) ? "#{dir}/**/*" : dir %>
37
- <% end %>
38
- SuggestExtensions:
39
- rubocop-rake: false
40
-
41
27
  Bundler/OrderedGems:
42
28
  Exclude:
43
29
  - '**/Gemfile'
@@ -111,6 +97,13 @@ Rails/SkipsModelValidations:
111
97
  - '**/db/main/migrate/**/*'
112
98
  - '**/spec/**/*'
113
99
 
100
+ Rails/UnscopedOverNonModelConstant:
101
+ Enabled: true
102
+ AllowedMethods:
103
+ - class
104
+ - constantize
105
+ - klass
106
+
114
107
  RSpec/ExampleLength:
115
108
  Max: 20
116
109
 
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Shared style guide for Treatwell Ruby projects"
12
12
  spec.description = "Treatwell::RubyStyle provides a set of shared style guide used across all Treatwell Ruby projects"
13
13
  spec.homepage = "https://github.com/treatwell/ruby-style"
14
- spec.required_ruby_version = ">= 2.6.0"
14
+ spec.required_ruby_version = ">= 2.7.0"
15
15
 
16
16
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-treatwell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Treatwell Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
122
122
  - !ruby/object:Gem::Version
123
- version: 2.6.0
123
+ version: 2.7.0
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="