pub fn code_scanning_licence_refusal(
provider: Option<Provider>,
driver: Option<&str>,
shape: &CrateShape,
) -> Option<String>Expand description
Why the code scanning capability’s licence condition refuses this
target, or None where no condition applies or the licence satisfies
it.
Only codeql carries a condition: its terms cover an open-source
codebase, and a run over anything else needs a paid seat, so a landing
that guessed would write a licence violation. Semgrep CE carries none,
and is the fallback the refusal names.
The licence is read where the binding declares it. For rust that is
the license field of Cargo.toml. A manifest that names a
license-file instead states no identifier this judgment can read, so
the pair refuses rather than guessing at the file’s contents.