t3labcom/capistrano-typo3

View on GitHub

Showing 612 of 612 total issues

Class has too many lines. [367/100]
Open

class Typo3Helper

  def self.typo3_version_list

    source = "https://get.typo3.org/json"

This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

File typo3_helper.rb has 370 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'open-uri'
require 'json'

class Typo3Helper

Severity: Minor
Found in lib/capistrano/typo3/typo3_helper.rb - About 4 hrs to fix

    Class Typo3Helper has 36 methods (exceeds 20 allowed). Consider refactoring.
    Open

    class Typo3Helper
    
      def self.typo3_version_list
    
        source = "https://get.typo3.org/json"
    Severity: Minor
    Found in lib/capistrano/typo3/typo3_helper.rb - About 4 hrs to fix

      Method has too many lines. [35/10]
      Open

        def self.set_v6_localconf_extlist(extList)
      
          outfile = File.join('current','dummy','typo3conf','PackageStates.php')
          confhash = self.get_v6_package_states
      #    require 'pp'

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Assignment Branch Condition size for db_image_list is too high. [36.89/15]
      Open

        def self.db_image_list
          images_arr = []
          idx = 0
      
          Dir.glob("#{TYPO3_DB_DUMP_DIR}/*.sql").sort.each {|sql|
      Severity: Minor
      Found in lib/capistrano/typo3/dt3_mysql.rb by rubocop

      This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

      Method has too many lines. [24/10]
      Open

        def self.db_image_list
          images_arr = []
          idx = 0
      
          Dir.glob("#{TYPO3_DB_DUMP_DIR}/*.sql").sort.each {|sql|
      Severity: Minor
      Found in lib/capistrano/typo3/dt3_mysql.rb by rubocop

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Method has too many lines. [21/10]
      Open

        def self.download_typo3_source version
      
          tarball= "typo3source/typo3_src-#{version}.tar.gz"
      
          unless File.directory?('typo3source')

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

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

      Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
        config.vm.box = 'Michiel/Development'
        config.vm.boot_timeout = BOOT_TIMEOUT
        config.vm.box_version = '=0.2.70'
        # If you have no Internet access (can not resolve *.local.typo3.org), you can use host aliases:
      Severity: Minor
      Found in homestead_files/Vagrantfile 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.

      Method has too many lines. [17/10]
      Open

        def self.typo3_version_list_for_table
          version_arr = []
          idx = 0
          versions_list_in = []
          versions = Typo3Helper::get_typo3_versions

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Method has too many lines. [17/10]
      Open

        def self.get_extconfarray_from_localconf(infile)
          if(self.typo3_localconf_version == 6)
            confhash = self.get_v6_localconf_array
            extensionArr = Hash.new
            confhash['EXT']['extConf'].each {|extkey,extconf|

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Method has too many lines. [17/10]
      Open

        def self.dump_db_version(table_exclude_list=nil)
      
          filename =''
          numbers = []
      
      
      Severity: Minor
      Found in lib/capistrano/typo3/dt3_mysql.rb by rubocop

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Method has too many lines. [17/10]
      Open

        def self.hashlist_to_table_string(hashlist)
      
          if(hashlist.count < 1)
            return
          end
      Severity: Minor
      Found in lib/capistrano/typo3/dt3_div.rb by rubocop

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Assignment Branch Condition size for download_typo3_source is too high. [21.56/15]
      Open

        def self.download_typo3_source version
      
          tarball= "typo3source/typo3_src-#{version}.tar.gz"
      
          unless File.directory?('typo3source')

      This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

      Method has too many lines. [15/10]
      Open

        def self.typo3_version_list
      
          source = "https://get.typo3.org/json"
          content = ""
          open(source) do |s|

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Assignment Branch Condition size for dump_db_version is too high. [19.42/15]
      Open

        def self.dump_db_version(table_exclude_list=nil)
      
          filename =''
          numbers = []
      
      
      Severity: Minor
      Found in lib/capistrano/typo3/dt3_mysql.rb by rubocop

      This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

      Method has too many lines. [13/10]
      Open

        def self.set_v6_typo3_conf_vars(confvars)
      
          outfile = TYPO3_V6_LOCAL_CONF_PATH
      
          confhash = self.get_v6_localconf_array

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Assignment Branch Condition size for last_minor_version is too high. [18.14/15]
      Open

        def self.last_minor_version(versions, majorversion)
          list = []
          versions.each_line do |line|
            if(line[15,3]==majorversion)
              if(line.chomp[19,2].to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/))

      This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

      Assignment Branch Condition size for set_v6_localconf_extlist is too high. [17.52/15]
      Open

        def self.set_v6_localconf_extlist(extList)
      
          outfile = File.join('current','dummy','typo3conf','PackageStates.php')
          confhash = self.get_v6_package_states
      #    require 'pp'

      This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

      Method has too many lines. [12/10]
      Open

        def self.get_db_settings
          if(self.typo3_localconf_version == 6)
            cmd = "php -r \'define(\"TYPO3_MODE\", \"BE\");$arr = include \"#{TYPO3_V6_LOCAL_CONF_PATH}\";echo \"{$arr[\"DB\"][\"username\"]} {$arr[\"DB\"][\"password\"]} {$arr[\"DB\"][\"host\"]} {$arr[\"DB\"][\"database\"]}\";\'"
          elsif(self.typo3_localconf_version == 4)
            cmd = "php -r \'define(\"TYPO3_MODE\", \"BE\");include \"#{TYPO3_V4_LOCAL_CONF_PATH}\";echo \"$typo_db_username $typo_db_password $typo_db_host $typo_db\";\'"

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Method has too many lines. [12/10]
      Open

        def self.set_v4_localconf_extlist(extList)
      
          extList = Typo3Helper::get_v4_localconf_extlist('extList')
          extList_fe = Typo3Helper::get_v4_localconf_extlist('extList_FE')
      
      

      This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

      Severity
      Category
      Status
      Source
      Language