AlexJakeGreen/gatherit-cookbook

View on GitHub

Showing 8 of 8 total issues

Use 0o for octal literals.
Open

  mode 0644
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

Parenthesize the param lazy { IO.read("#{Chef::Config[:file_cache_path]}/gatherit/gather.pl.in") .gsub(/@(PERL|CONFILE|MAPFILE|DATADIR)@/, '@PERL@' => '/usr/bin/perl', '@CONFILE@' => "'#{node['gatherit']['conf_dir']}/gather.cfg'", '@MAPFILE@' => "'#{node['gatherit']['conf_dir']}/gather.map'", '@DATADIR@' => "'#{node['gatherit']['data_dir']}'") } to make sure that the block will be associated with the lazy method call.
Open

  content lazy {
    IO.read("#{Chef::Config[:file_cache_path]}/gatherit/gather.pl.in")
      .gsub(/@(PERL|CONFILE|MAPFILE|DATADIR)@/,
            '@PERL@' => '/usr/bin/perl',
            '@CONFILE@' => "'#{node['gatherit']['conf_dir']}/gather.cfg'",
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for ambiguous block association with method when param passed without parentheses.

Example:

# bad
some_method a { |val| puts val }

Example:

# good
# With parentheses, there's no ambiguity.
some_method(a) { |val| puts val }

# good
# Operator methods require no disambiguation
foo == bar { |b| b.baz }

# good
# Lambda arguments require no disambiguation
foo = ->(bar) { bar.baz }

Use 0o for octal literals.
Open

  mode 0755
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

Parenthesize the param lazy { IO.read("#{Chef::Config[:file_cache_path]}/gatherit/gather.cfg.in") .gsub(/@(PERL|CONFILE|MAPFILE|DATADIR)@/, '@MAPFILE@' => "'#{node['gatherit']['conf_dir']}/gather.map'", '@DATADIR@' => "'#{node['gatherit']['data_dir']}'") } to make sure that the block will be associated with the lazy method call.
Open

  content lazy {
    IO.read("#{Chef::Config[:file_cache_path]}/gatherit/gather.cfg.in")
      .gsub(/@(PERL|CONFILE|MAPFILE|DATADIR)@/,
            '@MAPFILE@' => "'#{node['gatherit']['conf_dir']}/gather.map'",
            '@DATADIR@' => "'#{node['gatherit']['data_dir']}'")
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for ambiguous block association with method when param passed without parentheses.

Example:

# bad
some_method a { |val| puts val }

Example:

# good
# With parentheses, there's no ambiguity.
some_method(a) { |val| puts val }

# good
# Operator methods require no disambiguation
foo == bar { |b| b.baz }

# good
# Lambda arguments require no disambiguation
foo = ->(bar) { bar.baz }

Use 0o for octal literals.
Open

  mode 0755
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

Use 0o for octal literals.
Open

  mode 0755
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

Use 0o for octal literals.
Open

  mode 0644
Severity: Minor
Found in recipes/default.rb by rubocop

This cop checks for octal, hex, binary and decimal literals using uppercase prefixes and corrects them to lowercase prefix or no prefix (in case of decimals). eg. for octal use 0o instead of 0 or 0O.

Can be configured to use 0 only for octal literals using EnforcedOctalStyle => zero_only

TODO found
Open

  # TODO: implement it as a DSL like this:
Severity: Minor
Found in attributes/default.rb by fixme
Severity
Category
Status
Source
Language