-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Incorporate 3.1.0 version of The Common Project Template(in…
…consistent release description fix) Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
- Loading branch information
Showing
23 changed files
with
114 additions
and
68 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
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 |
---|---|---|
@@ -1,47 +1,49 @@ | ||
# Markdownlint(Node.js variant) configuration file | ||
# https://github.com/igorshubovych/markdownlint-cli#configuration | ||
# | ||
# This file is based on The Common Markdownlint(Node.js variant) Configuration Templates project | ||
# https://github.com/Lin-Buo-Ren/common-markdownlint-nodejs-config-templates | ||
# This file is based on The Common Markdownlint(Node.js variant) | ||
# Configuration Templates project | ||
# https://github.com/the-common/markdownlint-nodejs-config-templates | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com> | ||
# Copyright 2024 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
# Inherit Markdownlint rules | ||
default: True | ||
|
||
# Only allow consistent un-ordered list bullet style(allow alternations in sub-levels) | ||
MD004: | ||
# Only allow consistent un-ordered list bullet style(allow alternations | ||
# in sub-levels) | ||
ul-style: | ||
style: sublist | ||
|
||
# Only allow 4 spaces as indentation of lists | ||
MD007: | ||
ul-indent: | ||
indent: 4 | ||
|
||
# Only allow 2 spaces as linebreak sequence | ||
MD009: | ||
no-trailing-spaces: | ||
br_spaces: 2 | ||
|
||
# Disable line length limitation(not suitable with CJK context) | ||
MD013: False | ||
line-length: False | ||
|
||
# Allow missing padding blank line between the heading markup and the context | ||
MD022: False | ||
blanks-around-headings: False | ||
|
||
# Allow duplicated non-sibling heading text | ||
MD024: | ||
no-duplicate-heading: | ||
siblings_only: True | ||
|
||
# Allow missing padding blank line between a list and its context | ||
MD032: False | ||
blanks-around-lists: False | ||
|
||
# Allow using raw HTML markups as workarounds of deficiencies of Markdown | ||
MD033: False | ||
no-inline-html: False | ||
|
||
# 佔位字是要被替換掉的,為此規則之特例 | ||
MD036: false | ||
no-emphasis-as-heading: false | ||
|
||
# Allow using YAML front matter, while not require the definition of the | ||
# `title` property | ||
MD041: | ||
first-line-h1: | ||
front_matter_title: '.*' |
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
2 changes: 1 addition & 1 deletion
2
continuous-integration/do-static-analysis.install-system-deps.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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Install system dependencies required for generating the project | ||
# build artifacts | ||
# | ||
# Copyright 2023 林博仁(Buo-ren, Lin) <[email protected]> | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
set \ | ||
|
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,7 +1,7 @@ | ||
#!/usr/bin/env bash | ||
# Generate the project build artifacts | ||
# | ||
# Copyright 2023 林博仁(Buo-ren, Lin) <[email protected]> | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
set \ | ||
-o errexit \ | ||
|
@@ -20,6 +20,8 @@ if ! script="$( | |
fi | ||
|
||
script_dir="${script%/*}" | ||
project_dir="${script_dir%/*}" | ||
project_dirname="${project_dir##*/}" | ||
|
||
if ! test -e "${script_dir}/venv"; then | ||
printf \ | ||
|
@@ -54,6 +56,15 @@ if ! pip show git-archive-all &>/dev/null; then | |
fi | ||
fi | ||
|
||
printf \ | ||
'Info: Determining the build datestamp...\n' | ||
if ! datestamp="$(date +%Y%m%d-%H%M%S)"; then | ||
printf \ | ||
'Error: Unable to determine the build datestamp.\n' \ | ||
1>&2 | ||
exit 2 | ||
fi | ||
|
||
printf \ | ||
'Info: Determining the project version...\n' | ||
git_describe_opts=( | ||
|
@@ -65,16 +76,17 @@ if ! version_describe="$( | |
git describe \ | ||
"${git_describe_opts[@]}" | ||
)"; then | ||
version_describe="unknown-${datestamp}" | ||
printf \ | ||
'Error: Unable to determine the project version.\n' \ | ||
'Warning: Unable to determine the project version, will use "%s" as a fallback.\n' \ | ||
"${version_describe}" \ | ||
1>&2 | ||
exit 2 | ||
fi | ||
project_version="${version_describe#v}" | ||
|
||
printf \ | ||
'Info: Generating the project archive...\n' | ||
project_id="${CI_PROJECT_NAME:-"${project_id}"}" | ||
project_id="${CI_PROJECT_NAME:-"${PROJECT_ID:-"${project_dirname}"}"}" | ||
release_id="${project_id}-${project_version}" | ||
git_archive_all_opts=( | ||
# Add an additional layer of folder for containing the archive | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
# * Including other files from within sudoers | Sudoers Manual | Sudo | ||
# https://www.sudo.ws/docs/man/sudoers.man/#Including_other_files_from_within_sudoers | ||
# | ||
# Copyright 2023 林博仁(Buo-ren, Lin) <[email protected]> | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
# Configure the interpreter behavior to bail out during problematic | ||
|
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.