Showing 6 of 612 total issues
File typo3_helper.rb
has 370 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'open-uri'
require 'json'
class Typo3Helper
Class Typo3Helper
has 36 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Typo3Helper
def self.typo3_version_list
source = "https://get.typo3.org/json"
Method set_v6_localconf_extlist
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.set_v6_localconf_extlist(extList)
outfile = File.join('current','dummy','typo3conf','PackageStates.php')
confhash = self.get_v6_package_states
# require 'pp'
Method create_mysql_base_command_with
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def self.create_mysql_base_command_with(user,host,password,db,exec='mysql')
Method db_image_list
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
def self.db_image_list
images_arr = []
idx = 0
Dir.glob("#{TYPO3_DB_DUMP_DIR}/*.sql").sort.each {|sql|
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method download_typo3_source
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
def self.download_typo3_source version
tarball= "typo3source/typo3_src-#{version}.tar.gz"
unless File.directory?('typo3source')
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"