Showing 840 of 840 total issues
Trailing whitespace detected. Open
- Exclude checks
Line is too long. [83/80] Open
file_source = IO.read(template.template_path.join(file[TEMPLATE_FILE_PATH_KEY]))
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
root_path,
- Read upRead up
- Exclude checks
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,
- Read upRead up
- Exclude checks
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,
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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,
- Read upRead up
- Exclude checks
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"
- Exclude checks
Tab detected. Open
def generate_module(name, code_module, template)
- Exclude checks
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)')
- Exclude checks
Tab detected. Open
code_module.test_targets,
- Exclude checks
Line is too long. [90/80] Open
@project_targets = options[:project_targets].split(',') if options[:project_targets]
- Exclude checks
Tab detected. Open
process_files_if_needed(template.test_files,
- Exclude checks
Tab detected. Open
end
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
class Application < Thor
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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,
- Exclude checks
Tab detected. Open
# Creating the file in the Xcode project
- Exclude checks
Line is too long. [112/80] Open
method_option :module_path, :desc => 'Specifies a location (both in the filesystem and Xcode) for new files'
- Exclude checks
Use 2 (not 1) spaces for indentation. Open
puts('Creating code files...')
- Read upRead up
- Exclude checks
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