-
-
Notifications
You must be signed in to change notification settings - Fork 595
Introduce Rules with YAML frontmatter #3049 #3063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
This commit ends the process of merging .RULE and .yml files into a single .RULE file which has YAML frontmatter storing the rule metadata present in the .yml file previously. This renaming and merging has been done to preserve line-history for both the files. Reference: #3049 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
9c7a6bb
to
e71edc1
Compare
The merging of the .RULE and .yml files to .RULE files with YAML frontmatter has been done such that the This blogpost has been followed for the same. Though note that this preserves only line history, i.e. entire history isn't tracked as the files are renamed (and git doesn't track history for renamed files see here). But you can still get the file history for these files by using |
* Import and use functions/classes from frontmatter * Copy and modify class to use saneyaml * Copy and modify load/parse functions * Add .ABOUT and LICENSE files. Signed-off-by: AyanSinhaMahapatra <[email protected]>
Rule classmethod from_files is renamed and modified to from_file and now takes only the rule_file as argument. Also modifies tests to use frontmatter. Signed-off-by: AyanSinhaMahapatra <[email protected]>
Modify test .RULE .yml file pairs to a single .RULE file with YAML frontmatter. Signed-off-by: AyanSinhaMahapatra <[email protected]>
3c8b69c
to
89d62ae
Compare
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
@pombredanne btw, should we do the same for |
This is already all in #3100 ... so closing. |
Reference: #3049
Signed-off-by: Ayan Sinha Mahapatra [email protected]