Showing 840 of 840 total issues
Use 2 (not 4) spaces for indentation. Open
Open
file_path = root_path
- 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
Tab detected. Open
Open
end
- Exclude checks
Tab detected. Open
Open
project = XcodeprojHelper.obtain_project(code_module.xcodeproj_path)
- Exclude checks
Tab detected. Open
Open
puts "Name: #{name}".green
- Exclude checks
Line is too long. [87/80] Open
Open
attr_reader :template_name, :template_path, :code_files, :test_files, :dependencies
- Exclude checks
Tab detected. Open
Open
if code_module.test_targets && code_module.test_group_path && code_module.test_file_path
- Exclude checks
Tab detected. Open
Open
files.each do |file|
- Exclude checks
Tab detected. Open
Open
targets,
- Exclude checks
Align the parameters of a method call if they span more than one line. Open
Open
code_module.project_group_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
Tab detected. Open
Open
end
- Exclude checks
Line is too long. [96/80] Open
Open
FileUtils.mkdir_p code_module.project_file_root if code_module.project_file_root
- Exclude checks
Line is too long. [91/80] Open
Open
if code_module.test_targets && code_module.test_group_path && code_module.test_file_path
- Exclude checks
Tab detected. Open
Open
# Generating the content of the code file and it's name
- Exclude checks
Inconsistent indentation detected. Open
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
- Read upRead up
- Exclude checks
This cops checks for inconsistent indentation.
Example:
class A
def test
puts 'hello'
puts 'world'
end
end
Final newline missing. Open
Open
end
- Exclude checks
Inconsistent indentation detected. Open
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
- Read upRead up
- Exclude checks
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
Open
project = XcodeprojHelper.obtain_project(code_module.xcodeproj_path)
- 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
Line is too long. [93/80] Open
Open
file_name, file_content = ContentGenerator.create_file(file, module_info.scope, template)
- Exclude checks
Tab detected. Open
Open
project,
- Exclude checks
Use nested module/class definitions instead of compact style. Open
Open
module Generamba::CLI
- Read upRead up
- Exclude checks
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.