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 +4 -4
- data/Gemfile.lock +5 -2
- data/config/default.yml +1 -1
- data/lib/rubocop/cop/treatwell_cops.rb +1 -0
- data/lib/rubocop/treatwell/version.rb +1 -1
- data/rubocop-treatwell-style.yml +7 -14
- data/rubocop-treatwell.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5c2880cd3a1fd35ee9d339c0d3b94a487c8914fd0020cfce5367e4fd6af3b7
|
4
|
+
data.tar.gz: 3d8ed98e4a8ad5ce54b74d8db143a879e6ea7e17d439fa51b36e7512dd05bb59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
data/rubocop-treatwell-style.yml
CHANGED
@@ -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
|
|
data/rubocop-treatwell.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
123
|
+
version: 2.7.0
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
126
|
- - ">="
|