Introduce Rules with YAML frontmatter #3049
- Delete all .yml files for rules
- Modify .RULE files to contain their data as YAML frontmatter
- Merge these files preserving history
Reference: https://github.com/nexB/scancode-toolkit/issues/3049 Signed-off-by: Ayan Sinha Mahapatra [email protected]
The merging of the .RULE and .yml files to .RULE files with YAML frontmatter has been done such that the line history is preserved.
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 git log --follow file_path
@pombredanne btw, should we do the same for .LICENSE files?
This is already all in https://github.com/nexB/scancode-toolkit/pull/3100 ... so closing.