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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
87195b9a
Commit
87195b9a
authored
May 23, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add descriptive comments for rubocop-rspec cops
[ci skip]
parent
43d9e06b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
.rubocop.yml
.rubocop.yml
+14
-0
No files found.
.rubocop.yml
View file @
87195b9a
...
@@ -1076,22 +1076,30 @@ Rails/Validation:
...
@@ -1076,22 +1076,30 @@ Rails/Validation:
##################### RSpec ##################################
##################### RSpec ##################################
# Check that instances are not being stubbed globally.
RSpec/AnyInstance
:
RSpec/AnyInstance
:
Enabled
:
false
Enabled
:
false
# Check that the first argument to the top level describe is the tested class or
# module.
RSpec/DescribeClass
:
RSpec/DescribeClass
:
Enabled
:
false
Enabled
:
false
# Use `described_class` for tested class / module.
RSpec/DescribeMethod
:
RSpec/DescribeMethod
:
Enabled
:
false
Enabled
:
false
# Checks that the second argument to top level describe is the tested method
# name.
RSpec/DescribedClass
:
RSpec/DescribedClass
:
Enabled
:
false
Enabled
:
false
# Checks for long example.
RSpec/ExampleLength
:
RSpec/ExampleLength
:
Enabled
:
false
Enabled
:
false
Max
:
5
Max
:
5
# Do not use should when describing your tests.
RSpec/ExampleWording
:
RSpec/ExampleWording
:
Enabled
:
false
Enabled
:
false
CustomTransform
:
CustomTransform
:
...
@@ -1100,24 +1108,30 @@ RSpec/ExampleWording:
...
@@ -1100,24 +1108,30 @@ RSpec/ExampleWording:
not
:
does not
not
:
does not
IgnoredWords
:
[]
IgnoredWords
:
[]
# Checks the file and folder naming of the spec file.
RSpec/FilePath
:
RSpec/FilePath
:
Enabled
:
false
Enabled
:
false
CustomTransform
:
CustomTransform
:
RuboCop
:
rubocop
RuboCop
:
rubocop
RSpec
:
rspec
RSpec
:
rspec
# Checks if there are focused specs.
RSpec/Focus
:
RSpec/Focus
:
Enabled
:
true
Enabled
:
true
# Checks for the usage of instance variables.
RSpec/InstanceVariable
:
RSpec/InstanceVariable
:
Enabled
:
false
Enabled
:
false
# Checks for multiple top-level describes.
RSpec/MultipleDescribes
:
RSpec/MultipleDescribes
:
Enabled
:
false
Enabled
:
false
# Enforces the usage of the same method on all negative message expectations.
RSpec/NotToNot
:
RSpec/NotToNot
:
EnforcedStyle
:
not_to
EnforcedStyle
:
not_to
Enabled
:
false
Enabled
:
false
# Prefer using verifying doubles over normal doubles.
RSpec/VerifiedDoubles
:
RSpec/VerifiedDoubles
:
Enabled
:
false
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