rubocop_default_config 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rubocop_config +1 -1
- data/lib/.rubocop_popular_config.yml +15 -0
- data/lib/rubocop_config.rb +8 -2
- metadata +46 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7deb931449403a09e07f57dfeae39abc3f8c8e
|
4
|
+
data.tar.gz: d3d7280624c33c56555641e6537d97e14247c8ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1293a4c793152a8c229accce67de630dff1ebea34a9a55229c8d3c175741e18edb2d83650df5a404a0a7d6912d3afdd5a23b4fd120db205faa244f36b42dc7da
|
7
|
+
data.tar.gz: 4f5bd0e3fa171a58a85c16afc32d7cbe911982eee9982706a668bebe98accbbb2c2bbf3312d51108c3012fd0a8e6a1ada91fcf3989247eac86bbb2f19cd80c00
|
data/bin/rubocop_config
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require 'rubocop_config'
|
2
|
-
RubocopConfig.
|
2
|
+
RubocopConfig.rubocop_generate_config
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# inherit_from: .rubocop_todo.yml
|
2
|
+
AllCops:
|
3
|
+
UseCache: true
|
4
|
+
Exclude:
|
5
|
+
- 'db/schema.rb'
|
6
|
+
- 'vendor/**/*'
|
7
|
+
Documentation:
|
8
|
+
Enabled: false
|
9
|
+
Style/FrozenStringLiteralComment:
|
10
|
+
Enabled: false
|
11
|
+
Layout/TrailingBlankLines:
|
12
|
+
Enabled: false
|
13
|
+
Rails:
|
14
|
+
Enabled: false
|
15
|
+
|
data/lib/rubocop_config.rb
CHANGED
@@ -1,5 +1,11 @@
|
|
1
|
+
require "erb"
|
2
|
+
require "yaml"
|
1
3
|
class RubocopConfig
|
2
|
-
def self.
|
3
|
-
puts "
|
4
|
+
def self.rubocop_generate_config
|
5
|
+
puts "Generating rubocop config ..."
|
6
|
+
file_name = ".rubocop.yml"
|
7
|
+
config_file = File.expand_path File.dirname(__FILE__) + '/.rubocop_popular_config.yml'
|
8
|
+
config = YAML.safe_load(ERB.new(File.read(config_file)).result)
|
9
|
+
File.open(file_name, "w") { |f| f << config.to_yaml }
|
4
10
|
end
|
5
11
|
end
|
metadata
CHANGED
@@ -1,15 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_default_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thai Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
12
|
-
dependencies:
|
11
|
+
date: 2017-10-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
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: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.49'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.49'
|
13
55
|
description: A simple gem to generate default config for RuboCop
|
14
56
|
email: qthai.huynh@gmail.com
|
15
57
|
executables:
|
@@ -18,6 +60,7 @@ extensions: []
|
|
18
60
|
extra_rdoc_files: []
|
19
61
|
files:
|
20
62
|
- bin/rubocop_config
|
63
|
+
- lib/.rubocop_popular_config.yml
|
21
64
|
- lib/rubocop_config.rb
|
22
65
|
homepage: http://rubygems.org/gems/rubocop_default_config
|
23
66
|
licenses:
|