chefstyle 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +201 -0
- data/README.md +87 -0
- data/Rakefile +28 -0
- data/bin/chefstyle +13 -0
- data/chefstyle.gemspec +25 -0
- data/config/chefstyle.yml +0 -0
- data/config/default.yml +4 -0
- data/config/disable_all.yml +495 -0
- data/config/disabled.yml +95 -0
- data/config/enabled.yml +1194 -0
- data/config/upstream.yml +938 -0
- data/lib/chefstyle.rb +29 -0
- data/lib/chefstyle/version.rb +4 -0
- metadata +118 -0
data/lib/chefstyle.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
require "chefstyle/version"
|
2
|
+
|
3
|
+
# ensure the desired target version of RuboCop is gem activated
|
4
|
+
gem "rubocop", "= #{Chefstyle::RUBOCOP_VERSION}"
|
5
|
+
require "rubocop"
|
6
|
+
|
7
|
+
module RuboCop
|
8
|
+
class ConfigLoader
|
9
|
+
RUBOCOP_HOME.gsub!(
|
10
|
+
/^.*$/,
|
11
|
+
File.realpath(File.join(File.dirname(__FILE__), ".."))
|
12
|
+
)
|
13
|
+
|
14
|
+
DEFAULT_FILE.gsub!(
|
15
|
+
/^.*$/,
|
16
|
+
File.join(RUBOCOP_HOME, "config", "default.yml")
|
17
|
+
)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# Chefstyle patches the RuboCop tool to set a new default configuration that
|
22
|
+
# is vendored in the Chefstyle codebase.
|
23
|
+
module Chefstyle
|
24
|
+
# @return [String] the absolute path to the main RuboCop configuration YAML
|
25
|
+
# file
|
26
|
+
def self.config
|
27
|
+
RuboCop::ConfigLoader::DEFAULT_FILE
|
28
|
+
end
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chefstyle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Thom May
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-12 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: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.35.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.35.1
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- thom@chef.io
|
72
|
+
executables:
|
73
|
+
- chefstyle
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
78
|
+
- ".rspec"
|
79
|
+
- ".travis.yml"
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/chefstyle
|
85
|
+
- chefstyle.gemspec
|
86
|
+
- config/chefstyle.yml
|
87
|
+
- config/default.yml
|
88
|
+
- config/disable_all.yml
|
89
|
+
- config/disabled.yml
|
90
|
+
- config/enabled.yml
|
91
|
+
- config/upstream.yml
|
92
|
+
- lib/chefstyle.rb
|
93
|
+
- lib/chefstyle/version.rb
|
94
|
+
homepage: https://github.com/chef/chefstyle
|
95
|
+
licenses:
|
96
|
+
- Apache-2.0
|
97
|
+
metadata: {}
|
98
|
+
post_install_message:
|
99
|
+
rdoc_options: []
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.0.0
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 2.4.5.1
|
115
|
+
signing_key:
|
116
|
+
specification_version: 4
|
117
|
+
summary: Rubocop configuration for Chef's ruby projects
|
118
|
+
test_files: []
|