Inspecting 22 files
.CCCWC.WWWWCCCCCCC.CCC
Offenses:
line-cookbook/files/default/tests/minitest/default_test.rb:4:1: C: Extra empty line detected at block body beginning.
line-cookbook/files/default/tests/minitest/default_test.rb:10:1: C: Extra empty line detected at block body end.
line-cookbook/files/default/tests/minitest/support/helpers.rb:2:3: C: Missing top-level module documentation comment.
module Line
^^^^^^
line-cookbook/Gemfile:4:14: C: Use the new Ruby 1.9 hash syntax.
gem 'rspec', :group => :integration
^^^^^^^^^
line-cookbook/Gemfile:5:27: C: Use the new Ruby 1.9 hash syntax.
gem 'chefspec', '~> 3.0', :group => :integration
^^^^^^^^^
line-cookbook/Gemfile:6:14: C: Use the new Ruby 1.9 hash syntax.
gem 'guard', :group => :integration
^^^^^^^^^
line-cookbook/Gemfile:7:21: C: Use the new Ruby 1.9 hash syntax.
gem 'test-kitchen', :group => :integration
^^^^^^^^^
line-cookbook/Gemfile:8:24: C: Use the new Ruby 1.9 hash syntax.
gem 'kitchen-vagrant', :group => :integration
^^^^^^^^^
line-cookbook/Guardfile:4:29: C: Space inside square brackets detected.
guard 'rspec', spec_paths: [ 'spec' ] do
^
line-cookbook/Guardfile:4:36: C: Space inside square brackets detected.
guard 'rspec', spec_paths: [ 'spec' ] do
^
line-cookbook/Guardfile:5:9: C: Use %r only for regular expressions matching more than 1 '/' character.
watch(%r{^spec/.+spec\.rb$})
^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Guardfile:7:9: C: Use %r only for regular expressions matching more than 1 '/' character.
watch(%r{recipes/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Guardfile:8:9: C: Use %r only for regular expressions matching more than 1 '/' character.
watch(%r{([A-Za-z]+)/(.+)(\..*)?$}) { |m| "spec/*.rb" }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Guardfile:8:42: W: Unused block argument - m. You can omit the argument if you don't care about it.
watch(%r{([A-Za-z]+)/(.+)(\..*)?$}) { |m| "spec/*.rb" }
^
line-cookbook/Guardfile:8:45: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
watch(%r{([A-Za-z]+)/(.+)(\..*)?$}) { |m| "spec/*.rb" }
^^^^^^^^^^^
line-cookbook/Guardfile:10:1: C: 1 trailing blank lines detected.
line-cookbook/libraries/default.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/default.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/default.rb:23:23: C: Space missing to the left of {.
string.gsub(pattern){|match|"\\" + match}
^
line-cookbook/libraries/default.rb:23:23: C: Space between { and | missing.
string.gsub(pattern){|match|"\\" + match}
^^
line-cookbook/libraries/default.rb:23:30: C: Space after closing | missing.
string.gsub(pattern){|match|"\\" + match}
^
line-cookbook/libraries/default.rb:23:31: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
string.gsub(pattern){|match|"\\" + match}
^^^^
line-cookbook/libraries/default.rb:23:43: C: Space missing inside }.
string.gsub(pattern){|match|"\\" + match}
^
line-cookbook/libraries/provider_add_to_list.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/provider_add_to_list.rb:26:5: C: Missing top-level class documentation comment.
class AddToList < Chef::Provider
^^^^^
line-cookbook/libraries/provider_add_to_list.rb:27:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/provider_add_to_list.rb:30:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_add_to_list.rb:31:7: C: Assignment Branch Condition size for action_edit is too high. [77.18/15]
def action_edit
^^^
line-cookbook/libraries/provider_add_to_list.rb:31:7: C: Cyclomatic complexity for action_edit is too high. [7/6]
def action_edit
^^^
line-cookbook/libraries/provider_add_to_list.rb:31:7: C: Method has too many lines. [39/10]
def action_edit
^^^
line-cookbook/libraries/provider_add_to_list.rb:31:7: C: Perceived complexity for action_edit is too high. [8/7]
def action_edit
^^^
line-cookbook/libraries/provider_add_to_list.rb:31:22: C: Trailing whitespace detected.
def action_edit
^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:33:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_add_to_list.rb:34:9: C: Use a guard clause instead of wrapping the code inside a conditional expression.
if ::File.exists?(new_resource.path) then
^^
line-cookbook/libraries/provider_add_to_list.rb:34:19: W: File.exists? is deprecated in favor of File.exist?.
if ::File.exists?(new_resource.path) then
^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:34:46: C: Do not use then for multi-line if.
if ::File.exists?(new_resource.path) then
^^^^
line-cookbook/libraries/provider_add_to_list.rb:36:48: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
f = ::File.open(new_resource.path, "r+")
^^^^
line-cookbook/libraries/provider_add_to_list.rb:41:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_add_to_list.rb:43:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_add_to_list.rb:47:32: C: Do not use then for multi-line if.
if line =~ regex then
^^^^
line-cookbook/libraries/provider_add_to_list.rb:48:17: W: Useless assignment to variable - found.
found = true
^^^^^
line-cookbook/libraries/provider_add_to_list.rb:49:1: C: Tab detected.
if new_resource.delim.count == 1
^^
line-cookbook/libraries/provider_add_to_list.rb:49:3: C: Inconsistent indentation detected.
if new_resource.delim.count == 1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:50:3: C: Use 2 (not 16) spaces for indentation.
unless line =~ /(#{new_resource.delim[0]}|#{new_resource.pattern})\s*#{new_resource.entry}\s*(#{new_resource.delim[0]}|\n)/
^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:50:19: C: Avoid more than 3 levels of block nesting.
unless line =~ /(#{new_resource.delim[0]}|#{new_resource.pattern})\s*#{new_resource.entry}\s*(#{new_resource.delim[0]}|\n)/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:50:81: C: Line is too long. [141/80]
unless line =~ /(#{new_resource.delim[0]}|#{new_resource.pattern})\s*#{new_resource.entry}\s*(#{new_resource.delim[0]}|\n)/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:51:81: C: Line is too long. [87/80]
line = line.chomp + "#{new_resource.delim[0]}#{new_resource.entry}"
^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:54:17: C: Align else with if.
else
^^^^
line-cookbook/libraries/provider_add_to_list.rb:55:19: C: Avoid more than 3 levels of block nesting.
unless line =~ /#{new_resource.delim[0]}\s*#{new_resource.entry}\s*#{new_resource.delim[1]}/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:55:81: C: Line is too long. [110/80]
unless line =~ /#{new_resource.delim[0]}\s*#{new_resource.entry}\s*#{new_resource.delim[1]}/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:56:81: C: Line is too long. [111/80]
line = line.chomp + "#{new_resource.delim[0]}#{new_resource.entry}#{new_resource.delim[1]}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:59:17: W: end at 59, 16 is not aligned with if at 49, 2
end
^^^
line-cookbook/libraries/provider_add_to_list.rb:66:25: C: Do not use then for multi-line if.
if modified then
^^^^
line-cookbook/libraries/provider_add_to_list.rb:68:49: C: Space missing after comma.
FileUtils.copy_file(temp_file.path,new_resource.path)
^
line-cookbook/libraries/provider_add_to_list.rb:69:41: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_add_to_list.rb:69:52: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_add_to_list.rb:70:40: C: Space missing after comma.
FileUtils.chmod(file_mode,new_resource.path)
^
line-cookbook/libraries/provider_add_to_list.rb:70:59: C: Trailing whitespace detected.
FileUtils.chmod(file_mode,new_resource.path)
^^^^^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:77:14: C: Trailing whitespace detected.
end
^^^^^^^^^^
line-cookbook/libraries/provider_add_to_list.rb:80:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_add_to_list.rb:83:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:23:5: C: Missing top-level class documentation comment.
class AppendIfNoLine < Chef::Provider
^^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:24:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/provider_append_if_no_line.rb:27:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:28:7: C: Assignment Branch Condition size for action_edit is too high. [25.88/15]
def action_edit
^^^
line-cookbook/libraries/provider_append_if_no_line.rb:28:7: C: Method has too many lines. [24/10]
def action_edit
^^^
line-cookbook/libraries/provider_append_if_no_line.rb:28:22: C: Trailing whitespace detected.
def action_edit
^^^^^^^^^^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:32:1: C: Extra blank line detected.
line-cookbook/libraries/provider_append_if_no_line.rb:33:19: W: File.exists? is deprecated in favor of File.exist?.
if ::File.exists?(new_resource.path) then
^^^^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:33:46: C: Do not use then for multi-line if.
if ::File.exists?(new_resource.path) then
^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:35:48: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
f = ::File.open(new_resource.path, "r+")
^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:36:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:39:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:40:13: C: Favor unless over if for negative conditions.
if ! found then
^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:40:16: C: Do not leave space between ! and its argument.
if ! found then
^
line-cookbook/libraries/provider_append_if_no_line.rb:40:24: C: Do not use then for multi-line if.
if ! found then
^^^^
line-cookbook/libraries/provider_append_if_no_line.rb:49:48: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
f = ::File.open(new_resource.path, "w")
^^^
line-cookbook/libraries/provider_append_if_no_line.rb:55:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:56:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_append_if_no_line.rb:59:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_delete_lines.rb:27:5: C: Missing top-level class documentation comment.
class DeleteLines < Chef::Provider
^^^^^
line-cookbook/libraries/provider_delete_lines.rb:28:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/provider_delete_lines.rb:32:7: C: Assignment Branch Condition size for action_edit is too high. [35.06/15]
def action_edit
^^^
line-cookbook/libraries/provider_delete_lines.rb:32:7: C: Method has too many lines. [29/10]
def action_edit
^^^
line-cookbook/libraries/provider_delete_lines.rb:35:9: C: Use a guard clause instead of wrapping the code inside a conditional expression.
if ::File.exists?(new_resource.path) then
^^
line-cookbook/libraries/provider_delete_lines.rb:35:19: W: File.exists? is deprecated in favor of File.exist?.
if ::File.exists?(new_resource.path) then
^^^^^^^
line-cookbook/libraries/provider_delete_lines.rb:35:46: C: Do not use then for multi-line if.
if ::File.exists?(new_resource.path) then
^^^^
line-cookbook/libraries/provider_delete_lines.rb:37:48: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
f = ::File.open(new_resource.path, "r+")
^^^^
line-cookbook/libraries/provider_delete_lines.rb:48:32: C: Do not use then for multi-line if.
if line =~ regex then
^^^^
line-cookbook/libraries/provider_delete_lines.rb:57:25: C: Do not use then for multi-line if.
if modified then
^^^^
line-cookbook/libraries/provider_delete_lines.rb:59:49: C: Space missing after comma.
FileUtils.copy_file(temp_file.path,new_resource.path)
^
line-cookbook/libraries/provider_delete_lines.rb:60:41: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_delete_lines.rb:60:52: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_delete_lines.rb:61:40: C: Space missing after comma.
FileUtils.chmod(file_mode,new_resource.path)
^
line-cookbook/libraries/provider_delete_lines.rb:74:1: C: Extra empty line detected at class body end.
line-cookbook/libraries/provider_replace_or_add.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:26:5: C: Missing top-level class documentation comment.
class ReplaceOrAdd < Chef::Provider
^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:27:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/provider_replace_or_add.rb:30:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:31:7: C: Assignment Branch Condition size for action_edit is too high. [55.87/15]
def action_edit
^^^
line-cookbook/libraries/provider_replace_or_add.rb:31:7: C: Cyclomatic complexity for action_edit is too high. [7/6]
def action_edit
^^^
line-cookbook/libraries/provider_replace_or_add.rb:31:7: C: Method has too many lines. [47/10]
def action_edit
^^^
line-cookbook/libraries/provider_replace_or_add.rb:31:7: C: Perceived complexity for action_edit is too high. [8/7]
def action_edit
^^^
line-cookbook/libraries/provider_replace_or_add.rb:31:22: C: Trailing whitespace detected.
def action_edit
^^^^^^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:33:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:34:19: W: File.exists? is deprecated in favor of File.exist?.
if ::File.exists?(new_resource.path) then
^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:34:46: C: Do not use then for multi-line if.
if ::File.exists?(new_resource.path) then
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:36:48: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
f = ::File.open(new_resource.path, "r+")
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:41:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:43:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:48:32: C: Do not use then for multi-line if.
if line =~ regex then
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:58:13: C: Favor unless over if for negative conditions.
if (!found) then # "add"!
^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:58:16: C: Don't use parentheses around the condition of an if.
if (!found) then # "add"!
^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:58:25: C: Do not use then for multi-line if.
if (!found) then # "add"!
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:65:25: C: Do not use then for multi-line if.
if modified then
^^^^
line-cookbook/libraries/provider_replace_or_add.rb:67:49: C: Space missing after comma.
FileUtils.copy_file(temp_file.path,new_resource.path)
^
line-cookbook/libraries/provider_replace_or_add.rb:68:41: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_replace_or_add.rb:68:52: C: Space missing after comma.
FileUtils.chown(file_owner,file_group,new_resource.path)
^
line-cookbook/libraries/provider_replace_or_add.rb:69:40: C: Space missing after comma.
FileUtils.chmod(file_mode,new_resource.path)
^
line-cookbook/libraries/provider_replace_or_add.rb:69:59: C: Trailing whitespace detected.
FileUtils.chmod(file_mode,new_resource.path)
^^^^^^^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:79:1: C: Extra blank line detected.
line-cookbook/libraries/provider_replace_or_add.rb:81:53: C: Trailing whitespace detected.
nf = ::File.open(new_resource.path, 'w')
^^^^^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:85:81: C: Line is too long. [88/80]
Chef::Log.info('ERROR: Containing directory does not exist for #{nf.class}')
^^^^^^^^
line-cookbook/libraries/provider_replace_or_add.rb:89:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:92:1: C: Trailing whitespace detected.
line-cookbook/libraries/provider_replace_or_add.rb:95:1: C: Trailing whitespace detected.
line-cookbook/libraries/resource_add_to_list.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/resource_add_to_list.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/resource_add_to_list.rb:22:5: C: Missing top-level class documentation comment.
class AddToList < Chef::Resource
^^^^^
line-cookbook/libraries/resource_add_to_list.rb:23:1: C: Trailing whitespace detected.
line-cookbook/libraries/resource_add_to_list.rb:24:39: C: Surrounding space missing in default value assignment.
def initialize(name, run_context=nil)
^
line-cookbook/libraries/resource_add_to_list.rb:31:19: C: Surrounding space missing in default value assignment.
def path(arg=nil)
^
line-cookbook/libraries/resource_add_to_list.rb:35:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_add_to_list.rb:39:22: C: Surrounding space missing in default value assignment.
def pattern(arg=nil)
^
line-cookbook/libraries/resource_add_to_list.rb:43:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_add_to_list.rb:47:20: C: Surrounding space missing in default value assignment.
def delim(arg=nil)
^
line-cookbook/libraries/resource_add_to_list.rb:51:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => Array
^^^^^^^^^^^
line-cookbook/libraries/resource_add_to_list.rb:55:20: C: Surrounding space missing in default value assignment.
def entry(arg=nil)
^
line-cookbook/libraries/resource_add_to_list.rb:59:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_add_to_list.rb:62:1: C: Extra empty line detected at class body end.
line-cookbook/libraries/resource_append_if_no_line.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/resource_append_if_no_line.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/resource_append_if_no_line.rb:23:5: C: Missing top-level class documentation comment.
class AppendIfNoLine < Chef::Resource
^^^^^
line-cookbook/libraries/resource_append_if_no_line.rb:24:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/resource_append_if_no_line.rb:25:39: C: Surrounding space missing in default value assignment.
def initialize(name, run_context=nil)
^
line-cookbook/libraries/resource_append_if_no_line.rb:29:36: C: Space missing after comma.
@allowed_actions.push(:edit,:nothing)
^
line-cookbook/libraries/resource_append_if_no_line.rb:32:19: C: Surrounding space missing in default value assignment.
def path(arg=nil)
^
line-cookbook/libraries/resource_append_if_no_line.rb:36:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_append_if_no_line.rb:40:19: C: Surrounding space missing in default value assignment.
def line(arg=nil)
^
line-cookbook/libraries/resource_append_if_no_line.rb:44:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_append_if_no_line.rb:47:1: C: Extra empty line detected at class body end.
line-cookbook/libraries/resource_delete_lines.rb:23:5: C: Missing top-level class documentation comment.
class DeleteLines < Chef::Resource
^^^^^
line-cookbook/libraries/resource_delete_lines.rb:24:1: C: Extra empty line detected at class body beginning.
line-cookbook/libraries/resource_delete_lines.rb:25:39: C: Surrounding space missing in default value assignment.
def initialize(name, run_context=nil)
^
line-cookbook/libraries/resource_delete_lines.rb:29:36: C: Space missing after comma.
@allowed_actions.push(:edit,:nothing)
^
line-cookbook/libraries/resource_delete_lines.rb:32:19: C: Surrounding space missing in default value assignment.
def path(arg=nil)
^
line-cookbook/libraries/resource_delete_lines.rb:36:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_delete_lines.rb:40:22: C: Surrounding space missing in default value assignment.
def pattern(arg=nil)
^
line-cookbook/libraries/resource_delete_lines.rb:44:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_delete_lines.rb:47:1: C: Extra empty line detected at class body end.
line-cookbook/libraries/resource_replace_or_add.rb:5:41: C: Trailing whitespace detected.
# Author:: Sean OMeara <[email protected]>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/libraries/resource_replace_or_add.rb:19:2: C: Trailing whitespace detected.
#
^^^^
line-cookbook/libraries/resource_replace_or_add.rb:22:5: C: Missing top-level class documentation comment.
class ReplaceOrAdd < Chef::Resource
^^^^^
line-cookbook/libraries/resource_replace_or_add.rb:23:1: C: Trailing whitespace detected.
line-cookbook/libraries/resource_replace_or_add.rb:24:39: C: Surrounding space missing in default value assignment.
def initialize(name, run_context=nil)
^
line-cookbook/libraries/resource_replace_or_add.rb:31:19: C: Surrounding space missing in default value assignment.
def path(arg=nil)
^
line-cookbook/libraries/resource_replace_or_add.rb:35:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_replace_or_add.rb:39:22: C: Surrounding space missing in default value assignment.
def pattern(arg=nil)
^
line-cookbook/libraries/resource_replace_or_add.rb:43:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_replace_or_add.rb:47:19: C: Surrounding space missing in default value assignment.
def line(arg=nil)
^
line-cookbook/libraries/resource_replace_or_add.rb:51:11: C: Use the new Ruby 1.9 hash syntax.
:kind_of => String
^^^^^^^^^^^
line-cookbook/libraries/resource_replace_or_add.rb:54:1: C: Extra empty line detected at class body end.
line-cookbook/metadata.rb:1:5: C: Put one space between the method name and the first argument.
name "line"
^^^^^^^^^^^^^
line-cookbook/metadata.rb:1:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
name "line"
^^^^^^
line-cookbook/metadata.rb:2:11: C: Put one space between the method name and the first argument.
maintainer "Sean OMeara"
^^^^^^^
line-cookbook/metadata.rb:2:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
maintainer "Sean OMeara"
^^^^^^^^^^^^^
line-cookbook/metadata.rb:3:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
maintainer_email "[email protected]"
^^^^^^^^^^^^^^^^^
line-cookbook/metadata.rb:4:8: C: Put one space between the method name and the first argument.
license "Apache2"
^^^^^^^^^^
line-cookbook/metadata.rb:4:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
license "Apache2"
^^^^^^^^^
line-cookbook/metadata.rb:5:12: C: Put one space between the method name and the first argument.
description "Provides line editing resources for use by recipes"
^^^^^^
line-cookbook/metadata.rb:5:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
description "Provides line editing resources for use by recipes"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/metadata.rb:7:8: C: Put one space between the method name and the first argument.
version "0.6.1"
^^^^^^^^^^
line-cookbook/metadata.rb:7:18: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
version "0.6.1"
^^^^^^^
line-cookbook/metadata.rb:8:1: C: 1 trailing blank lines detected.
line-cookbook/recipes/default.rb:6:2: C: Trailing whitespace detected.
#
^
line-cookbook/recipes/tester.rb:25:6: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
file "/tmp/dangerfile" do
^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:27:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
owner "root"
^^^^^^
line-cookbook/recipes/tester.rb:28:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
mode "00644"
^^^^^^^
line-cookbook/recipes/tester.rb:35:6: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
file "/tmp/dangerfile2" do
^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:37:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
owner "root"
^^^^^^
line-cookbook/recipes/tester.rb:38:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
mode "00666"
^^^^^^^
line-cookbook/recipes/tester.rb:45:15: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
cookbook_file "/tmp/serial.conf" do
^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:46:9: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
owner "root"
^^^^^^
line-cookbook/recipes/tester.rb:47:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
mode "00644"
^^^^^^^
line-cookbook/recipes/tester.rb:52:19: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
append_if_no_line "Operation 1" do
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:53:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile"
^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:54:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
line "HI THERE I AM STRING"
^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:57:16: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
replace_or_add "Operation 2" do
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:58:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile"
^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:59:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
pattern "hey there.*"
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:60:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
line "hey there how you doin"
^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:63:16: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
replace_or_add "Operation 3" do
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:64:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile"
^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:65:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
pattern "hey there.*"
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:66:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
line "hey there how you doin"
^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:69:16: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
replace_or_add "Operation 4" do
^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:70:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile2"
^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:71:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
pattern "ssh-rsa AAAAB3NzaC1yc2EAAAADDEADBEEF.*"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:72:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
line ""
^^
line-cookbook/recipes/tester.rb:76:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile"
^^^^^^^^^^^^^^^^^
line-cookbook/recipes/tester.rb:81:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
path "/tmp/dangerfile2"
^^^^^^^^^^^^^^^^^^
line-cookbook/spec/tester_spec.rb:16:81: C: Line is too long. [96/80]
expect(chef_run).to render_file('/tmp/dangerfile').with_content(/^# UNCOMMENT ME YOU FOOL$/)
^^^^^^^^^^^^^^^^
line-cookbook/spec/tester_spec.rb:27:1: C: 1 trailing blank lines detected.
line-cookbook/Thorfile:11:8: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV['CI']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:11:81: C: Line is too long. [84/80]
# An array of symbols representing groups of cookbook described in the Vagrantfile
^^^^
line-cookbook/Vagrantfile:15:81: C: Line is too long. [84/80]
# An array of symbols representing groups of cookbook described in the Vagrantfile
^^^^
line-cookbook/Vagrantfile:19:25: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.vm.host_name = "line-berkshelf"
^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:21:19: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.vm.box = "chef-centos-6.3"
^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:22:23: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:22:97: C: Line is too long. [97/80]
config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
^
line-cookbook/Vagrantfile:31:32: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
config.vm.network :hostonly, "33.33.33.10"
^^^^^^^^^^^^^
line-cookbook/Vagrantfile:53:7: C: Use the new Ruby 1.9 hash syntax.
:mysql => {
^^^^^^^^^
line-cookbook/Vagrantfile:54:9: C: Use the new Ruby 1.9 hash syntax.
:server_root_password => 'rootpass',
^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:55:9: C: Use the new Ruby 1.9 hash syntax.
:server_debian_password => 'debpass',
^^^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:56:9: C: Use the new Ruby 1.9 hash syntax.
:server_repl_password => 'replpass'
^^^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:61:7: C: Prefer single-quoted strings when you don't need string interpolation or special symbols.
"recipe[line::tester]"
^^^^^^^^^^^^^^^^^^^^^^
line-cookbook/Vagrantfile:65:1: C: 1 trailing blank lines detected.
22 files inspected, 231 offenses detected