pub struct ClippyArgs {
pub features: Option<String>,
pub github_report: bool,
pub diff_branch: Option<String>,
pub save_json: Option<PathBuf>,
}Expand description
Arguments for cargo xtask clippy.
Fields§
§features: Option<String>Run only the named feature combination (e.g. "test + otel").
When omitted, all matrix entries are checked in sequence.
github_report: boolPipe clippy JSON output through reviewdog.
Without --diff-branch, uses github-pr-review reporter (CI mode):
reviewdog fetches the PR diff from the GitHub API and posts inline
review comments. Requires REVIEWDOG_GITHUB_API_TOKEN.
With --diff-branch, uses local reporter (local dev mode):
reviewdog diffs against the given branch and prints findings to the
terminal.
diff_branch: Option<String>Branch to diff against when running reviewdog locally.
When set, reviewdog uses git diff <branch> as the diff source and
the local reporter instead of posting GitHub review comments.
Typically set to master.
save_json: Option<PathBuf>Write raw clippy JSON lines to this file instead of linting or reporting.
Skips -D warnings and reviewdog. The file is created (or truncated)
and each JSON line emitted by cargo clippy --message-format=json is
written verbatim. Used by CI to collect per-label artifacts for
cargo xtask ci clippy-report.
Trait Implementations§
Source§impl Args for ClippyArgs
impl Args for ClippyArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl Debug for ClippyArgs
impl Debug for ClippyArgs
Source§impl FromArgMatches for ClippyArgs
impl FromArgMatches for ClippyArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.