-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from cytopia/release-0.4
Release 0.4
- Loading branch information
Showing
6 changed files
with
109 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env bash | ||
set -u | ||
|
||
############################################################ | ||
# Adjust for each check | ||
############################################################ | ||
|
||
# Name and messages | ||
MY_NAME="git-conflicts" | ||
MY_DESC="Scans recursively for files containing git conflicts." | ||
MY_FINISH_OK="No files with git conflicts found." | ||
MY_FINISH_ERR="Found files with git conflicts." | ||
|
||
# Configuration file prefix | ||
MY_CONF_PRE="GIT_CONFLICTS_" | ||
|
||
# Custom required binaries | ||
REQUIRED_CUST_BINS="" | ||
|
||
# Binaries required for fixing | ||
REQUIRED_FIX_BINS="" | ||
|
||
# Enable custom options (cmd arguments) | ||
# that can be parsed to the actual check binary? | ||
ENABLE_CUST_OPS=0 | ||
|
||
# When not specifying --custom, | ||
# always use this as the default options | ||
# to parse to the check binary. | ||
DEFAULT_CUST_OPS="" | ||
|
||
# How to add your check here: | ||
# --------------------------- | ||
# $1 This comes from xargs and represents | ||
# the current file to work on: | ||
# xargs sh '${MY_CHECK}' -- | ||
# | ||
# __CUSTOM_OPT_PLACEHOLDER__ | ||
# This will be replaced either with custom options | ||
# or with the default options. | ||
MY_REG="^(<<<<<<<|>>>>>>>)[[:space:]]." | ||
MY_CHECK="grep --color=always -inHE \"${MY_REG}\" \"\$1\" || true" | ||
|
||
# Can this check fix the problems? | ||
ENABLE_FIX=0 | ||
|
||
# Command to be displayed for --info | ||
MY_INFO="grep -V | grep -E '([0-9]+\.+)+'" | ||
|
||
|
||
############################################################ | ||
# Source library | ||
############################################################ | ||
|
||
. /usr/bin/awesome-ci-lib.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
No git conflicts found | ||
The following are all non-valid delimiter | ||
>>>>>>> | ||
>>>>>>>branch-a | ||
>>>>>>> branch-a | ||
|
||
<<<<<<< | ||
<<<<<<<HEAD | ||
<<<<<<< HEAD |