lib/recipes/tools.rb

Summary

Maintainability
A
0 mins
Test Coverage

Block has too many lines. [148/25]
Open

namespace :tools do
  rake_whitelist = [
    'acts_as_licensed:import_au_cc_licenses', 'acts_as_licensed:import_nz_cc_licenses',
    'kete:export:users', 'kete:import:users',
    'kete:repair:check_uploaded_files', 'kete:repair:correct_upload_locations', 'kete:repair:fix_topic_versions', 'kete:repair:set_missing_contributors',
Severity: Minor
Found in lib/recipes/tools.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Block has too many lines. [33/25]
Open

  namespace :gems do
    task :default do
      desc <<-DESC

        Tasks to adminster Ruby Gems on a remote server: \
Severity: Minor
Found in lib/recipes/tools.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Block has too many lines. [31/25]
Open

  namespace :svn do
    desc 'remove and ignore log files and tmp from subversion'
    task :clean do
      logger.info 'removing log directory contents from svn'
      system 'svn remove log/*'
Severity: Minor
Found in lib/recipes/tools.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Block has too many lines. [27/25]
Open

  namespace :aptitude do
    desc 'Runs aptitude update on remote server'
    task :update do
      logger.info 'Running aptitude update'
      sudo 'aptitude update'
Severity: Minor
Found in lib/recipes/tools.rb by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

TODO found
Open

    # TODO: Create SSH key generation task
Severity: Minor
Found in lib/recipes/tools.rb by fixme

TODO found
Open

      # TODO: Figure out how to use Highline with this
Severity: Minor
Found in lib/recipes/tools.rb by fixme

%w-literals should be delimited by [ and ].
Open

    %w(ruby rake svn).each do |command|
Severity: Minor
Found in lib/recipes/tools.rb by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Use 0o for octal literals.
Open

        mode: 0600
Severity: Minor
Found in lib/recipes/tools.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

There are no issues that match your filters.

Category
Status