rambler-digital-solutions/Generamba

View on GitHub

Showing 840 of 840 total issues

Use 2 (not 4) spaces for indentation.
Open

                    file_path = root_path
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Tab detected.
Open

    end

Tab detected.
Open

            project = XcodeprojHelper.obtain_project(code_module.xcodeproj_path)
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

            puts "Name: #{name}".green
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Line is too long. [87/80]
Open

    attr_reader :template_name, :template_path, :code_files, :test_files, :dependencies

Tab detected.
Open

            if code_module.test_targets && code_module.test_group_path && code_module.test_file_path
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

            files.each do |file|
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

                                                                                                                targets,
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Align the parameters of a method call if they span more than one line.
Open

                                                                code_module.project_group_path,
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Here we check if the parameters on a multi-line method call or definition are aligned.

Example: EnforcedStyle: withfirstparameter (default)

# good

foo :bar,
    :baz

# bad

foo :bar,
  :baz

Example: EnforcedStyle: withfixedindentation

# good

foo :bar,
  :baz

# bad

foo :bar,
    :baz

Tab detected.
Open

            end
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Line is too long. [96/80]
Open

                FileUtils.mkdir_p code_module.project_file_root if code_module.project_file_root
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Line is too long. [91/80]
Open

            if code_module.test_targets && code_module.test_group_path && code_module.test_file_path
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

                # Generating the content of the code file and it's name
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Inconsistent indentation detected.
Open

            if code_module.project_file_root && code_module.test_file_root
                FileUtils.mkdir_p code_module.project_file_root if code_module.project_file_root
                FileUtils.mkdir_p code_module.test_file_root if code_module.test_file_root
            else
                FileUtils.mkdir_p code_module.project_file_path if code_module.project_file_path
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Final newline missing.
Open

end

Inconsistent indentation detected.
Open

                if code_module.create_logical_groups
                    file_path = root_path
                else
                    file_path = dir_path
                    file_path = file_path.join(file_group) if file_group
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

This cops checks for inconsistent indentation.

Example:

class A
  def test
    puts 'hello'
     puts 'world'
  end
end

Use 2 (not 1) spaces for indentation.
Open

            project = XcodeprojHelper.obtain_project(code_module.xcodeproj_path)
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

This cops checks for indentation that doesn't use the specified number of spaces.

See also the IndentationConsistency cop which is the companion to this one.

Example:

# bad
class A
 def test
  puts 'hello'
 end
end

# good
class A
  def test
    puts 'hello'
  end
end

Example: IgnoredPatterns: ['^\s*module']

# bad
module A
class B
  def test
  puts 'hello'
  end
end
end

# good
module A
class B
  def test
    puts 'hello'
  end
end
end

Line is too long. [93/80]
Open

                file_name, file_content = ContentGenerator.create_file(file, module_info.scope, template)
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

                                                                project,
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Use nested module/class definitions instead of compact style.
Open

module Generamba::CLI

This cop checks the style of children definitions at classes and modules. Basically there are two different styles:

Example: EnforcedStyle: nested (default)

# good
# have each child on its own line
class Foo
  class Bar
  end
end

Example: EnforcedStyle: compact

# good
# combine definitions as much as possible
class Foo::Bar
end

The compact style is only forced for classes/modules with one child.

Severity
Category
Status
Source
Language