Showing 151 of 151 total issues
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
fail("fdescribe left in tests") if `grep -r fdescribe spec/ `.length > 1
- Read upRead up
- Exclude checks
Checks if uses of quotes match the configured preference.
Example: EnforcedStyle: single_quotes (default)
# bad
"No special symbols"
"No string interpolation"
"Just text"
# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"
Example: EnforcedStyle: double_quotes
# bad
'Just some text'
'No special chars or interpolation'
# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"
class definition in method body Open
Open
class Direct
- Exclude checks
Missing top-level module documentation comment. Open
Open
module Dumpman
- Read upRead up
- Exclude checks
This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.
The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.
Example:
# bad
class Person
# ...
end
# good
# Description/Explanation of Person class
class Person
# ...
end
Line is too long. [82/80] Open
Open
# if your application is running under the docker you can use :docker strategy
- Exclude checks
Line is too long. [82/80] Open
Open
config = File.open(Rails.root.join('config', 'initializers', 'dumpman.rb')).read
- Exclude checks
Line is too long. [109/80] Open
Open
"gunzip < #{Dumpman.dump_file} | MYSQL_PWD='#{password}' mysql -u #{username} -h #{host} #{database}"
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
- Read upRead up
- Exclude checks
Checks if uses of quotes match the configured preference.
Example: EnforcedStyle: single_quotes (default)
# bad
"No special symbols"
"No string interpolation"
"Just text"
# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"
Example: EnforcedStyle: double_quotes
# bad
'Just some text'
'No special chars or interpolation'
# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
Open
fail("fit left in tests") if `grep -r fit spec/ `.length > 1
- Read upRead up
- Exclude checks
Checks if uses of quotes match the configured preference.
Example: EnforcedStyle: single_quotes (default)
# bad
"No special symbols"
"No string interpolation"
"Just text"
# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"
Example: EnforcedStyle: double_quotes
# bad
'Just some text'
'No special chars or interpolation'
# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"
unexpected token tCOMMA Open
Open
def initialize(ssh_opts:, ssh_cmd:, docker_image:, app_env:, **)
- Exclude checks
unexpected token tLSHFT Open
Open
<<~SSH_COMMAND
- Exclude checks
unexpected `$' Open
Open
export TEMP_DIR=$(mktemp -d)
- Exclude checks