load rules configuration file from rules directory#233
Merged
URenko merged 4 commits intoURenko:masterfrom May 4, 2025
Merged
Conversation
Owner
|
我觉得 rules.toml 的自动复制行为还是保留的好。 |
Contributor
Author
|
改回来了,现在会复制到工作目录,并且在 |
URenko
approved these changes
May 2, 2025
URenko
reviewed
May 3, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#230
更改:
rules.toml复制到工作目录rules中加载额外配置,目录不存在会自动创建。优先级高于默认的rules.toml,但仍低于config.toml。deep_merge函数用于合并配置。该函数将递归合并字典共有的,值的类型相等且都为list或者dict的值。如果有冲突,以传入的config_a为准。