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
ad3b51bb
Commit
ad3b51bb
authored
Nov 04, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the Style/OpenStructUse Cop offense for Guardfile
Changelog: other
parent
3b744058
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Guardfile
Guardfile
+2
-2
No files found.
Guardfile
View file @
ad3b51bb
...
...
@@ -9,7 +9,7 @@ cmd = ENV['GUARD_CMD'] || (ENV['SPRING'] ? 'spring rspec' : 'bundle exec rspec')
directories
%w(app ee lib rubocop tooling spec)
rspec_context_for
=
proc
do
|
context_path
|
OpenStruct
.
new
(
to_s:
"spec"
).
tap
do
|
rspec
|
OpenStruct
.
new
(
to_s:
"spec"
).
tap
do
|
rspec
|
# rubocop:disable Style/OpenStructUse
rspec
.
spec_dir
=
"
#{
context_path
}
spec"
rspec
.
spec
=
->
(
m
)
{
Guard
::
RSpec
::
Dsl
.
detect_spec_file_for
(
rspec
,
m
)
}
rspec
.
spec_helper
=
"
#{
rspec
.
spec_dir
}
/spec_helper.rb"
...
...
@@ -19,7 +19,7 @@ rspec_context_for = proc do |context_path|
end
rails_context_for
=
proc
do
|
context_path
,
exts
|
OpenStruct
.
new
.
tap
do
|
rails
|
OpenStruct
.
new
.
tap
do
|
rails
|
# rubocop:disable Style/OpenStructUse
rails
.
app_files
=
%r{^
#{
context_path
}
app/(.+)
\.
rb$}
rails
.
views
=
%r{^
#{
context_path
}
app/(views/.+/[^/]*
\.
(?:
#{
exts
}
))$}
...
...
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