zuazo/owncloud-cookbook

View on GitHub

Showing 3 of 9 total issues

File metadata.rb has 394 lines of code (exceeds 250 allowed). Consider refactoring.
Open

name 'owncloud'
maintainer 'Xabier de Zuazo'
maintainer_email 'xabier@zuazo.org'
license 'Apache 2.0'
description <<-EOH
Severity: Minor
Found in metadata.rb - About 5 hrs to fix

    File default.rb has 319 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    dbtype = node['owncloud']['config']['dbtype']
    download_url =
      node['owncloud']['download_url'] % { version: node['owncloud']['version'] }
    
    # Sync apt package index
    Severity: Minor
    Found in recipes/default.rb - About 3 hrs to fix

      Consider simplifying this complex logical expression.
      Open

        if (platform_family?('rhel') && !platform?('amazon') &&
           node['platform_version'].to_i < 7) ||
           (platform?('debian') && node['platform_version'].to_i < 7) ||
           (platform?('ubuntu') && node['platform_version'].to_i < 12)
          '7.0.4'
      Severity: Major
      Found in attributes/default.rb - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language