Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
c7b31e40
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c7b31e40
编写于
8月 03, 2016
作者:
G
Grzegorz Bizon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable some Rubocop cops related to new lines
上级
e63729d9
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
2 addition
and
8 deletion
+2
-8
.rubocop.yml
.rubocop.yml
+2
-2
spec/features/admin/admin_disables_git_access_protocol_spec.rb
...features/admin/admin_disables_git_access_protocol_spec.rb
+0
-1
spec/lib/banzai/filter/video_link_filter_spec.rb
spec/lib/banzai/filter/video_link_filter_spec.rb
+0
-1
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+0
-1
spec/lib/gitlab/git/hook_spec.rb
spec/lib/gitlab/git/hook_spec.rb
+0
-1
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
+0
-1
spec/lib/gitlab/user_access_spec.rb
spec/lib/gitlab/user_access_spec.rb
+0
-1
未找到文件。
.rubocop.yml
浏览文件 @
c7b31e40
...
@@ -149,7 +149,7 @@ Style/EmptyLinesAroundAccessModifier:
...
@@ -149,7 +149,7 @@ Style/EmptyLinesAroundAccessModifier:
# Keeps track of empty lines around block bodies.
# Keeps track of empty lines around block bodies.
Style/EmptyLinesAroundBlockBody
:
Style/EmptyLinesAroundBlockBody
:
Enabled
:
fals
e
Enabled
:
tru
e
# Keeps track of empty lines around class bodies.
# Keeps track of empty lines around class bodies.
Style/EmptyLinesAroundClassBody
:
Style/EmptyLinesAroundClassBody
:
...
@@ -161,7 +161,7 @@ Style/EmptyLinesAroundModuleBody:
...
@@ -161,7 +161,7 @@ Style/EmptyLinesAroundModuleBody:
# Keeps track of empty lines around method bodies.
# Keeps track of empty lines around method bodies.
Style/EmptyLinesAroundMethodBody
:
Style/EmptyLinesAroundMethodBody
:
Enabled
:
fals
e
Enabled
:
tru
e
# Avoid the use of END blocks.
# Avoid the use of END blocks.
Style/EndBlock
:
Style/EndBlock
:
...
...
spec/features/admin/admin_disables_git_access_protocol_spec.rb
浏览文件 @
c7b31e40
...
@@ -45,7 +45,6 @@ feature 'Admin disables Git access protocol', feature: true do
...
@@ -45,7 +45,6 @@ feature 'Admin disables Git access protocol', feature: true do
expect
(
page
).
to
have_content
(
"git clone
#{
project
.
ssh_url_to_repo
}
"
)
expect
(
page
).
to
have_content
(
"git clone
#{
project
.
ssh_url_to_repo
}
"
)
expect
(
page
).
to
have_selector
(
'#clone-dropdown'
)
expect
(
page
).
to
have_selector
(
'#clone-dropdown'
)
end
end
end
end
def
visit_project
def
visit_project
...
...
spec/lib/banzai/filter/video_link_filter_spec.rb
浏览文件 @
c7b31e40
...
@@ -47,5 +47,4 @@ describe Banzai::Filter::VideoLinkFilter, lib: true do
...
@@ -47,5 +47,4 @@ describe Banzai::Filter::VideoLinkFilter, lib: true do
expect
(
element
[
'src'
]).
to
eq
'/path/my_image.jpg'
expect
(
element
[
'src'
]).
to
eq
'/path/my_image.jpg'
end
end
end
end
end
end
spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
浏览文件 @
c7b31e40
...
@@ -534,7 +534,6 @@ module Ci
...
@@ -534,7 +534,6 @@ module Ci
end
end
context
'when also global variables are defined'
do
context
'when also global variables are defined'
do
end
end
context
'when syntax is correct'
do
context
'when syntax is correct'
do
...
...
spec/lib/gitlab/git/hook_spec.rb
浏览文件 @
c7b31e40
...
@@ -25,7 +25,6 @@ describe Gitlab::Git::Hook, lib: true do
...
@@ -25,7 +25,6 @@ describe Gitlab::Git::Hook, lib: true do
end
end
[
'pre-receive'
,
'post-receive'
,
'update'
].
each
do
|
hook_name
|
[
'pre-receive'
,
'post-receive'
,
'update'
].
each
do
|
hook_name
|
context
"when triggering a
#{
hook_name
}
hook"
do
context
"when triggering a
#{
hook_name
}
hook"
do
context
"when the hook is successful"
do
context
"when the hook is successful"
do
it
"returns success with no errors"
do
it
"returns success with no errors"
do
...
...
spec/lib/gitlab/import_export/project_tree_restorer_spec.rb
浏览文件 @
c7b31e40
...
@@ -2,7 +2,6 @@ require 'spec_helper'
...
@@ -2,7 +2,6 @@ require 'spec_helper'
describe
Gitlab
::
ImportExport
::
ProjectTreeRestorer
,
services:
true
do
describe
Gitlab
::
ImportExport
::
ProjectTreeRestorer
,
services:
true
do
describe
'restore project tree'
do
describe
'restore project tree'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:namespace
)
{
create
(
:namespace
,
owner:
user
)
}
let
(
:namespace
)
{
create
(
:namespace
,
owner:
user
)
}
let
(
:shared
)
{
Gitlab
::
ImportExport
::
Shared
.
new
(
relative_path:
""
,
project_path:
'path'
)
}
let
(
:shared
)
{
Gitlab
::
ImportExport
::
Shared
.
new
(
relative_path:
""
,
project_path:
'path'
)
}
...
...
spec/lib/gitlab/user_access_spec.rb
浏览文件 @
c7b31e40
...
@@ -83,6 +83,5 @@ describe Gitlab::UserAccess, lib: true do
...
@@ -83,6 +83,5 @@ describe Gitlab::UserAccess, lib: true do
expect
(
access
.
can_merge_to_branch?
(
@branch
.
name
)).
to
be_falsey
expect
(
access
.
can_merge_to_branch?
(
@branch
.
name
)).
to
be_falsey
end
end
end
end
end
end
end
end
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录