Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2dbcd0eb
Commit
2dbcd0eb
authored
Sep 14, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `.rubocop.yml` for rubocop-rspec 1.7.0
parent
dfc7f50c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
10 deletions
+67
-10
.rubocop.yml
.rubocop.yml
+67
-10
No files found.
.rubocop.yml
View file @
2dbcd0eb
...
...
@@ -767,26 +767,33 @@ Rails/ScopeArgs:
RSpec/AnyInstance
:
Enabled
:
false
# Check that the first argument to the top level describe is the tested class or
# module.
# Check for expectations where `be(...)` can replace `eql(...)`.
RSpec/BeEql
:
Enabled
:
false
# Check that the first argument to the top level describe is a constant.
RSpec/DescribeClass
:
Enabled
:
false
# Use `described_class` for tested class / module.
# Checks that tests use `described_class`.
RSpec/DescribedClass
:
Enabled
:
false
# Checks that the second argument to `describe` specifies a method.
RSpec/DescribeMethod
:
Enabled
:
false
# Checks that the second argument to top level describe is the tested method
# name.
RSpec/DescribedClass
:
# Checks if an example group does not include any tests.
RSpec/EmptyExampleGroup
:
Enabled
:
false
CustomIncludeMethods
:
[]
# Checks for long example.
# Checks for long example
s
.
RSpec/ExampleLength
:
Enabled
:
false
Max
:
5
#
Do not use should when describing your tests
.
#
Checks that example descriptions do not start with "should"
.
RSpec/ExampleWording
:
Enabled
:
false
CustomTransform
:
...
...
@@ -795,6 +802,10 @@ RSpec/ExampleWording:
not
:
does not
IgnoredWords
:
[]
# Checks for `expect(...)` calls containing literal values.
RSpec/ExpectActual
:
Enabled
:
false
# Checks the file and folder naming of the spec file.
RSpec/FilePath
:
Enabled
:
false
...
...
@@ -806,19 +817,65 @@ RSpec/FilePath:
RSpec/Focus
:
Enabled
:
true
# Checks the arguments passed to `before`, `around`, and `after`.
RSpec/HookArgument
:
Enabled
:
false
EnforcedStyle
:
implicit
# Check that a consistent implict expectation style is used.
# TODO (rspeicher): Available in rubocop-rspec 1.8.0
# RSpec/ImplicitExpect:
# Enabled: true
# EnforcedStyle: is_expected
# Checks for the usage of instance variables.
RSpec/InstanceVariable
:
Enabled
:
false
# Checks for multiple top-level describes.
# Checks for `subject` definitions that come after `let` definitions.
RSpec/LeadingSubject
:
Enabled
:
false
# Checks unreferenced `let!` calls being used for test setup.
RSpec/LetSetup
:
Enabled
:
false
# Check that chains of messages are not being stubbed.
RSpec/MessageChain
:
Enabled
:
false
# Checks for consistent message expectation style.
RSpec/MessageExpectation
:
Enabled
:
false
EnforcedStyle
:
allow
# Checks for multiple top level describes.
RSpec/MultipleDescribes
:
Enabled
:
false
# Enforces the usage of the same method on all negative message expectations.
# Checks if examples contain too many `expect` calls.
RSpec/MultipleExpectations
:
Enabled
:
false
Max
:
1
# Checks for explicitly referenced test subjects.
RSpec/NamedSubject
:
Enabled
:
false
# Checks for nested example groups.
RSpec/NestedGroups
:
Enabled
:
false
MaxNesting
:
2
# Checks for consistent method usage for negating expectations.
RSpec/NotToNot
:
EnforcedStyle
:
not_to
Enabled
:
true
# Checks for stubbed test subjects.
RSpec/SubjectStub
:
Enabled
:
false
# Prefer using verifying doubles over normal doubles.
RSpec/VerifiedDoubles
:
Enabled
:
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment