umarell 1.2.0 → 1.3.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: ef5048068ece7c6751a487e6ac24aea679ff95887041ecb5f216f78d3462ac2e
4
- data.tar.gz: b071681a9849c7619459c2966e2d6373950eb38fe6e8d602292f8bfd7d0a0cbb
3
+ metadata.gz: 02c4a1d31b2468844f1020aac5056eb672b9fcbf157e9a45d4b3dd02e68f56b1
4
+ data.tar.gz: 777ea7314af257174ecbd72eefb09ea6db066008be331ed1483e082ffc5fd8a4
5
5
  SHA512:
6
- metadata.gz: 1f98de58f255d491a759296b0e7e58365c477e2323027fbcdb7959e526296ffb708ab384a18fdab16489bdcf74311d860f1153b5294e8ce518c10e8c81ba3cbe
7
- data.tar.gz: 49bf2435d7b4ff029d1b424e2359c13a89e6fac5f463273207ca8806a79d800f0e23485a2c0d57acf3c6403c36c0f467d4bb3422825ba655804851e2104351da
6
+ metadata.gz: c9b17be527c2f742cc32a4b4fc8db25a9574b6983047c69bc58623f84b07cbac7a9e8fbba7c267526f6e2be8ba3510f7b55986a3fe9c46d0ba19f0f7429ac1fb
7
+ data.tar.gz: 8bc7e99a7acaa2173bc90b20d802ddabf523fbb66a73399b38fb819b4319d0c37a9da4a6084392719c3d88476606ff84e1cbda9c421fb095ef6e9a2fdfa28159
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Umarell is an all in one Ruby static code analyzer.
4
4
  Umarell gives you (*unwanted?*) advice on your code just like an [italian old man watching a construction site](https://en.wikipedia.org/wiki/Umarell).
5
+
5
6
  ![Umarell](https://raw.githubusercontent.com/nebulab/umarell/master/assets/umarell.jpg?raw=true "Umarell")
6
7
 
7
8
  ## Installation
@@ -31,7 +32,9 @@ $ umarell /path/to/ruby-application
31
32
  $ umarell -h
32
33
 
33
34
  usage: umarell [options] [target]
34
- -a, --autofix Autofix violations (if supported)
35
+ -a, --autofix Autofix violations (if supported)
36
+ -m, --modified Run on modified files
37
+ -v, --version Show version
35
38
  ```
36
39
 
37
40
  ## Requirements
@@ -44,6 +47,7 @@ Umarell runs the following tools:
44
47
  - [bundler-audit](https://github.com/rubysec/bundler-audit)
45
48
  - [brakeman](https://github.com/presidentbeef/brakeman)
46
49
  - [rubocop](https://github.com/rubocop-hq/rubocop)
50
+ - [erb-lint](https://github.com/Shopify/erb-lint)
47
51
  - [reek](https://github.com/troessner/reek)
48
52
  - [rails_best_practices](https://github.com/flyerhzm/rails_best_practices)
49
53
  - [fasterer](https://github.com/DamirSvrtan/fasterer)
Binary file
@@ -14,7 +14,7 @@ module Umarell
14
14
  def initialize
15
15
  @autofix = false
16
16
  @modified = false
17
- @target = nil
17
+ @target = './'
18
18
  end
19
19
 
20
20
  # Parse command line arguments
data/lib/umarell/cli.rb CHANGED
@@ -6,14 +6,15 @@ require_relative 'command'
6
6
  module Umarell
7
7
  TOOLS = {
8
8
  'bundler-audit' => ['check', '--update'],
9
- 'brakeman' => ['-w2', '-q'],
9
+ 'brakeman' => ['-w2', '-q', '--no-pager', '--no-summary'],
10
10
  'rubocop' => [],
11
+ 'erblint' => [],
11
12
  'reek' => [],
12
13
  'rails_best_practices': [],
13
14
  'fasterer' => []
14
15
  }.freeze
15
16
 
16
- AUTOFIX_SUPPORT = ['rubocop'].freeze
17
+ AUTOFIX_SUPPORT = %w[rubocop erblint].freeze
17
18
 
18
19
  # The class responsible of handling command line logic
19
20
  class CLI
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Umarell
4
4
  module Version
5
- STRING = '1.2.0'
5
+ STRING = '1.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umarell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippo Liverani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brakeman
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4'
19
+ version: '4.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4'
26
+ version: '4.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler-audit
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "<"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: erb_lint
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "<"
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: fasterer
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -58,28 +72,28 @@ dependencies:
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '1'
75
+ version: '1.19'
62
76
  type: :runtime
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '1'
82
+ version: '1.19'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: reek
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '5'
89
+ version: '5.5'
76
90
  type: :runtime
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '5'
96
+ version: '5.5'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rubocop
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -100,28 +114,28 @@ dependencies:
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '1'
117
+ version: '1.5'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '1'
124
+ version: '1.5'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop-rails
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '2'
131
+ version: '2.4'
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '2'
138
+ version: '2.4'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubocop-rake
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -142,56 +156,56 @@ dependencies:
142
156
  requirements:
143
157
  - - "~>"
144
158
  - !ruby/object:Gem::Version
145
- version: '1'
159
+ version: '1.37'
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
- version: '1'
166
+ version: '1.37'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: bundler
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: '2'
173
+ version: '2.0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: '2'
180
+ version: '2.0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: rake
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: '13'
187
+ version: '13.0'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: '13'
194
+ version: '13.0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: rspec
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
199
  - - "~>"
186
200
  - !ruby/object:Gem::Version
187
- version: '3'
201
+ version: '3.9'
188
202
  type: :development
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
206
  - - "~>"
193
207
  - !ruby/object:Gem::Version
194
- version: '3'
208
+ version: '3.9'
195
209
  description: All in one Ruby static code analyzer
196
210
  email: hello@nebulab.it
197
211
  executables:
@@ -203,6 +217,7 @@ extra_rdoc_files:
203
217
  files:
204
218
  - LICENSE.txt
205
219
  - README.md
220
+ - assets/umarell.jpg
206
221
  - exe/umarell
207
222
  - lib/umarell.rb
208
223
  - lib/umarell/arguments.rb