-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
376 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
Tom Hombergs <tom.hombergs@gmail.com> | ||
|
||
caring-coder <joseph@verron.pro> | ||
caring-coder <joseph@verron.pro> <3975735+josephverron@users.noreply.github.com> | ||
caring-coder <joseph@verron.pro> <joseph.verron@totalenergies.com> | ||
caring-coder <joseph@verron.pro> <joseph.verron@gmail.com> | ||
Joseph Verron <joseph@verron.pro> | ||
Joseph Verron <joseph@verron.pro> <3975735+josephverron@users.noreply.github.com> | ||
Joseph Verron <joseph@verron.pro> <joseph.verron@totalenergies.com> | ||
Joseph Verron <joseph@verron.pro> <joseph.verron@gmail.com> | ||
|
||
ynaciri <ynaciri@gmail.com> | ||
ynaciri <ynaciri@gmail.com> <youssouf.naciri@external.totalenergies.com> | ||
ynaciri <ynaciri@gmail.com> <95088722+AL1047088@users.noreply.github.com> | ||
Youssouf Naciri <ynaciri@gmail.com> | ||
Youssouf Naciri <ynaciri@gmail.com> <youssouf.naciri@external.totalenergies.com> | ||
Youssouf Naciri <ynaciri@gmail.com> <95088722+AL1047088@users.noreply.github.com> | ||
|
||
crivera <chris.rivera@taxfyle.com> <crivera@10.0.0.25> | ||
crivera <chris.rivera@taxfyle.com> <imbaroxxor@gmail.com> | ||
crivera <chris.rivera@taxfyle.com> <crivera@devconone.org> | ||
Chris Rivera <chris.rivera@taxfyle.com> <crivera@10.0.0.25> | ||
Chris Rivera <chris.rivera@taxfyle.com> <imbaroxxor@gmail.com> | ||
Chris Rivera <chris.rivera@taxfyle.com> <crivera@devconone.org> | ||
|
||
Mario Siegenthaler <m@riosiegenthaler.ch> <mario.siegenthaler@linkyard.ch> |
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Create a regex for a conventional commit. | ||
conventional_commit_regex="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z \-]+\))?!?: .+$" | ||
|
||
# Get the commit message (the parameter we're given is just the path to the | ||
# temporary file which holds the message). | ||
commit_message=$(cat "$1") | ||
|
||
# Check the message, if we match, all good baby. | ||
if [[ "$commit_message" =~ $conventional_commit_regex ]]; then | ||
echo -e "\e[32mCommit message meets Conventional Commit standards...\e[0m" | ||
exit 0 | ||
fi | ||
|
||
# Uh-oh, this is not a conventional commit, show an example and link to the spec. | ||
echo -e "\e[31mThe commit message does not meet the Conventional Commit standard\e[0m" | ||
echo "An example of a valid message is: " | ||
echo " feat(login): add the 'remember me' button" | ||
echo "More details at: https://www.conventionalcommits.org/en/v1.0.0/#summary" | ||
exit 1 |
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,20 @@ | ||
# This shell script looks for all Java files in the 'src' directory and its subdirectories | ||
# and then displays the top two contributors for each file. | ||
|
||
# Loops through each Java file found in the 'src' directory and its subdirectories. | ||
for java_file in $(find src -type f -name '*.java'); | ||
do | ||
# Uses 'git shortlog -ns' command to list contributors sorted by contribution quantity. | ||
# The 'head -n 2' command only takes the top 2 contributors. | ||
# The 'cut -c8-' command removes the initial part of each line that contains the number of commits. | ||
# The 'tr '\n' ' '' command replaces the newline characters with spaces to format the output as a single line. | ||
contributors=$(\ | ||
git shortlog -ns "$java_file" \ | ||
| head -n 2 \ | ||
| cut -c8- \ | ||
| tr '\n' ' ' \ | ||
); | ||
|
||
# Prints the filename and contributors formatted as a line of output. | ||
printf "%s %s\n" "$java_file" "$contributors"; | ||
done |
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,17 @@ | ||
# Recursive search in the 'src' directory for files (-type f) having '.java' extension | ||
find src -type f -name '*.java' | | ||
# Read each file in the returned list of '.java' files one by one | ||
while read -r java_file | ||
do | ||
# Get the commit hash of the first commit where this file was introduced (using --follow to track renames). | ||
# git log provides commit details, --follow flag helps with tracking file renames, --format=%h returns the commit hash | ||
orig_commit_hash=$(git log --follow --format=%h "$java_file" | tail -n 1) | ||
|
||
# Using 'git show' to display the contents of 'pom.xml' from that commit. | ||
# Use xmlstarlet to extract the project version from the 'pom.xml' file. | ||
# xmlstarlet sel -t -v //_:project/_:version --nl : Selects the project version text from the XML, --nl adds a new line after each value | ||
orig_project_version=$(git show "$orig_commit_hash:pom.xml" | xmlstarlet sel -t -v //_:project/_:version --nl) | ||
|
||
# Print filename and its associated project version from the moment the file was first committed | ||
echo "$java_file" "$orig_project_version" | ||
done |
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
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
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
29 changes: 17 additions & 12 deletions
29
src/main/java/org/wickedsource/docxstamper/el/Matcher.java
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
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
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
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
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
Oops, something went wrong.