-
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: fix: 引入 2.1.8 版的 The Common Project Template(REUSE pre-comm…
…it 掛勾程序報錯修正) Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
- Loading branch information
Showing
24 changed files
with
549 additions
and
57 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
# https://github.com/the-common/gitignore-templates | ||
# | ||
# Copyright 2022 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
# Don't track regular Unix hidden files | ||
.* | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# https://docs.gitlab.com/ee/ci/yaml/ | ||
# | ||
# Copyright 2023 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
do-static-analysis: | ||
stage: test | ||
rules: | ||
|
@@ -16,12 +16,14 @@ do-static-analysis: | |
variables: | ||
PIP_CACHE_DIR: ${CI_PROJECT_DIR}/.cache/pip | ||
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit | ||
SHELLCHECK_DIR: ${CI_PROJECT_DIR}/.cache/shellcheck-stable | ||
cache: | ||
# Enable per-job and per-branch caching | ||
key: $CI_JOB_NAME-$CI_COMMIT_REF_SLUG | ||
paths: | ||
- ${PIP_CACHE_DIR} | ||
- ${PRE_COMMIT_HOME} | ||
- ${SHELLCHECK_DIR} | ||
|
||
script: | ||
- ./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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
# https://git-scm.com/docs/gitmodules | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# https://github.com/Lin-Buo-Ren/common-markdownlint-nodejs-config-templates | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
# Inherit Markdownlint rules | ||
default: True | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# https://github.com/Lin-Buo-Ren/common-precommit-config-template | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
repos: | ||
# Some out-of-the-box hooks for pre-commit | ||
|
@@ -42,13 +42,34 @@ repos: | |
# Check REUSE compliance | ||
# https://reuse.software/ | ||
- repo: https://github.com/fsfe/reuse-tool | ||
rev: v1.0.0 | ||
rev: v3.0.2 | ||
hooks: | ||
- id: reuse | ||
|
||
# Check shell scripts with ShellCheck | ||
# NOTE: ShellCheck must be available in the command search PATHs | ||
# https://www.shellcheck.net/ | ||
# https://github.com/jumanjihouse/pre-commit-hooks#shellcheck | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 3.0.0 | ||
hooks: | ||
- id: shellcheck | ||
|
||
# Check YAML files | ||
# https://github.com/adrienverge/yamllint | ||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.30.0 | ||
hooks: | ||
- id: yamllint | ||
|
||
# Check EditorConfig style compliance | ||
# https://github.com/editorconfig-checker/editorconfig-checker.python | ||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python | ||
rev: 2.7.3 | ||
hooks: | ||
- id: editorconfig-checker | ||
alias: ec | ||
exclude: | | ||
(?ix)^( | ||
LICENSES/.* | ||
)$ |
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
# https://github.com/Lin-Buo-Ren/yamllint-configuration-templates | ||
# | ||
# Copyright 2021 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
rules: | ||
# Use this rule to control the number of spaces inside braces (`{` and `}`). | ||
# https://yamllint.readthedocs.io/en/stable/rules.html#module-yamllint.rules.braces | ||
|
17 changes: 17 additions & 0 deletions
17
LICENSES/LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects.txt
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 @@ | ||
# The Apache-2.0-If-Not-Used-In-Template-Projects pseudo license | ||
|
||
Assets that are declared as either licensed under [the 4.0 International | ||
version of the Creative Commons Attribution-ShareAlike license](https://creativecommons.org/licenses/by-sa/4.0/) | ||
or this pseudo license can be licensed otherwise under [the 2.0 version | ||
of the Apache license](https://www.apache.org/licenses/LICENSE-2.0) _if_ | ||
it is used to instantiate/refactor a project based on it rather than | ||
using it in the making of another template project. This allows | ||
re-licensing the project assets to your liking in your non-template | ||
projects with only a legal conformance requirement of attributing this | ||
product somewhere in your project/product credits/acknowledgment/copyright | ||
notice documentation/user interface. | ||
|
||
Note that some assets that are not declared using this pseudo license | ||
may also allow re-licensing as the declared license does not impose such | ||
restrictions in the first place, refer the individual license terms for | ||
details. |
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 @@ | |
# Create GitLab project release | ||
# | ||
# Copyright 2023 林博仁(Buo-ren, Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 | ||
# SPDX-License-Identifier: CC-BY-SA-4.0 OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
set \ | ||
-o errexit \ | ||
|
Oops, something went wrong.