rambler-digital-solutions/Generamba

View on GitHub

Showing 840 of 840 total issues

Trailing whitespace detected.
Open

            

Line is too long. [83/80]
Open

            file_source = IO.read(template.template_path.join(file[TEMPLATE_FILE_PATH_KEY]))

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

                                                                                                                root_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

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

                :project_file_root,

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

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

                                                                code_module,
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

The name of this source file (string-colorize.rb) should use snake_case.
Open

# Adds a number of methods for colorizing output strings

This cop makes sure that Ruby source files have snake_case names. Ruby scripts (i.e. source files with a shebang in the first line) are ignored.

Example:

# bad
lib/layoutManager.rb

anything/usingCamelCase

# good
lib/layout_manager.rb

anything/using_snake_case.rake

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

                                                                code_module.test_file_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

Line is too long. [85/80]
Open

      @description = options[:description] ? options[:description] : "#{name} module"

Tab detected.
Open

        def generate_module(name, code_module, template)
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Line is too long. [136/80]
Open

      has_dependencies = yes?('Will your template contain any third-party dependencies (available via Cocoapods or Carthage)? (yes/no)')

Tab detected.
Open

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

Line is too long. [90/80]
Open

      @project_targets = options[:project_targets].split(',') if options[:project_targets]

Tab detected.
Open

                process_files_if_needed(template.test_files,
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Tab detected.
Open

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

Use 2 (not 1) spaces for indentation.
Open

    class Application < Thor
Severity: Minor
Found in lib/generamba/cli/cli.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

Extra empty line detected at module body beginning.
Open


  # Responsible for creating Generamba configs

This cops checks if empty lines around the bodies of modules match the configuration.

Example: EnforcedStyle: empty_lines

# good

module Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

module Foo
  module Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
module Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

module Foo
  def bar
    # ...
  end
end

Tab detected.
Open

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

Tab detected.
Open

                # Creating the file in the Xcode project
Severity: Minor
Found in lib/generamba/module_generator.rb by rubocop

Line is too long. [112/80]
Open

    method_option :module_path, :desc => 'Specifies a location (both in the filesystem and Xcode) for new files'
Severity: Minor
Found in lib/generamba/cli/gen_command.rb by rubocop

Use 2 (not 1) spaces for indentation.
Open

                puts('Creating code files...')
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
Severity
Category
Status
Source
Language