foodcritic 3.0.3 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/CHANGELOG.md +65 -0
- data/README.md +1 -1
- data/chef_dsl_metadata/chef_11.10.0.json +10272 -0
- data/chef_dsl_metadata/chef_11.10.2.json +10272 -0
- data/chef_dsl_metadata/chef_11.10.4.json +10272 -0
- data/chef_dsl_metadata/chef_11.6.2.json +9566 -0
- data/chef_dsl_metadata/chef_11.8.0.json +10074 -0
- data/chef_dsl_metadata/chef_11.8.2.json +10074 -0
- data/features/001_check_node_access.feature +60 -0
- data/features/003_check_for_chef_server.feature +5 -0
- data/features/006_check_file_mode.feature +1 -0
- data/features/022_check_for_dodgy_conditions_within_loop.feature +10 -0
- data/features/040_check_raw_git_usage.feature +6 -0
- data/features/047_check_for_attribute_assignment_without_precedence.feature +2 -0
- data/features/build_framework_support.feature +10 -0
- data/features/exclude_paths_to_lint.feature +19 -0
- data/features/show_lines_matched.feature +4 -4
- data/features/sort_warnings.feature +1 -1
- data/features/step_definitions/cookbook_steps.rb +117 -24
- data/features/support/command_helpers.rb +45 -12
- data/features/support/env.rb +5 -0
- data/lib/foodcritic/api.rb +122 -99
- data/lib/foodcritic/ast.rb +6 -7
- data/lib/foodcritic/chef.rb +24 -23
- data/lib/foodcritic/command_line.rb +49 -41
- data/lib/foodcritic/domain.rb +12 -10
- data/lib/foodcritic/dsl.rb +4 -7
- data/lib/foodcritic/error_checker.rb +0 -3
- data/lib/foodcritic/linter.rb +45 -43
- data/lib/foodcritic/notifications.rb +32 -32
- data/lib/foodcritic/output.rb +3 -6
- data/lib/foodcritic/rake_task.rb +9 -10
- data/lib/foodcritic/rules.rb +278 -240
- data/lib/foodcritic/template.rb +6 -13
- data/lib/foodcritic/version.rb +1 -1
- data/lib/foodcritic/xml.rb +1 -3
- data/man/foodcritic.1 +6 -2
- data/man/foodcritic.1.ronn +4 -1
- data/spec/foodcritic/linter_spec.rb +2 -2
- data/spec/regression/expected-output.txt +296 -1
- metadata +160 -138
data/lib/foodcritic/template.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
module FoodCritic
|
2
2
|
module Template
|
3
|
-
|
4
3
|
# Extract expressions <%= expr %> from Erb templates.
|
5
4
|
class ExpressionExtractor
|
6
|
-
|
7
5
|
include Erubis::Basic::Converter
|
8
6
|
|
9
7
|
def initialize
|
@@ -18,24 +16,21 @@ module FoodCritic
|
|
18
16
|
|
19
17
|
def add_expr(src, code, indicator)
|
20
18
|
if indicator == '='
|
21
|
-
@expressions << {:
|
19
|
+
@expressions << { type: :expression, code: code.strip }
|
22
20
|
end
|
23
21
|
end
|
24
22
|
|
25
23
|
def add_text(src, text)
|
26
|
-
|
27
24
|
end
|
28
25
|
|
29
26
|
def add_preamble(codebuf)
|
30
|
-
|
31
27
|
end
|
32
28
|
|
33
29
|
def add_postamble(codebuf)
|
34
|
-
|
35
30
|
end
|
36
31
|
|
37
32
|
def add_stmt(src, code)
|
38
|
-
@expressions << {:
|
33
|
+
@expressions << { type: :statement, code: code.strip }
|
39
34
|
end
|
40
35
|
|
41
36
|
private
|
@@ -43,15 +38,15 @@ module FoodCritic
|
|
43
38
|
def expressions(template_code)
|
44
39
|
expr_lines = expressions_with_lines(template_code)
|
45
40
|
expr_lines.map do |expr, line|
|
46
|
-
e = @expressions.find{|e| e[:code] == expr}
|
47
|
-
{:
|
41
|
+
e = @expressions.find { |e| e[:code] == expr }
|
42
|
+
{ code: expr, type: e[:type], line: line } if e
|
48
43
|
end.compact
|
49
44
|
end
|
50
45
|
|
51
46
|
def expressions_with_lines(template_code)
|
52
47
|
lines = lines_with_offsets(template_code)
|
53
48
|
expression_offsets(template_code).map do |expr_offset, code|
|
54
|
-
[code, lines.find {|line, offset| offset >= expr_offset}.first]
|
49
|
+
[code, lines.find { |line, offset| offset >= expr_offset }.first]
|
55
50
|
end
|
56
51
|
end
|
57
52
|
|
@@ -68,10 +63,8 @@ module FoodCritic
|
|
68
63
|
template_code.scan(/$/) do |m|
|
69
64
|
line_offsets << Regexp.last_match.offset(0).first
|
70
65
|
end
|
71
|
-
line_offsets.each_with_index.map{|
|
66
|
+
line_offsets.each_with_index.map { |pos, ln| [ln + 1, pos] }
|
72
67
|
end
|
73
|
-
|
74
68
|
end
|
75
|
-
|
76
69
|
end
|
77
70
|
end
|
data/lib/foodcritic/version.rb
CHANGED
data/lib/foodcritic/xml.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
module FoodCritic
|
2
2
|
module XML
|
3
|
-
|
4
3
|
private
|
5
4
|
|
6
5
|
def xml_array_node(doc, xml_node, child)
|
@@ -30,11 +29,10 @@ module FoodCritic
|
|
30
29
|
end
|
31
30
|
|
32
31
|
def xml_position_node(doc, xml_node, child)
|
33
|
-
pos = Nokogiri::XML::Node.new(
|
32
|
+
pos = Nokogiri::XML::Node.new('pos', doc)
|
34
33
|
pos['line'] = child.first.to_s
|
35
34
|
pos['column'] = child[1].to_s
|
36
35
|
xml_node.add_child(pos)
|
37
36
|
end
|
38
37
|
end
|
39
|
-
|
40
38
|
end
|
data/man/foodcritic.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "FOODCRITIC" "1" "
|
4
|
+
.TH "FOODCRITIC" "1" "June 2014" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBfoodcritic\fR \- lint tool for chef cookbooks
|
@@ -19,7 +19,7 @@ Each \fBcookbook\fR path specified will be examined for common problems and poor
|
|
19
19
|
.
|
20
20
|
.TP
|
21
21
|
\fB\-t\fR, \fB\-\-tags\fR \fITAGS\fR
|
22
|
-
Only check against rules with the specified tags\.
|
22
|
+
Only check against rules with the specified tags\. Prefix tags with a tilde \fB~\fR to exclude rules\.
|
23
23
|
.
|
24
24
|
.TP
|
25
25
|
\fB\-f\fR, \fB\-\-epic\-fail\fR \fITAGS\fR
|
@@ -57,6 +57,10 @@ Specify grammar to use when validating search syntax\. (Default: the grammar of
|
|
57
57
|
\fB\-V\fR, \fB\-\-version\fR
|
58
58
|
Display the foodcritic version\.
|
59
59
|
.
|
60
|
+
.TP
|
61
|
+
\fB\-X\fR, \fB\-\-exclude\fR \fIPATH\fR
|
62
|
+
Exclude path(s) from being linted\.
|
63
|
+
.
|
60
64
|
.SH "RETURN VALUES"
|
61
65
|
By default, \fBfoodcritic\fR will always return \fB0\fR\.
|
62
66
|
.
|
data/man/foodcritic.1.ronn
CHANGED
@@ -19,7 +19,8 @@ poor style.
|
|
19
19
|
## OPTIONS
|
20
20
|
|
21
21
|
* `-t`, `--tags` <TAGS>:
|
22
|
-
Only check against rules with the specified tags.
|
22
|
+
Only check against rules with the specified tags. Prefix
|
23
|
+
tags with a tilde `~` to exclude rules.
|
23
24
|
|
24
25
|
* `-f`, `--epic-fail` <TAGS>:
|
25
26
|
Exit non-zero if any of the specified tags are matched.
|
@@ -50,6 +51,8 @@ poor style.
|
|
50
51
|
* `-V`, `--version`:
|
51
52
|
Display the foodcritic version.
|
52
53
|
|
54
|
+
* `-X`, `--exclude` <PATH>:
|
55
|
+
Exclude path(s) from being linted.
|
53
56
|
|
54
57
|
## RETURN VALUES
|
55
58
|
|
@@ -11,7 +11,7 @@ describe FoodCritic::Linter do
|
|
11
11
|
|
12
12
|
describe "chef version" do
|
13
13
|
it "should be the latest stable version of Chef" do
|
14
|
-
FoodCritic::Linter::DEFAULT_CHEF_VERSION.must_equal "11.4
|
14
|
+
FoodCritic::Linter::DEFAULT_CHEF_VERSION.must_equal "11.10.4"
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -44,7 +44,7 @@ describe FoodCritic::Linter do
|
|
44
44
|
|
45
45
|
describe "#load_files!" do
|
46
46
|
let(:default_rules_file) do
|
47
|
-
File.expand_path(File.join(File.dirname(__FILE__), '../../lib/foodcritic/rules.rb'))
|
47
|
+
File.expand_path(File.join(File.dirname(__FILE__), '../../lib/foodcritic/rules.rb'))
|
48
48
|
end
|
49
49
|
|
50
50
|
let(:rule_dsl_load_mock) { MiniTest::Mock.new }
|
@@ -1,3 +1,299 @@
|
|
1
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ant/providers/library.rb:27
|
2
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ant/providers/library.rb:39
|
3
|
+
FC001: Use strings in preference to symbols to access node attributes: ./apparmor/attributes/apparmor.rb:1
|
4
|
+
FC001: Use strings in preference to symbols to access node attributes: ./apparmor/recipes/default.rb:21
|
5
|
+
FC001: Use strings in preference to symbols to access node attributes: ./apparmor/recipes/default.rb:23
|
6
|
+
FC001: Use strings in preference to symbols to access node attributes: ./application_php/templates/default/php.conf.erb:28
|
7
|
+
FC001: Use strings in preference to symbols to access node attributes: ./application_php/templates/default/php.conf.erb:29
|
8
|
+
FC001: Use strings in preference to symbols to access node attributes: ./application_php/templates/default/php.conf.erb:32
|
9
|
+
FC001: Use strings in preference to symbols to access node attributes: ./application_ruby/templates/default/sv-unicorn-run.erb:6
|
10
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef-server/libraries/omnitruck_client.rb:76
|
11
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef-server/libraries/omnitruck_client.rb:77
|
12
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef-server/libraries/omnitruck_client.rb:78
|
13
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:20
|
14
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:21
|
15
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:22
|
16
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:26
|
17
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:27
|
18
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:28
|
19
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:29
|
20
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:31
|
21
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:32
|
22
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:33
|
23
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:34
|
24
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:35
|
25
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:38
|
26
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:39
|
27
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:40
|
28
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:41
|
29
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:42
|
30
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:43
|
31
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:44
|
32
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:45
|
33
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:46
|
34
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:47
|
35
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:49
|
36
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/default.rb:50
|
37
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/server_proxy.rb:23
|
38
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/server_proxy.rb:25
|
39
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/server_proxy.rb:28
|
40
|
+
FC001: Use strings in preference to symbols to access node attributes: ./chef/attributes/server_proxy.rb:29
|
41
|
+
FC001: Use strings in preference to symbols to access node attributes: ./database/libraries/provider_database_postgresql.rb:113
|
42
|
+
FC001: Use strings in preference to symbols to access node attributes: ./database/recipes/ebs_backup.rb:31
|
43
|
+
FC001: Use strings in preference to symbols to access node attributes: ./database/recipes/ebs_volume.rb:22
|
44
|
+
FC001: Use strings in preference to symbols to access node attributes: ./database/recipes/ebs_volume.rb:86
|
45
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dmg/attributes/default.rb:19
|
46
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dmg/attributes/default.rb:20
|
47
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:1
|
48
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:2
|
49
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:3
|
50
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:4
|
51
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:5
|
52
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:6
|
53
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:7
|
54
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/attributes/default.rb:8
|
55
|
+
FC001: Use strings in preference to symbols to access node attributes: ./drbd/templates/default/res.erb:1
|
56
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:22
|
57
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:25
|
58
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:26
|
59
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:27
|
60
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:28
|
61
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/a_record.rb:29
|
62
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/ec2.rb:23
|
63
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/ec2.rb:25
|
64
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/ec2.rb:26
|
65
|
+
FC001: Use strings in preference to symbols to access node attributes: ./dynect/recipes/ec2.rb:40
|
66
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/mirror.rb:1
|
67
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/mirror.rb:2
|
68
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/mirror.rb:3
|
69
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/server.rb:1
|
70
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/server.rb:2
|
71
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/attributes/server.rb:3
|
72
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:23
|
73
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:29
|
74
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:36
|
75
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:41
|
76
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:44
|
77
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:45
|
78
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/mirror.rb:46
|
79
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:26
|
80
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:29
|
81
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:30
|
82
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:31
|
83
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:40
|
84
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:44
|
85
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/recipes/server.rb:50
|
86
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/templates/default/gem_server.conf.erb:6
|
87
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/templates/default/gem_server.conf.erb:29
|
88
|
+
FC001: Use strings in preference to symbols to access node attributes: ./gems/templates/default/gem_server.conf.erb:35
|
89
|
+
FC001: Use strings in preference to symbols to access node attributes: ./getting-started/attributes/default.rb:1
|
90
|
+
FC001: Use strings in preference to symbols to access node attributes: ./getting-started/templates/default/chef-getting-started.txt.erb:3
|
91
|
+
FC001: Use strings in preference to symbols to access node attributes: ./getting-started/templates/default/chef-getting-started.txt.erb:4
|
92
|
+
FC001: Use strings in preference to symbols to access node attributes: ./getting-started/templates/default/chef-getting-started.txt.erb:5
|
93
|
+
FC001: Use strings in preference to symbols to access node attributes: ./god/definitions/god_monitor.rb:32
|
94
|
+
FC001: Use strings in preference to symbols to access node attributes: ./god/templates/default/master.god.erb:2
|
95
|
+
FC001: Use strings in preference to symbols to access node attributes: ./god/templates/default/master.god.erb:7
|
96
|
+
FC001: Use strings in preference to symbols to access node attributes: ./god/templates/default/master.god.erb:13
|
97
|
+
FC001: Use strings in preference to symbols to access node attributes: ./god/templates/default/master.god.erb:18
|
98
|
+
FC001: Use strings in preference to symbols to access node attributes: ./hadoop/templates/default/cloudera.list.erb:1
|
99
|
+
FC001: Use strings in preference to symbols to access node attributes: ./hadoop/templates/default/cloudera.list.erb:2
|
100
|
+
FC001: Use strings in preference to symbols to access node attributes: ./imagemagick/recipes/default.rb:20
|
101
|
+
FC001: Use strings in preference to symbols to access node attributes: ./iptables/recipes/default.rb:37
|
102
|
+
FC001: Use strings in preference to symbols to access node attributes: ./jpackage/attributes/default.rb:20
|
103
|
+
FC001: Use strings in preference to symbols to access node attributes: ./jpackage/recipes/default.rb:22
|
104
|
+
FC001: Use strings in preference to symbols to access node attributes: ./jpackage/recipes/default.rb:33
|
105
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/attributes/default.rb:1
|
106
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/attributes/default.rb:2
|
107
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/attributes/default.rb:3
|
108
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/recipes/server.rb:38
|
109
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/recipes/server.rb:41
|
110
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/templates/default/kickstart.conf.erb:14
|
111
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/templates/default/kickstart.conf.erb:15
|
112
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/templates/default/ks.cfg.erb:6
|
113
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/templates/default/ks.cfg.erb:9
|
114
|
+
FC001: Use strings in preference to symbols to access node attributes: ./kickstart/templates/default/ks.cfg.erb:10
|
115
|
+
FC001: Use strings in preference to symbols to access node attributes: ./man/recipes/default.rb:20
|
116
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/attributes/default.rb:17
|
117
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/recipes/default.rb:46
|
118
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/recipes/default.rb:47
|
119
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/templates/default/mararc.erb:8
|
120
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/templates/default/mararc.erb:9
|
121
|
+
FC001: Use strings in preference to symbols to access node attributes: ./maradns/templates/default/mararc.erb:31
|
122
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/attributes/default.rb:1
|
123
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/attributes/default.rb:2
|
124
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/attributes/default.rb:3
|
125
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/attributes/default.rb:4
|
126
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/attributes/default.rb:5
|
127
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/definitions/memcached_instance.rb:29
|
128
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/definitions/memcached_instance.rb:30
|
129
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/definitions/memcached_instance.rb:31
|
130
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:25
|
131
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:39
|
132
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:47
|
133
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:48
|
134
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:49
|
135
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:50
|
136
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:51
|
137
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:62
|
138
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:63
|
139
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:64
|
140
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:65
|
141
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:66
|
142
|
+
FC001: Use strings in preference to symbols to access node attributes: ./memcached/recipes/default.rb:72
|
143
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/attributes/default.rb:27
|
144
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/client.rb:36
|
145
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:20
|
146
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:24
|
147
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:25
|
148
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:28
|
149
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:29
|
150
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:46
|
151
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:49
|
152
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:51
|
153
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:54
|
154
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:57
|
155
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server.rb:64
|
156
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:10
|
157
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:13
|
158
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:15
|
159
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:18
|
160
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:21
|
161
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_apache.rb:25
|
162
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_nginx.rb:14
|
163
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_nginx.rb:16
|
164
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_nginx.rb:19
|
165
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_nginx.rb:21
|
166
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/recipes/server_nginx.rb:24
|
167
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/templates/default/munin-node.conf.erb:30
|
168
|
+
FC001: Use strings in preference to symbols to access node attributes: ./munin/templates/default/munin-node.conf.erb:31
|
169
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/attributes/default.rb:1
|
170
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/attributes/default.rb:2
|
171
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/attributes/default.rb:3
|
172
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/attributes/default.rb:4
|
173
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/attributes/default.rb:5
|
174
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/default.rb:28
|
175
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/default.rb:54
|
176
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/default.rb:59
|
177
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/mod_rails.rb:28
|
178
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/mod_rails.rb:37
|
179
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/recipes/mod_rails.rb:46
|
180
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger.conf.erb:1
|
181
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger.conf.erb:2
|
182
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger.conf.erb:3
|
183
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger.load.erb:1
|
184
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger_web_app.conf.erb:17
|
185
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger_web_app.conf.erb:18
|
186
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/passenger_web_app.conf.erb:21
|
187
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/web_app.conf.erb:17
|
188
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/web_app.conf.erb:18
|
189
|
+
FC001: Use strings in preference to symbols to access node attributes: ./passenger_apache2/templates/default/web_app.conf.erb:21
|
190
|
+
FC001: Use strings in preference to symbols to access node attributes: ./pdns/recipes/recursor.rb:36
|
191
|
+
FC001: Use strings in preference to symbols to access node attributes: ./perl/definitions/cpan_module.rb:27
|
192
|
+
FC001: Use strings in preference to symbols to access node attributes: ./perl/recipes/default.rb:26
|
193
|
+
FC001: Use strings in preference to symbols to access node attributes: ./rabbitmq/attributes/default.rb:44
|
194
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/libraries/radiant.rb:4
|
195
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/recipes/db_bootstrap.rb:36
|
196
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/recipes/db_bootstrap.rb:37
|
197
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/recipes/db_bootstrap.rb:45
|
198
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/recipes/default.rb:60
|
199
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/recipes/default.rb:61
|
200
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/templates/default/radiant.conf.erb:17
|
201
|
+
FC001: Use strings in preference to symbols to access node attributes: ./radiant/templates/default/radiant.conf.erb:18
|
202
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/recipes/default.rb:80
|
203
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/recipes/default.rb:83
|
204
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/recipes/default.rb:93
|
205
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/apt_repo.conf.erb:2
|
206
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/apt_repo.conf.erb:3
|
207
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/apt_repo.conf.erb:4
|
208
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/distributions.erb:2
|
209
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/distributions.erb:7
|
210
|
+
FC001: Use strings in preference to symbols to access node attributes: ./reprepro/templates/default/distributions.erb:8
|
211
|
+
FC001: Use strings in preference to symbols to access node attributes: ./rsyslog/recipes/client.rb:26
|
212
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:22
|
213
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:23
|
214
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:24
|
215
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:25
|
216
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:27
|
217
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:28
|
218
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:29
|
219
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/attributes/default.rb:30
|
220
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:24
|
221
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:25
|
222
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:142
|
223
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:144
|
224
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:158
|
225
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:173
|
226
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/definitions/runit_service.rb:175
|
227
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/recipes/default.rb:20
|
228
|
+
FC001: Use strings in preference to symbols to access node attributes: ./runit/recipes/default.rb:64
|
229
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:20
|
230
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:21
|
231
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:22
|
232
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:23
|
233
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:24
|
234
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/attributes/default.rb:25
|
235
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/definitions/sbuild_lv.rb:26
|
236
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/definitions/sbuild_lv.rb:31
|
237
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/definitions/sbuild_lv.rb:32
|
238
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/recipes/default.rb:41
|
239
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/templates/default/sbuildrc.erb:5
|
240
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/templates/default/sbuildrc.erb:7
|
241
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/templates/default/sbuildrc.erb:8
|
242
|
+
FC001: Use strings in preference to symbols to access node attributes: ./sbuild/templates/default/sbuildrc.erb:10
|
243
|
+
FC001: Use strings in preference to symbols to access node attributes: ./stompserver/templates/default/sv-stompserver-run.erb:2
|
244
|
+
FC001: Use strings in preference to symbols to access node attributes: ./trac/recipes/default.rb:53
|
245
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:23
|
246
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:25
|
247
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:29
|
248
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:31
|
249
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:34
|
250
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/attributes/default.rb:36
|
251
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/recipes/default.rb:55
|
252
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ucspi-tcp/recipes/default.rb:58
|
253
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ufw/attributes/default.rb:1
|
254
|
+
FC001: Use strings in preference to symbols to access node attributes: ./ufw/attributes/default.rb:2
|
255
|
+
FC001: Use strings in preference to symbols to access node attributes: ./vim/attributes/default.rb:20
|
256
|
+
FC001: Use strings in preference to symbols to access node attributes: ./vim/recipes/default.rb:33
|
257
|
+
FC001: Use strings in preference to symbols to access node attributes: ./whitelist-node-attrs/attributes/default.rb:20
|
258
|
+
FC001: Use strings in preference to symbols to access node attributes: ./windows/providers/reboot.rb:22
|
259
|
+
FC001: Use strings in preference to symbols to access node attributes: ./windows/providers/reboot.rb:23
|
260
|
+
FC001: Use strings in preference to symbols to access node attributes: ./windows/providers/reboot.rb:24
|
261
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:24
|
262
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:26
|
263
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:27
|
264
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:28
|
265
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:29
|
266
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:30
|
267
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:31
|
268
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:32
|
269
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:35
|
270
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:37
|
271
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:41
|
272
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/attributes/default.rb:49
|
273
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenbatchload.rb:105
|
274
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenbatchload.rb:106
|
275
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenbatchload.rb:107
|
276
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenbatchload.rb:109
|
277
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zendmd.rb:19
|
278
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zendmd.rb:20
|
279
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zendmd.rb:21
|
280
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zendmd.rb:23
|
281
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:40
|
282
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:41
|
283
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:42
|
284
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:44
|
285
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:57
|
286
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:58
|
287
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:59
|
288
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:61
|
289
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpack.rb:72
|
290
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpatch.rb:4
|
291
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpatch.rb:9
|
292
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/providers/zenpatch.rb:11
|
293
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/recipes/server.rb:22
|
294
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/recipes/server.rb:123
|
295
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/recipes/server.rb:173
|
296
|
+
FC001: Use strings in preference to symbols to access node attributes: ./zenoss/recipes/server.rb:177
|
1
297
|
FC002: Avoid string interpolation where not required: ./ant/resources/library.rb:29
|
2
298
|
FC002: Avoid string interpolation where not required: ./application_php/templates/default/php.conf.erb:3
|
3
299
|
FC002: Avoid string interpolation where not required: ./application_python/providers/gunicorn.rb:80
|
@@ -395,7 +691,6 @@ FC034: Unused template variables: ./activemq/templates/default/wrapper.conf.erb:
|
|
395
691
|
FC034: Unused template variables: ./application_java/templates/default/context.xml.erb:1
|
396
692
|
FC034: Unused template variables: ./application_python/templates/default/celeryconfig.py.erb:1
|
397
693
|
FC034: Unused template variables: ./horizon/templates/default/local_settings.py.erb:1
|
398
|
-
FC034: Unused template variables: ./nginx/templates/default/nginx.init.erb:1
|
399
694
|
FC034: Unused template variables: ./nova/templates/default/libvirtd.conf.erb:1
|
400
695
|
FC034: Unused template variables: ./sbuild/templates/default/mk_chroot.sh.erb:1
|
401
696
|
FC041: Execute resource used to run curl or wget commands: ./hadoop/recipes/default.rb:33
|