Block has too many lines. [29/25] Open
Teaspoon.configure do |config|
# Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
# `http://localhost:3000/jasmine` to run your tests.
config.mount_at = "/teaspoon"
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Missing space after #
. Open
#coverage.output_path = "coverage"
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [119/80] Open
# Specify the framework you would like to use. This allows you to select versions, and will do some basic setup for
- Exclude checks
Line is too long. [81/80] Open
# be run in the default suite -- but can be focused into a more specific suite.
- Exclude checks
Line is too long. [108/80] Open
# Specify which headless driver to use. Supports PhantomJS, Selenium Webdriver and BrowserStack Webdriver.
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
suite.body_partial = "body"
- 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"
Missing space after #
. Open
#config.fail_fast = true
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.branches = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [118/80] Open
# Fixtures are rendered through a controller, which allows using HAML, RABL/JBuilder, etc. Files in these paths will
- Exclude checks
Line is too long. [120/80] Open
# Partial to be rendered in the head tag of the runner. You can use the provided ones or define your own by creating
- Exclude checks
Line is too long. [112/80] Open
# synchronous Ajax request to the server that will call all of the blocks you've defined for that hook name.
- Exclude checks
Line is too long. [119/80] Open
# Determine whether specs loaded into the test harness should be embedded as individual script tags or concatenated
- Exclude checks
Line is too long. [109/80] Open
# aren't met the run will fail with a message. Thresholds can be defined as a percentage (0-100), or nil.
- Exclude checks
Missing space after #
. Open
#suite.hook :fixtures, &proc{}
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [116/80] Open
# You can modify the default suite configuration and create new suites here. Suites are isolated from one another.
- Exclude checks
Line is too long. [119/80] Open
# Specify a file matcher as a regular expression and all matching files will be loaded when the suite is run. These
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
suite.helper = "spec_helper"
- 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"
Missing space after #
. Open
#suite.javascripts = []
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [83/80] Open
suite.matcher = "{spec/javascripts,app/assets}/**/*_spec.{js,js.coffee,coffee}"
- Exclude checks
Line is too long. [111/80] Open
# Specify that you always want a coverage configuration to be used. Otherwise, specify that you want coverage
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
suite.matcher = "{spec/javascripts,app/assets}/**/*_spec.{js,js.coffee,coffee}"
- 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"
Missing space after #
. Open
#end
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.server_host = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [118/80] Open
# This suites spec helper, which can require additional support files. This file is loaded before any of your test
- Exclude checks
Line is too long. [85/80] Open
@raw_datum = FactoryGirl.create(:raw_datum, project: project_with_defined_id)
- Exclude checks
Line is too long. [98/80] Open
# Specify a port to run on a specific port, otherwise Teaspoon will use a random available port.
- Exclude checks
Line is too long. [115/80] Open
# Force Teaspoon to fail immediately after a failing suite. Can be useful to make Teaspoon fail early if you have
- Exclude checks
Line is too long. [116/80] Open
# Teaspoon pipes all console[log/debug/error] to $stdout. This is useful to catch places where you've forgotten to
- Exclude checks
Line is too long. [98/80] Open
# The path that the coverage should be written to - when there's an artifact to write to disk.
- Exclude checks
Line is too long. [118/80] Open
# Assets to be ignored when generating coverage reports. Accepts an array of filenames or regular expressions. The
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
config.mount_at = "/teaspoon"
- 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"
Missing space after #
. Open
#config.driver_timeout = 180
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [83/80] Open
# considered a failure. This is to avoid issues that can arise where tests stall.
- Exclude checks
Missing space after #
. Open
#config.color = true
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [100/80] Open
# files need to be within an asset path. You can add asset paths using the `config.asset_paths`.
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
suite.use_framework :jasmine, "2.3.4"
- 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"
Missing space after #
. Open
#config.driver_options = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.statements = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [83/80] Open
# omit various directives and the ones defined in the default suite will be used.
- Exclude checks
Line is too long. [96/80] Open
# a `_boot.html.erb` in your fixtures path, and adjust the config to `"/boot"` for instance.
- Exclude checks
Line is too long. [118/80] Open
# These configuration directives are applicable only when running via the rake task or command line interface. These
- Exclude checks
Line is too long. [117/80] Open
# Timeout for starting the server in seconds. If your server is slow to start you may have to bump this, or you may
- Exclude checks
Missing space after #
. Open
#config.suite :targeted do |suite|
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.ignore = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [119/80] Open
# Specifies the root where Teaspoon will look for files. If you're testing an engine using a dummy application it can
- Exclude checks
Line is too long. [113/80] Open
# Hooks allow you to use `Teaspoon.hook("fixtures")` before, after, or during your spec run. This will make a
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
config.asset_paths = ["spec/javascripts", "spec/javascripts/stylesheets"]
- 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
config.asset_paths = ["spec/javascripts", "spec/javascripts/stylesheets"]
- 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
config.fixture_paths = ["spec/javascripts/fixtures"]
- 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"
Missing space after #
. Open
#suite.stylesheets = ["teaspoon"]
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.driver = :phantomjs
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.server_port = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.functions = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.server = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.server_timeout = 20
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [111/80] Open
# Teaspoon expands all assets to provide more valuable stack traces that reference individual source files.
- Exclude checks
Line is too long. [117/80] Open
# directives can be overridden using the command line interface arguments or with ENV variables when using the rake
- Exclude checks
Line is too long. [100/80] Open
# Specify a server to use with Rack (e.g. thin, mongrel). If nil is provided Rack::Server is used.
- Exclude checks
Line is too long. [84/80] Open
# Specify a host to run on a specific host, otherwise Teaspoon will use 127.0.0.1.
- Exclude checks
Missing space after #
. Open
#config.formatters = [:dot]
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [118/80] Open
# Partial to be rendered in the body tag of the runner. You can define your own to create a custom body structure.
- Exclude checks
Line is too long. [118/80] Open
# Example suite. Since we're just filtering to files already within the root test/javascripts, these files will also
- Exclude checks
Line is too long. [119/80] Open
# teaspoon --driver=phantomjs --server-port=31337 --fail-fast=true --format=junit --suite=my_suite /spec/file_spec.js
- Exclude checks
Missing space after #
. Open
#suite.js_extensions = [/(\.js)?.coffee/, /(\.js)?.es6/, ".es6.js"]
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#config.suppress_log = false
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.lines = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [117/80] Open
# When defining a suite you can provide a name and a block. If the name is left blank, :default is assumed. You can
- Exclude checks
Line is too long. [84/80] Open
# You can include your own stylesheets if you want to change how Teaspoon looks.
- Exclude checks
Line is too long. [117/80] Open
# into a single file. Similar to Rails' asset `debug: true` and `config.assets.debug = true` options. By default,
- Exclude checks
Line is too long. [94/80] Open
# teaspoon DRIVER=phantomjs SERVER_PORT=31337 FAIL_FAST=true FORMATTERS=junit suite=my_suite
- Exclude checks
Line is too long. [132/80] Open
# Available: :dot, :clean, :documentation, :json, :junit, :pride, :rspec_html, :snowday, :swayze_or_oprah, :tap, :tap_y, :teamcity
- Exclude checks
Line is too long. [119/80] Open
# Coverage reports requires Istanbul (https://github.com/gotwarlost/istanbul) to add instrumentation to your code and
- Exclude checks
Line is too long. [99/80] Open
#coverage.ignore = [%r{/lib/ruby/gems/}, %r{/vendor/assets/}, %r{/support/}, %r{/(.+)_helper.}]
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
suite.boot_partial = "boot"
- 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"
Missing space after #
. Open
#config.use_coverage = nil
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Missing space after #
. Open
#coverage.reports = ["text-summary", "html"]
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [114/80] Open
# Determines where the Teaspoon routes will be mounted. Changing this to "/jasmine" would allow you to browse to
- Exclude checks
Line is too long. [101/80] Open
# Which coverage reports Istanbul should generate. Correlates directly to what Istanbul supports.
- Exclude checks
Line is too long. [118/80] Open
# Various thresholds requirements can be defined, and those thresholds will be checked at the end of a run. If any
- Exclude checks
Missing space after #
. Open
#suite.expand_assets = true
- Read upRead up
- Exclude checks
This cop checks whether comments have a leading space after the
#
denoting the start of the comment. The leading space is not
required for some RDoc special syntax, like #++
, #--
,
#:nodoc
, =begin
- and =end
comments, "shebang" directives,
or rackup options.
Example:
# bad
#Some comment
# good
# Some comment
Line is too long. [119/80] Open
# you -- which you can override with the directives below. This should be specified first, as it can override other
- Exclude checks
Line is too long. [103/80] Open
# Load additional JS files, but requiring them in your spec helper is the preferred way to do this.
- Exclude checks
Line is too long. [112/80] Open
# Specify the timeout for the driver. Specs are expected to complete within this time frame or the run will be
- Exclude checks
Line is too long. [113/80] Open
# Coverage configurations are similar to suites. You can define several, and use different ones under different
- Exclude checks