linters 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.reek.yml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +14 -0
- data/.travis.yml +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +93 -0
- data/LICENSE.txt +21 -0
- data/README.md +111 -0
- data/Rakefile +7 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/settings.yml +9 -0
- data/lib/linters.rb +19 -0
- data/lib/linters/builder.rb +19 -0
- data/lib/linters/configuration.rb +12 -0
- data/lib/linters/linter.rb +30 -0
- data/lib/linters/linter_settings.rb +68 -0
- data/lib/linters/manager.rb +44 -0
- data/lib/linters/railtie.rb +7 -0
- data/lib/linters/version.rb +3 -0
- data/lib/tasks/linters.rake +19 -0
- data/linters.gemspec +34 -0
- metadata +180 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1f98842c199ffe4239b74cfe191ab410cfd69a656419f5ece6c40e3cb915b081
|
4
|
+
data.tar.gz: bf2bea64cec935d8956b6f76080c32e070d539dab871162fb83968dd8ab049f7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e095916980ae878fd9d7dfca9d9c4bb5dc48ab046fadf8754ffd3500e2b3f0d6dd60236e32b1b7a9819df14522bfdc06fc5e3a582591a79c43e3f3626eedbf69
|
7
|
+
data.tar.gz: d6903ad6dcd855510c6e9fbbd62673182ff43faf7edb802d86ac76941a7d8611e3b2531713e8193ff6bc2e85600bf109847ce265b167ba2bcd8a7cf87412011c
|
data/.gitignore
ADDED
data/.reek.yml
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Layout/SpaceInsideStringInterpolation:
|
2
|
+
EnforcedStyle: space
|
3
|
+
Style/FrozenStringLiteralComment:
|
4
|
+
Enabled: false
|
5
|
+
Metrics/LineLength:
|
6
|
+
Max: 100
|
7
|
+
Layout/EndAlignment:
|
8
|
+
EnforcedStyleAlignWith: start_of_line
|
9
|
+
Style/Documentation:
|
10
|
+
Enabled: false
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Exclude:
|
13
|
+
- 'spec/**/*.rb'
|
14
|
+
- linters.gemspec
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
linters (1.0.0)
|
5
|
+
rake
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.0)
|
11
|
+
axiom-types (0.1.1)
|
12
|
+
descendants_tracker (~> 0.0.4)
|
13
|
+
ice_nine (~> 0.11.0)
|
14
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
15
|
+
bundler-audit (0.6.1)
|
16
|
+
bundler (>= 1.2.0, < 3)
|
17
|
+
thor (~> 0.18)
|
18
|
+
byebug (11.0.1)
|
19
|
+
codeclimate-engine-rb (0.4.1)
|
20
|
+
virtus (~> 1.0)
|
21
|
+
coercible (1.0.0)
|
22
|
+
descendants_tracker (~> 0.0.1)
|
23
|
+
colorize (0.8.1)
|
24
|
+
descendants_tracker (0.0.4)
|
25
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
26
|
+
diff-lcs (1.3)
|
27
|
+
equalizer (0.0.11)
|
28
|
+
fasterer (0.5.1)
|
29
|
+
colorize (~> 0.7)
|
30
|
+
ruby_parser (>= 3.13.0)
|
31
|
+
ice_nine (0.11.2)
|
32
|
+
jaro_winkler (1.5.2)
|
33
|
+
kwalify (0.7.2)
|
34
|
+
parallel (1.17.0)
|
35
|
+
parser (2.6.3.0)
|
36
|
+
ast (~> 2.4.0)
|
37
|
+
psych (3.1.0)
|
38
|
+
rainbow (3.0.0)
|
39
|
+
rake (12.3.0)
|
40
|
+
reek (5.4.0)
|
41
|
+
codeclimate-engine-rb (~> 0.4.0)
|
42
|
+
kwalify (~> 0.7.0)
|
43
|
+
parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
|
44
|
+
psych (~> 3.1.0)
|
45
|
+
rainbow (>= 2.0, < 4.0)
|
46
|
+
rspec (3.8.0)
|
47
|
+
rspec-core (~> 3.8.0)
|
48
|
+
rspec-expectations (~> 3.8.0)
|
49
|
+
rspec-mocks (~> 3.8.0)
|
50
|
+
rspec-core (3.8.0)
|
51
|
+
rspec-support (~> 3.8.0)
|
52
|
+
rspec-expectations (3.8.2)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.8.0)
|
55
|
+
rspec-mocks (3.8.0)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.8.0)
|
58
|
+
rspec-support (3.8.0)
|
59
|
+
rubocop (0.71.0)
|
60
|
+
jaro_winkler (~> 1.5.1)
|
61
|
+
parallel (~> 1.10)
|
62
|
+
parser (>= 2.6)
|
63
|
+
rainbow (>= 2.2.2, < 4.0)
|
64
|
+
ruby-progressbar (~> 1.7)
|
65
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
66
|
+
ruby-progressbar (1.10.1)
|
67
|
+
ruby_parser (3.13.1)
|
68
|
+
sexp_processor (~> 4.9)
|
69
|
+
sexp_processor (4.12.1)
|
70
|
+
thor (0.20.3)
|
71
|
+
thread_safe (0.3.6)
|
72
|
+
unicode-display_width (1.6.0)
|
73
|
+
virtus (1.0.5)
|
74
|
+
axiom-types (~> 0.1)
|
75
|
+
coercible (~> 1.0)
|
76
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
77
|
+
equalizer (~> 0.0, >= 0.0.9)
|
78
|
+
|
79
|
+
PLATFORMS
|
80
|
+
ruby
|
81
|
+
|
82
|
+
DEPENDENCIES
|
83
|
+
bundler (~> 1.16)
|
84
|
+
bundler-audit (~> 0.6.1)
|
85
|
+
byebug (~> 11.0.1)
|
86
|
+
fasterer (~> 0.5.1)
|
87
|
+
linters!
|
88
|
+
reek (~> 5.4.0)
|
89
|
+
rspec (~> 3.0)
|
90
|
+
rubocop (~> 0.71.0)
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
1.17.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 ruby-pianist
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Linters
|
2
|
+
|
3
|
+
Linters is a tool which checks ruby applications using different code's analyzers.
|
4
|
+
Default available analyzers are:
|
5
|
+
* rubocop
|
6
|
+
* reek
|
7
|
+
* brakeman
|
8
|
+
* bundle-audit
|
9
|
+
* fasterer
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
* Using RubyGems:
|
14
|
+
|
15
|
+
```gem install linters```
|
16
|
+
|
17
|
+
Install the linters which you want to use:
|
18
|
+
|
19
|
+
```gem install rubocop reek and etc...```
|
20
|
+
|
21
|
+
* Using Bundler:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
group :development do
|
25
|
+
gem 'linters'
|
26
|
+
end
|
27
|
+
```
|
28
|
+
|
29
|
+
Add linters which you want to use:
|
30
|
+
```ruby
|
31
|
+
group :development do
|
32
|
+
gem 'rubocop'
|
33
|
+
gem 'reek'
|
34
|
+
and etc...
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
And then execute:
|
39
|
+
|
40
|
+
$ bundle
|
41
|
+
|
42
|
+
## Usage
|
43
|
+
|
44
|
+
### Configuration
|
45
|
+
|
46
|
+
Settings with default values:
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
Linters.configure do |config|
|
50
|
+
config.custom_linters = {}
|
51
|
+
config.linters = %i[rubocop reek bundle_audit fasterer]
|
52
|
+
config.settings_path = 'config/settings.yml'
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
Default config/settings.yml:
|
57
|
+
|
58
|
+
```
|
59
|
+
rubocop:
|
60
|
+
warnings_number: 0
|
61
|
+
reek:
|
62
|
+
warnings_number: 0
|
63
|
+
bundle_audit:
|
64
|
+
warnings_number: 0
|
65
|
+
fasterer:
|
66
|
+
warnings_number: 0
|
67
|
+
```
|
68
|
+
|
69
|
+
If settings is absent that warnings_number equal zero.
|
70
|
+
|
71
|
+
### Adding a customer linter
|
72
|
+
```ruby
|
73
|
+
Linters.configure do |config|
|
74
|
+
config.custom_linters = {
|
75
|
+
name: {
|
76
|
+
command: 'execute command',
|
77
|
+
parse_output: 'parse output of the command for getting quantity of warnings'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
```
|
82
|
+
|
83
|
+
### Rewrite an available linter
|
84
|
+
```ruby
|
85
|
+
Linters.configure do |config|
|
86
|
+
config.custom_linters = {
|
87
|
+
rubocop: {
|
88
|
+
command: 'your command',
|
89
|
+
parse_output: 'your parsing output'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Run a check
|
96
|
+
* Run all linters
|
97
|
+
```
|
98
|
+
rake linters:run_all
|
99
|
+
```
|
100
|
+
* Run a specific linter
|
101
|
+
```
|
102
|
+
rake linters:run[name of linter]
|
103
|
+
```
|
104
|
+
|
105
|
+
## Contributing
|
106
|
+
|
107
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby-pianist/linters.
|
108
|
+
|
109
|
+
## License
|
110
|
+
|
111
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'linters'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/config/settings.yml
ADDED
data/lib/linters.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'linters/version'
|
2
|
+
require 'linters/configuration'
|
3
|
+
require 'linters/linter_settings'
|
4
|
+
require 'linters/builder'
|
5
|
+
require 'linters/linter'
|
6
|
+
require 'linters/manager'
|
7
|
+
require 'linters/railtie' if defined?(Rails)
|
8
|
+
|
9
|
+
module Linters
|
10
|
+
class << self
|
11
|
+
def configuration
|
12
|
+
@configuration ||= Linters::Configuration.new
|
13
|
+
end
|
14
|
+
|
15
|
+
def configure
|
16
|
+
yield(configuration)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module Linters
|
4
|
+
class Builder
|
5
|
+
def initialize
|
6
|
+
@config = Linters.configuration
|
7
|
+
end
|
8
|
+
|
9
|
+
def perform
|
10
|
+
result = config.linters.map { |linter| Linter.new(linter) }
|
11
|
+
|
12
|
+
result + config.custom_linters.map { |linter, settings| Linter.new(linter, settings) }
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
|
17
|
+
attr_reader :config
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Linters
|
2
|
+
class Configuration
|
3
|
+
# :reek:Attribute
|
4
|
+
attr_accessor :custom_linters, :linters, :settings_path
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@custom_linters = {}
|
8
|
+
@linters = %i[rubocop reek bundle_audit fasterer]
|
9
|
+
@settings_path = 'config/settings.yml'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Linters
|
2
|
+
class Linter
|
3
|
+
def initialize(name, custom_settings = {})
|
4
|
+
@settings = LinterSettings.new(name, custom_settings)
|
5
|
+
end
|
6
|
+
|
7
|
+
def perform
|
8
|
+
command_output = `#{ settings.command }`
|
9
|
+
|
10
|
+
settings.parse_output.call(command_output)
|
11
|
+
end
|
12
|
+
|
13
|
+
def method_missing(method, *args, &block)
|
14
|
+
if %i[warnings_number name].include?(method)
|
15
|
+
settings.send(method)
|
16
|
+
else
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# :reek:BooleanParameter
|
22
|
+
def respond_to_missing?(method, include_private = false)
|
23
|
+
%i[warnings_number name].include?(method) || super
|
24
|
+
end
|
25
|
+
|
26
|
+
private
|
27
|
+
|
28
|
+
attr_reader :settings
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
module Linters
|
5
|
+
class LinterSettings
|
6
|
+
DEFAULT_SETTINGS = {
|
7
|
+
brakeman: {
|
8
|
+
default_command: 'brakeman --quiet --skip-libs -f json',
|
9
|
+
parse_output: ->(output) { JSON.parse(output)['scan_info']['security_warnings'] }
|
10
|
+
},
|
11
|
+
bundle_audit: {
|
12
|
+
default_command: 'bundle-audit update > /dev/null 2>&1 && bundle-audit',
|
13
|
+
parse_output: ->(output) { output.scan(/Name:/).count }
|
14
|
+
},
|
15
|
+
fasterer: {
|
16
|
+
default_command: 'fasterer',
|
17
|
+
parse_output: lambda { |output, lines_per_warning = 3|
|
18
|
+
output.split("\n").length / lines_per_warning
|
19
|
+
}
|
20
|
+
},
|
21
|
+
reek: {
|
22
|
+
default_command: 'reek --format json *',
|
23
|
+
parse_output: ->(output) { JSON.parse(output).size }
|
24
|
+
},
|
25
|
+
rubocop: {
|
26
|
+
default_command: 'rubocop --format json',
|
27
|
+
parse_output: ->(output) { JSON.parse(output)['summary']['offense_count'] }
|
28
|
+
}
|
29
|
+
}.freeze
|
30
|
+
|
31
|
+
def initialize(name, custom_settings = {})
|
32
|
+
@name = name
|
33
|
+
@settings = DEFAULT_SETTINGS.fetch(name) { {} }
|
34
|
+
@settings = @settings.merge(load_settings(name)).merge(custom_settings)
|
35
|
+
end
|
36
|
+
|
37
|
+
def name
|
38
|
+
settings.fetch(:name) { @name }
|
39
|
+
end
|
40
|
+
|
41
|
+
def warnings_number
|
42
|
+
settings.fetch(:warnings_number) { 0 }
|
43
|
+
end
|
44
|
+
|
45
|
+
def command
|
46
|
+
settings.fetch(:command) { settings.fetch(:default_command) }
|
47
|
+
end
|
48
|
+
|
49
|
+
def parse_output
|
50
|
+
settings[:parse_output]
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
attr_reader :settings
|
56
|
+
|
57
|
+
# :reek:UtilityFunction
|
58
|
+
def load_settings(name)
|
59
|
+
path = Linters.configuration.settings_path
|
60
|
+
|
61
|
+
return {} unless File.exist?(path)
|
62
|
+
|
63
|
+
(YAML.load_file(path)['linters'][name.to_s] || {}).each_with_object({}) do |item, result|
|
64
|
+
result[item[0].to_sym] = item[1]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Linters
|
2
|
+
class Manager
|
3
|
+
def initialize
|
4
|
+
@linters = Builder.new.perform
|
5
|
+
end
|
6
|
+
|
7
|
+
def perform_all
|
8
|
+
linters.each do |linter|
|
9
|
+
linter_name = linter.name
|
10
|
+
|
11
|
+
warnings = linter.perform
|
12
|
+
|
13
|
+
handle_warnings(linter_name, warnings, linter.warnings_number)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def perform_by_name(name)
|
18
|
+
linter = linters.select { |item| item.name == name }[0]
|
19
|
+
|
20
|
+
warnings = linter.perform
|
21
|
+
|
22
|
+
handle_warnings(linter.name, warnings, linter.warnings_number)
|
23
|
+
end
|
24
|
+
|
25
|
+
private
|
26
|
+
|
27
|
+
attr_reader :linters
|
28
|
+
|
29
|
+
def handle_warnings(linter_name, warnings, max_warnings)
|
30
|
+
result = warnings <= max_warnings
|
31
|
+
|
32
|
+
message = if result
|
33
|
+
"#{ linter_name }: quantity of warnings - #{ warnings }/#{ max_warnings }"
|
34
|
+
else
|
35
|
+
"#{ linter_name }: quantity of warnings shouldn't be more "\
|
36
|
+
"#{ max_warnings } (now #{ warnings })"
|
37
|
+
end
|
38
|
+
|
39
|
+
puts message
|
40
|
+
|
41
|
+
exit(1) unless result
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative '../linters'
|
2
|
+
|
3
|
+
namespace :linters do
|
4
|
+
desc 'Run linters or the linter with the specific name'
|
5
|
+
task :run, [:name] do |_, args|
|
6
|
+
raise "Please, set the linter's name" if args.name.nil?
|
7
|
+
|
8
|
+
manager = Linters::Manager.new
|
9
|
+
|
10
|
+
manager.perform_by_name(args.name.to_sym)
|
11
|
+
end
|
12
|
+
|
13
|
+
desc 'Run all linters'
|
14
|
+
task :run_all do
|
15
|
+
manager = Linters::Manager.new
|
16
|
+
|
17
|
+
manager.perform_all
|
18
|
+
end
|
19
|
+
end
|
data/linters.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'linters/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'linters'
|
7
|
+
spec.version = Linters::VERSION
|
8
|
+
spec.authors = ['Ruby Pianist']
|
9
|
+
spec.email = ['rubypianist@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = "Tool checks ruby applications using different code's analyzers."
|
12
|
+
spec.description = 'Check of ruby applications using rubocop, reek, brakeman, fasterer, bundle_audit and the other custom linters'
|
13
|
+
spec.homepage = 'https://github.com/ruby-pianist/linters'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
+
spec.require_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_dependency 'rake'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
28
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.6.1'
|
29
|
+
spec.add_development_dependency 'byebug', '~> 11.0.1'
|
30
|
+
spec.add_development_dependency 'fasterer', '~> 0.5.1'
|
31
|
+
spec.add_development_dependency 'reek', '~> 5.4.0'
|
32
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.71.0'
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: linters
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ruby Pianist
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler-audit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.6.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.6.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 11.0.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 11.0.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: fasterer
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.5.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.5.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: reek
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 5.4.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 5.4.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.71.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.71.0
|
125
|
+
description: Check of ruby applications using rubocop, reek, brakeman, fasterer, bundle_audit
|
126
|
+
and the other custom linters
|
127
|
+
email:
|
128
|
+
- rubypianist@gmail.com
|
129
|
+
executables: []
|
130
|
+
extensions: []
|
131
|
+
extra_rdoc_files: []
|
132
|
+
files:
|
133
|
+
- ".byebug_history"
|
134
|
+
- ".gitignore"
|
135
|
+
- ".reek.yml"
|
136
|
+
- ".rspec"
|
137
|
+
- ".rubocop.yml"
|
138
|
+
- ".travis.yml"
|
139
|
+
- Gemfile
|
140
|
+
- Gemfile.lock
|
141
|
+
- LICENSE.txt
|
142
|
+
- README.md
|
143
|
+
- Rakefile
|
144
|
+
- bin/console
|
145
|
+
- bin/setup
|
146
|
+
- config/settings.yml
|
147
|
+
- lib/linters.rb
|
148
|
+
- lib/linters/builder.rb
|
149
|
+
- lib/linters/configuration.rb
|
150
|
+
- lib/linters/linter.rb
|
151
|
+
- lib/linters/linter_settings.rb
|
152
|
+
- lib/linters/manager.rb
|
153
|
+
- lib/linters/railtie.rb
|
154
|
+
- lib/linters/version.rb
|
155
|
+
- lib/tasks/linters.rake
|
156
|
+
- linters.gemspec
|
157
|
+
homepage: https://github.com/ruby-pianist/linters
|
158
|
+
licenses:
|
159
|
+
- MIT
|
160
|
+
metadata: {}
|
161
|
+
post_install_message:
|
162
|
+
rdoc_options: []
|
163
|
+
require_paths:
|
164
|
+
- lib
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
requirements: []
|
176
|
+
rubygems_version: 3.0.3
|
177
|
+
signing_key:
|
178
|
+
specification_version: 4
|
179
|
+
summary: Tool checks ruby applications using different code's analyzers.
|
180
|
+
test_files: []
|