📄 文件格式#

每个 Bookshelf 函数都应包含标明许可证的文件头。


放置在每个函数开头的文件头:

# ------------------------------------------------------------------------------------------------------------
# Copyright (c) <YEAR> Gunivers
#
# This file is part of the Bookshelf project (https://github.com/mcbookshelf/bookshelf).
#
# This source code is subject to the terms of the Mozilla Public License, v. 2.0.
# If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Conditions:
# - You may use this file in compliance with the MPL v2.0
# - Any modifications must be documented and disclosed under the same license
#
# For more details, refer to the MPL v2.0.
# ------------------------------------------------------------------------------------------------------------

若 Bookshelf 贡献者忘记在函数开头添加文件头,CI/CD 流水线将拒绝该贡献合并到 Bookshelf。要确保代码符合最低要求,请参阅贡献验证页面