pub struct SourceOptions {
pub extensions: Vec<String>,
pub repo_root: String,
pub lines_changed_only: LinesChangedOnly,
pub files_changed_only: bool,
pub ignore: Vec<String>,
}Fields§
§extensions: Vec<String>A comma-separated list of file extensions to analyze.
repo_root: StringThe relative path to the repository root directory.
This path is relative to the runner’s GITHUB_WORKSPACE
environment variable (or the current working directory if
not using a CI runner).
lines_changed_only: LinesChangedOnlyThis controls what part of the files are analyzed.
files_changed_only: boolSet this option to false to analyze any source files in the repo.
This is automatically enabled if
--lines-changed-only is enabled.
[!NOTE] The
GITHUB_TOKENshould be supplied when running on a private repository with this option enabled, otherwise the runner does not not have the privilege to list the changed files for an event.
ignore: Vec<String>Set this option with path(s) to ignore (or not ignore).
- In the case of multiple paths, you can use
|to separate each path. - There is no need to use
./for each entry; a blank string ('') represents the repo-root path. - This can also have files, but the file’s path (relative to
the
--repo-root) has to be specified with the filename. - Submodules are automatically ignored. Hidden directories (beginning
with a
.) are also ignored automatically. - Prefix a path with
!to explicitly not ignore it. This can be applied to a submodule’s path (if desired) but not hidden directories. - Glob patterns are supported here. Path separators in glob patterns should
use
/because\represents an escaped literal.
Trait Implementations§
Source§impl Args for SourceOptions
impl Args for SourceOptions
Source§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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for SourceOptions
impl Clone for SourceOptions
Source§fn clone(&self) -> SourceOptions
fn clone(&self) -> SourceOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceOptions
impl Debug for SourceOptions
Source§impl FromArgMatches for SourceOptions
impl FromArgMatches for SourceOptions
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SourceOptions
impl RefUnwindSafe for SourceOptions
impl Send for SourceOptions
impl Sync for SourceOptions
impl Unpin for SourceOptions
impl UnwindSafe for SourceOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more