|
| 1 | +[licenses] |
| 2 | +# The lint level for crates which do not have a detectable license |
| 3 | +unlicensed = "deny" |
| 4 | + |
| 5 | +# List of explictly allowed licenses |
| 6 | +# See https://spdx.org/licenses/ for list of possible licenses |
| 7 | +# [possible values: any SPDX 3.7 short identifier (+ optional exception)]. |
| 8 | +allow = ["MPL-2.0"] |
| 9 | + |
| 10 | +# List of explictly disallowed licenses |
| 11 | +# See https://spdx.org/licenses/ for list of possible licenses |
| 12 | +# [possible values: any SPDX 3.7 short identifier (+ optional exception)]. |
| 13 | +deny = [] |
| 14 | + |
| 15 | +# The lint level for licenses considered copyleft |
| 16 | +copyleft = "deny" |
| 17 | + |
| 18 | +# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses |
| 19 | +# * both - The license will only be approved if it is both OSI-approved *AND* FSF/Free |
| 20 | +# * either - The license will be approved if it is either OSI-approved *OR* FSF/Free |
| 21 | +# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF/Free |
| 22 | +# * fsf-only - The license will be approved if is FSF/Free *AND NOT* OSI-approved |
| 23 | +# * neither - The license will be denied if is FSF/Free *OR* OSI-approved |
| 24 | +allow-osi-fsf-free = "either" |
| 25 | + |
| 26 | +# The confidence threshold for detecting a license from license text. |
| 27 | +# The higher the value, the more closely the license text must be to the |
| 28 | +# canonical license text of a valid SPDX license file. |
| 29 | +# [possible values: any between 0.0 and 1.0]. |
| 30 | +confidence-threshold = 0.8 |
| 31 | + |
| 32 | +[bans] |
| 33 | +# Lint level for when multiple versions of the same crate are detected |
| 34 | +multiple-versions = "warn" |
| 35 | + |
| 36 | +# The graph highlighting used when creating dotgraphs for crates |
| 37 | +# with multiple versions |
| 38 | +# * lowest-version - The path to the lowest versioned duplicate is highlighted |
| 39 | +# * simplest-path - The path to the version with the fewest edges is highlighted |
| 40 | +# * all - Both lowest-version and simplest-path are used |
| 41 | +highlight = "all" |
| 42 | + |
| 43 | +# List of crates that are allowed. Use with care! |
| 44 | +allow = [ |
| 45 | +] |
| 46 | + |
| 47 | +# List of crates to deny |
| 48 | +deny = [ |
| 49 | + # Each entry the name of a crate and a version range. If version is |
| 50 | + # not specified, all versions will be matched. |
| 51 | +] |
| 52 | + |
| 53 | +# Certain crates/versions that will be skipped when doing duplicate detection. |
| 54 | +skip = [ |
| 55 | +] |
| 56 | + |
| 57 | +# Similarly to `skip` allows you to skip certain crates during duplicate detection, |
| 58 | +# unlike skip, it also includes the entire tree of transitive dependencies starting at |
| 59 | +# the specified crate, up to a certain depth, which is by default infinite |
| 60 | +skip-tree = [ |
| 61 | +] |
| 62 | + |
0 commit comments