pub struct PicklsLanguageConfig {
pub root_markers: Vec<String>,
pub linters: Vec<PicklsLinterConfig>,
pub formatters: Vec<PicklsFormatterConfig>,
}Fields§
§root_markers: Vec<String>A list of pathnames that indicate the root directory in relation to a file being processed. pickls will use the first directory containing one of these files as the root directory. The associated linter or formatter will be run with its working directory set to this directory. (ie: pyproject.toml, setup.py, Cargo.toml, go.mod, Makefile, etc…)
linters: Vec<PicklsLinterConfig>All the linters you’d like to run on this language. Each linter runs in a subprocess group.
formatters: Vec<PicklsFormatterConfig>All the formatters you’d like to run (in order) on this language. Note that you’ll need to configure your editor to invoke its LSP client to cause formatting to occur. Successive formatters that set use_stdin will have chained pipes from stdout to stdin to eliminate extra copies.
Trait Implementations§
Source§impl Clone for PicklsLanguageConfig
impl Clone for PicklsLanguageConfig
Source§fn clone(&self) -> PicklsLanguageConfig
fn clone(&self) -> PicklsLanguageConfig
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 PicklsLanguageConfig
impl Debug for PicklsLanguageConfig
Source§impl Default for PicklsLanguageConfig
impl Default for PicklsLanguageConfig
Source§fn default() -> PicklsLanguageConfig
fn default() -> PicklsLanguageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PicklsLanguageConfig
impl<'de> Deserialize<'de> for PicklsLanguageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PicklsLanguageConfig
impl RefUnwindSafe for PicklsLanguageConfig
impl Send for PicklsLanguageConfig
impl Sync for PicklsLanguageConfig
impl Unpin for PicklsLanguageConfig
impl UnwindSafe for PicklsLanguageConfig
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