-
-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* .json ruleset performs as intended. * Cleaned up plugin_categories.py Signed-off-by: John M. Horan <johnmhoran@gmail.com>
- Loading branch information
1 parent
017c059
commit b6287a3
Showing
3 changed files
with
258 additions
and
132 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
plugins/scancode-categories/src/json_rules/json_rules_01.json
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,34 @@ | ||
{ | ||
"new_rules": [ | ||
{ | ||
"name": "cpp_files01_different_directory_inside_scancode_json_rules_file", | ||
"test": "all(extension == resource.extension for extension in ['.cpp']) & any(file_type == resource.file_type for file_type in ['C source, ASCII text', 'C++ source, ASCII text', 'ASCII text'])", | ||
"domain": "general", | ||
"status": "core code" | ||
}, | ||
{ | ||
"name": "cpp_files_c_extension01_different_directory_inside_scancode_json_rules_file", | ||
"test": "all(extension == resource.extension for extension in ['.c']) & any(file_type == resource.file_type for file_type in ['C source, ASCII text']) & all(programming_language == resource.programming_language for programming_language in ['C++'])", | ||
"domain": "general", | ||
"status": "core code" | ||
}, | ||
{ | ||
"name": "cpp_files_header01_different_directory_inside_scancode_json_rules_file", | ||
"test": "all(extension == resource.extension for extension in ['.h']) & any(file_type == resource.file_type for file_type in ['ASCII text', 'C++ source, ASCII text', 'C source, ASCII text'])", | ||
"domain": "general", | ||
"status": "core code" | ||
}, | ||
{ | ||
"name": "map_files01_different_directory_inside_scancode_json_rules_file", | ||
"test": "all(extension == resource.extension for extension in ['.map']) & any(file_type == resource.file_type for file_type in ['ASCII text'])", | ||
"domain": "general", | ||
"status": "non-core JavaScript map file" | ||
}, | ||
{ | ||
"name": "Blueprint_files01_different_directory_inside_scancode_json_rules_file", | ||
"test": "all(extension == resource.extension for extension in ['.bp']) & any(file_type == resource.file_type for file_type in ['ASCII text'])", | ||
"domain": "general", | ||
"status": "non-core build configuration" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.