linters 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/linters/version.rb +1 -1
- data/lib/tasks/linters.rake +2 -2
- data/linters.gemspec +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad70ce7250bd12937bb5605599a38688c7a494a506fbf84b68608385c1a0e6c3
|
|
4
|
+
data.tar.gz: dbd4946b3b06497ffe5c68f14aa3ef1dc44ed35a6513e72139617c66a062d5e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98ef6821304298355c4b36abd5464d054be5ac0fad5349d21520760e7682e0634a13fb7363cfba67092f516e4c4cf85b75ef8864fdacb03373e790082f57b16b
|
|
7
|
+
data.tar.gz: 8165791ae0cd6631e89e280fde7747f6fc7376718294dcaa64c67b37ef738bfaa5048fd90003a106ac3ca4857b968842a439c1e82ab945ad1ceda4956cda3004
|
data/README.md
CHANGED
|
@@ -74,7 +74,7 @@ If settings is absent that warnings_number equal zero.
|
|
|
74
74
|
config.custom_linters = {
|
|
75
75
|
name: {
|
|
76
76
|
command: 'execute command',
|
|
77
|
-
parse_output: 'parse output of the command for getting quantity of warnings'
|
|
77
|
+
parse_output: lambda { |output| 'parse output of the command for getting quantity of warnings' }
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
end
|
|
@@ -86,7 +86,7 @@ If settings is absent that warnings_number equal zero.
|
|
|
86
86
|
config.custom_linters = {
|
|
87
87
|
rubocop: {
|
|
88
88
|
command: 'your command',
|
|
89
|
-
parse_output: 'your parsing output'
|
|
89
|
+
parse_output: lambda { |output| 'your parsing output' }
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
end
|
data/lib/linters/version.rb
CHANGED
data/lib/tasks/linters.rake
CHANGED
|
@@ -2,7 +2,7 @@ require_relative '../linters'
|
|
|
2
2
|
|
|
3
3
|
namespace :linters do
|
|
4
4
|
desc 'Run linters or the linter with the specific name'
|
|
5
|
-
task :run, [
|
|
5
|
+
task :run, %i[name] do |_, args|
|
|
6
6
|
raise "Please, set the linter's name" if args.name.nil?
|
|
7
7
|
|
|
8
8
|
manager = Linters::Manager.new
|
|
@@ -11,7 +11,7 @@ namespace :linters do
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
desc 'Run all linters'
|
|
14
|
-
task run_all
|
|
14
|
+
task :run_all do
|
|
15
15
|
manager = Linters::Manager.new
|
|
16
16
|
|
|
17
17
|
manager.perform_all
|
data/linters.gemspec
CHANGED
|
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.email = ['110100reg@gmail.com']
|
|
10
10
|
|
|
11
11
|
spec.summary = "Tool checks ruby applications using different code's analyzers."
|
|
12
|
-
spec.description = 'Check of ruby applications using rubocop, reek, brakeman, fasterer,
|
|
12
|
+
spec.description = 'Check of ruby applications using rubocop, reek, brakeman, fasterer,'\
|
|
13
|
+
' bundle_audit and the other custom linters'
|
|
13
14
|
spec.homepage = 'https://github.com/skrinits/linters'
|
|
14
15
|
spec.license = 'MIT'
|
|
15
16
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: linters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- skrinits
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|