rf-stylez 0.7.1 → 0.8.0.pre2

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: 481568065b286d156e08fffac020944ce8a4e67e9c5642f6ee7ca78f5268512c
4
- data.tar.gz: d22edd3c56da7ef95e207c995e9098332e132ae471e1ab0fecd6eef09cec9c3b
3
+ metadata.gz: e446e56250c76ea8099fbbd93fe70ed79560001df84ea0d2d72894cc23253491
4
+ data.tar.gz: a2baa3be2a509bae8057ca5e7a78a4ecab91aeee91684b0d827b4db0617c3ea5
5
5
  SHA512:
6
- metadata.gz: ec80a65b077ab1b5d1181e81d3971c08c1ce2bbef6247e231a2d75741e3b2da11b115bd857b28a9016d030807f13bec31c3b2af45e7903cbbb55a1d87be33e86
7
- data.tar.gz: 162be4e63b557fadc31574d646e77e4b78f01401eab8f0bb62f8492153646963eaf6022b4715baef25212675313fcaa25569206ef2ade9d09c92d46cdffbc7c9
6
+ metadata.gz: 698a53bda19da990a9943a41cd83def139b1d3320a760d7ac408aa75161985d4dfcb34796b9188826d3e29bacb335110a557c07e3e92995b8fc8c282edd2e892
7
+ data.tar.gz: 189b29ca4909b9036132f4e448abd593f35503690d34619e05df4490a94db33bfafe54fc445555ba6ec3043faabd563d8b4cdcf5609d42c7ba845dea0293c108
@@ -3,7 +3,7 @@ version: 2
3
3
  jobs:
4
4
  style_check:
5
5
  docker:
6
- - image: gcr.io/rf-public-images/circlemator:latest
6
+ - image: gcr.io/rf-public-images/circlemator:ef2e92d1d5af84e9a4a7a6150a736ae16693ed27
7
7
  steps:
8
8
  - checkout
9
9
  - run:
@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  test:
14
14
  docker:
15
- - image: circleci/ruby:2.5.1
15
+ - image: circleci/ruby:2.7.1
16
16
  steps:
17
17
  - checkout
18
18
  - restore_cache:
@@ -44,7 +44,7 @@ jobs:
44
44
 
45
45
  push_to_rubygems:
46
46
  docker:
47
- - image: circleci/ruby:2.5.1
47
+ - image: circleci/ruby:2.7.1
48
48
  steps:
49
49
  - checkout
50
50
  - run:
@@ -3,7 +3,6 @@
3
3
  require 'rf/stylez/version'
4
4
  require 'rf/stylez/update_check'
5
5
  require 'rubocop'
6
- require 'rubocop/cop/lint/no_env'
7
6
  require 'rubocop/cop/lint/no_json'
8
7
  require 'rubocop/cop/lint/no_http_party'
9
8
  require 'rubocop/cop/lint/obscure'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rf
4
4
  module Stylez
5
- VERSION = '0.7.1'
5
+ VERSION = '0.8.0.pre2'
6
6
  end
7
7
  end
@@ -19,12 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = ['rf-stylez']
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_runtime_dependency 'rubocop', '>= 0.59', '< 0.81'
23
- spec.add_runtime_dependency 'rubocop-rails', '~> 2.5.0'
24
- spec.add_runtime_dependency 'rubocop-rspec', '~> 1.39.0'
22
+ spec.add_runtime_dependency 'rubocop', '>= 0.81', '< 0.91'
23
+ spec.add_runtime_dependency 'rubocop-rails', '>= 2.5', '< 2.9'
24
+ spec.add_runtime_dependency 'rubocop-rspec', '>= 1.39', '< 1.44'
25
+ spec.add_runtime_dependency 'get_env', '~> 0.2.0'
25
26
  spec.add_runtime_dependency 'semantic_versioning', '~> 0.2'
26
27
 
27
- spec.add_development_dependency 'bundler', '~> 1.10'
28
+ spec.add_development_dependency 'bundler', '~> 2.1'
28
29
  spec.add_development_dependency 'rake', '~> 13.0'
29
30
  spec.add_development_dependency 'rspec', '>= 3.4'
30
31
  spec.add_development_dependency 'byebug'
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.7
3
3
  DisabledByDefault: true
4
4
  Include:
5
5
  - '**/*.rb'
@@ -19,6 +19,7 @@ inherit_from:
19
19
  require:
20
20
  - rf/stylez
21
21
  - rubocop-rspec
22
+ - get_env/cops
22
23
 
23
24
  # Custom cops
24
25
  Lint/NoENV:
@@ -77,6 +78,8 @@ Layout/InitialIndentation:
77
78
  Enabled: true
78
79
  Layout/IndentationConsistency:
79
80
  Enabled: true
81
+ Layout/IndentationStyle:
82
+ Enabled: true
80
83
  Layout/FirstHashElementIndentation:
81
84
  Enabled: true
82
85
  Layout/LeadingCommentSpace:
@@ -97,8 +100,6 @@ Layout/SpaceBeforeComma:
97
100
  Enabled: true
98
101
  Layout/SpaceInsideParens:
99
102
  Enabled: true
100
- Layout/Tab:
101
- Enabled: true
102
103
 
103
104
  Naming/MethodName:
104
105
  Enabled: true
@@ -111,6 +112,8 @@ Naming/ConstantName:
111
112
  Naming/FileName:
112
113
  Enabled: true
113
114
 
115
+ Style/EndBlock:
116
+ Enabled: true
114
117
  Style/SpecialGlobalVars:
115
118
  Enabled: true
116
119
  Style/GlobalVars:
@@ -16,6 +16,10 @@ Lint/AssignmentInCondition:
16
16
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
17
17
  Enabled: true
18
18
 
19
+ Lint/BinaryOperatorWithIdenticalOperands:
20
+ Description: 'This cop checks for places where binary operator has identical operands.'
21
+ Enabled: true
22
+
19
23
  Lint/CircularArgumentReference:
20
24
  Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
21
25
  Enabled: true
@@ -52,10 +56,6 @@ Lint/EmptyInterpolation:
52
56
  Description: 'Checks for empty string interpolation.'
53
57
  Enabled: true
54
58
 
55
- Lint/EndInMethod:
56
- Description: 'END blocks should not be placed inside method definitions.'
57
- Enabled: true
58
-
59
59
  Lint/EnsureReturn:
60
60
  Description: 'Do not use return in an ensure block.'
61
61
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-return-ensure'
@@ -187,10 +187,6 @@ Lint/UselessAssignment:
187
187
  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars'
188
188
  Enabled: true
189
189
 
190
- Lint/UselessComparison:
191
- Description: 'Checks for comparison of something with itself.'
192
- Enabled: true
193
-
194
190
  Lint/UselessElseWithoutRescue:
195
191
  Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
196
192
  Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rf-stylez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emanuel Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,48 +16,74 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.59'
19
+ version: '0.81'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '0.81'
22
+ version: '0.91'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.59'
29
+ version: '0.81'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '0.81'
32
+ version: '0.91'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubocop-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '2.5'
40
+ - - "<"
38
41
  - !ruby/object:Gem::Version
39
- version: 2.5.0
42
+ version: '2.9'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '2.5'
50
+ - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: 2.5.0
52
+ version: '2.9'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rubocop-rspec
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '1.39'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.44'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '1.39'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '1.44'
73
+ - !ruby/object:Gem::Dependency
74
+ name: get_env
49
75
  requirement: !ruby/object:Gem::Requirement
50
76
  requirements:
51
77
  - - "~>"
52
78
  - !ruby/object:Gem::Version
53
- version: 1.39.0
79
+ version: 0.2.0
54
80
  type: :runtime
55
81
  prerelease: false
56
82
  version_requirements: !ruby/object:Gem::Requirement
57
83
  requirements:
58
84
  - - "~>"
59
85
  - !ruby/object:Gem::Version
60
- version: 1.39.0
86
+ version: 0.2.0
61
87
  - !ruby/object:Gem::Dependency
62
88
  name: semantic_versioning
63
89
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +104,14 @@ dependencies:
78
104
  requirements:
79
105
  - - "~>"
80
106
  - !ruby/object:Gem::Version
81
- version: '1.10'
107
+ version: '2.1'
82
108
  type: :development
83
109
  prerelease: false
84
110
  version_requirements: !ruby/object:Gem::Requirement
85
111
  requirements:
86
112
  - - "~>"
87
113
  - !ruby/object:Gem::Version
88
- version: '1.10'
114
+ version: '2.1'
89
115
  - !ruby/object:Gem::Dependency
90
116
  name: rake
91
117
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +191,6 @@ files:
165
191
  - lib/rf/stylez/update_check.rb
166
192
  - lib/rf/stylez/version.rb
167
193
  - lib/rubocop/cop/lint/no_bang_state_machine_events.rb
168
- - lib/rubocop/cop/lint/no_env.rb
169
194
  - lib/rubocop/cop/lint/no_grape_api.rb
170
195
  - lib/rubocop/cop/lint/no_http_party.rb
171
196
  - lib/rubocop/cop/lint/no_json.rb
@@ -191,12 +216,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
216
  version: '0'
192
217
  required_rubygems_version: !ruby/object:Gem::Requirement
193
218
  requirements:
194
- - - ">="
219
+ - - ">"
195
220
  - !ruby/object:Gem::Version
196
- version: '0'
221
+ version: 1.3.1
197
222
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.7.7
223
+ rubygems_version: 3.1.2
200
224
  signing_key:
201
225
  specification_version: 4
202
226
  summary: Styles for Rainforest code
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- module Lint
6
- # @example
7
- # # bad
8
- # ENV[]
9
- #
10
- # # bad
11
- # ENV.fetch(..)
12
- #
13
- # # good
14
- # GetEnv[]
15
- #
16
- # # good
17
- # GetEnv.fetch(...)
18
- class NoENV < Cop
19
- MSG = 'Use `GetEnv` instead of `ENV`.'.freeze
20
-
21
- def_node_matcher :is_ENV?, '(const nil? :ENV)'
22
-
23
- def on_const(node)
24
- return unless is_ENV?(node)
25
- add_offense(node)
26
- end
27
- end
28
- end
29
- end
30
- end