We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7987e commit 7722419Copy full SHA for 7722419
crates/forge/src/cmd/build.rs
@@ -112,12 +112,8 @@ impl BuildArgs {
112
sh_println!("{}", serde_json::to_string_pretty(&output.output())?)?;
113
}
114
115
- if !config.lint.lint_on_build {
116
- return Ok(output);
117
- }
118
-
119
- // Only run the `SolidityLinter` if there are no compilation errors
120
- if !output.output().errors.iter().any(|e| e.is_error()) {
+ // Only run the `SolidityLinter` if lint on build and no compilation errors.
+ if config.lint.lint_on_build && !output.output().errors.iter().any(|e| e.is_error()) {
121
self.lint(&project, &config, self.paths.as_deref())
122
.map_err(|err| eyre!("Lint failed: {err}"))?;
123
0 commit comments