Skip to content

Commit e4b0a08

Browse files
authored
test(forge): solar test runner (#2)
1 parent 043e535 commit e4b0a08

33 files changed

+736
-289
lines changed

Cargo.lock

+149-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/forge/src/cmd/lint.rs

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ pub struct LintArgs {
3333
/// `exclude_lints` project config.
3434
#[arg(long = "only-lint", value_name = "LINT_ID", num_args(1..))]
3535
lint: Option<Vec<String>>,
36+
37+
/// Activates the linter's JSON formatter (rustc-compatible).
38+
#[arg(long)]
39+
json: bool,
3640
}
3741

3842
impl_figment_convert_basic!(LintArgs);
@@ -99,6 +103,7 @@ impl LintArgs {
99103

100104
if project.compiler.solc.is_some() {
101105
let linter = SolidityLinter::new()
106+
.with_json_emitter(self.json)
102107
.with_description(true)
103108
.with_lints(include)
104109
.without_lints(exclude)

0 commit comments

Comments
 (0)