aboutsummaryrefslogtreecommitdiff
path: root/bin/src/lint.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-05-01 16:12:12 +0100
committerAkshay <[email protected]>2022-05-01 16:12:12 +0100
commit53b454cd6acba89fe6b5bb39df431afa28a6ee13 (patch)
treecd70026307c98a33c6ce25b0849d9e297e5bf842 /bin/src/lint.rs
parent448e6f2096b855bee1464c514dfb73477fb39774 (diff)
add `ignore` to statix.tomlv0.5.5
Diffstat (limited to 'bin/src/lint.rs')
-rw-r--r--bin/src/lint.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/src/lint.rs b/bin/src/lint.rs
index e1544e1..b7529ba 100644
--- a/bin/src/lint.rs
+++ b/bin/src/lint.rs
@@ -53,12 +53,14 @@ pub mod main {
53 use rayon::prelude::*; 53 use rayon::prelude::*;
54 54
55 pub fn main(check_config: CheckConfig) -> Result<(), StatixErr> { 55 pub fn main(check_config: CheckConfig) -> Result<(), StatixErr> {
56 let vfs = check_config.vfs()?;
57 let mut stdout = io::stdout();
58 let conf_file = ConfFile::discover(&check_config.conf_path)?; 56 let conf_file = ConfFile::discover(&check_config.conf_path)?;
59 let lints = conf_file.lints(); 57 let lints = conf_file.lints();
60 let version = conf_file.version()?; 58 let version = conf_file.version()?;
61 let session = SessionInfo::from_version(version); 59 let session = SessionInfo::from_version(version);
60
61 let vfs = check_config.vfs(conf_file.ignore.as_slice())?;
62
63 let mut stdout = io::stdout();
62 let lint = |vfs_entry| lint_with(vfs_entry, &lints, &session); 64 let lint = |vfs_entry| lint_with(vfs_entry, &lints, &session);
63 let results = vfs 65 let results = vfs
64 .par_iter() 66 .par_iter()