pavex/blueprint/
lints.rs

1#[derive(Debug, Clone, Copy, Eq, Ord, PartialOrd, PartialEq, Hash)]
2#[non_exhaustive]
3/// Common mistakes and antipatterns that Pavex
4/// tries to catch when analysing your [`Blueprint`].
5///
6/// These issues aren't considered fatal: Pavex will still
7/// generate the server SDK code.
8///
9/// [`Blueprint`]: crate::Blueprint
10pub enum Lint {
11    /// You registered a component that's never used in the generated
12    /// server SDK code.
13    Unused,
14    /// Allow Pavex to [invoke a fallback error handler if no specific error handler is provided][1].
15    ///
16    /// [1]: https://pavex.dev/docs/guide/errors/error_handlers/#fallback-error-handler
17    ErrorFallback,
18}