diff options
author | Kornel <kornel@geekhood.net> | 2019-04-09 01:36:17 +0100 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2019-04-09 14:37:31 +0100 |
commit | 5c387344c5fa0ed1f44b5034f366bd48e8cd08ba (patch) | |
tree | 300eb6861a2953da50eac8eebec9e4a65f1ebe31 /ranking | |
parent | 8a24a7b721829576e953010bef8409fa1d691705 (diff) |
CoC
Diffstat (limited to 'ranking')
-rw-r--r-- | ranking/src/lib_ranking.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranking/src/lib_ranking.rs b/ranking/src/lib_ranking.rs index 38d1fbb..a889a9c 100644 --- a/ranking/src/lib_ranking.rs +++ b/ranking/src/lib_ranking.rs @@ -20,6 +20,7 @@ pub struct CrateVersionInputs<'a> { pub edition: Edition, pub is_app: bool, pub has_build_rs: bool, + pub has_code_of_conduct: bool, pub has_links: bool, pub has_documentation_link: bool, pub has_homepage_link: bool, @@ -91,6 +92,7 @@ fn cargo_toml_score(cr: &CrateVersionInputs) -> Score { s.has("has_examples", 50, cr.has_examples); // probably less buggy than if winging it s.has("has_tests", 50, cr.has_tests); + s.has("has_code_of_conduct", 15, cr.has_code_of_conduct); // probably optimized s.has("has_benches", 10, cr.has_benches); |