diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-03-10 11:05:28 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-03-10 11:49:05 +0100 |
commit | 7022b92db47341da9e93c044666d77fce477e404 (patch) | |
tree | e950ef6150a59b818dca1c4cfb5f14b144f5589c | |
parent | 58a195dd99765d1b57dfebefb91a36c3e95d482d (diff) |
Fix: Do not check lint script path in config validation
This fix is needed because the config validation does not know whether the
config is loaded from ./ or from ../ (or way more up).
The script linter path points to a file relative to the project root, which
cannot be checked here, but only when constructing the linter command.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r-- | src/config/not_validated.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/config/not_validated.rs b/src/config/not_validated.rs index 756a15e..451a3d2 100644 --- a/src/config/not_validated.rs +++ b/src/config/not_validated.rs @@ -123,13 +123,6 @@ impl NotValidatedConfiguration { )); } - // Error if linter is not a file - if let Some(linter) = self.script_linter.as_ref() { - if !linter.is_file() { - return Err(anyhow!("Lint script is not a file: {}", linter.display())); - } - } - // Error if staging_directory is not a directory if !self.staging_directory.is_dir() { return Err(anyhow!( |