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
Boxiang Sun
gitlab-ce
Commits
913aca1d
Commit
913aca1d
authored
Aug 01, 2017
by
Lin Jen-Shin (godfat)
Committed by
Rémy Coutable
Aug 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we didn't commit conflicts
parent
0bbf0064
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
scripts/lint-conflicts.sh
scripts/lint-conflicts.sh
+5
-0
scripts/static-analysis
scripts/static-analysis
+2
-1
No files found.
scripts/lint-conflicts.sh
0 → 100755
View file @
913aca1d
#!/bin/sh
output
=
`
git ls-files
-z
|
grep
-zvE
'\.(rb|js|haml)$'
| xargs
-0n1
grep
-HEn
'^<<<<<<< '
`
echo
$output
test
-z
"
$output
"
scripts/static-analysis
View file @
913aca1d
...
...
@@ -11,7 +11,8 @@ tasks = [
%w[bundle exec rake brakeman]
,
%w[bundle exec license_finder]
,
%w[yarn run eslint]
,
%w[bundle exec rubocop --require rubocop-rspec]
%w[bundle exec rubocop --require rubocop-rspec]
,
%w[scripts/lint-conflicts.sh]
]
failed_tasks
=
tasks
.
reduce
({})
do
|
failures
,
task
|
...
...
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