diff --git a/Cargo.lock b/Cargo.lock index 27b3446..52f5ead 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -726,7 +726,7 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "scopelint" -version = "0.1.0" +version = "0.2.0" dependencies = [ "clap", "colored", diff --git a/Cargo.toml b/Cargo.toml index ff446d1..6e7b5d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" repository = "https://github.com/ScopeLift/scopelint" homepage = "https://github.com/ScopeLift/scopelint" - version = "0.1.0" + version = "0.2.0" [dependencies] clap = { version = "4.4.2", features = ["derive"] } @@ -20,4 +20,4 @@ solang-parser = "0.3.2" taplo = "0.13.0" toml = "0.8" - walkdir = "2.3.2" \ No newline at end of file + walkdir = "2.3.2" diff --git a/src/check/file_config.rs b/src/check/file_config.rs index 0dd53c6..4c37c30 100644 --- a/src/check/file_config.rs +++ b/src/check/file_config.rs @@ -241,6 +241,6 @@ files = ["src/legacy.sol", "test/integration/*.sol"] fn test_parse_empty_config() { let config = FileConfig::from_toml("").unwrap(); assert!(!config.is_file_ignored(Path::new("src/test.sol"))); - assert!(config.get_ignored_rules(Path::new("src/test.sol")).is_empty()); + assert_eq!(config.get_ignored_rules(Path::new("src/test.sol")), Vec::new()); } }