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
cfa18dab
Commit
cfa18dab
authored
Aug 25, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop errors
parent
cc06eab2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/ci/lints_controller.rb
app/controllers/ci/lints_controller.rb
+1
-1
lib/api/lint.rb
lib/api/lint.rb
+1
-1
No files found.
app/controllers/ci/lints_controller.rb
View file @
cfa18dab
...
...
@@ -11,7 +11,7 @@ module Ci
if
@content
.
blank?
@status
=
false
@error
=
"Please provide content of .gitlab-ci.yml"
elsif
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
)
!=
nil
elsif
!
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
).
nil?
@status
=
false
@error
=
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
)
else
...
...
lib/api/lint.rb
View file @
cfa18dab
...
...
@@ -13,7 +13,7 @@ module API
jobs:
[]
}
if
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
)
!=
nil
if
!
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
).
nil?
status
200
response
[
:errors
].
push
(
Ci
::
GitlabCiYamlProcessor
.
errors
(
@content
))
response
[
:status
]
=
'invalid'
...
...
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