Add Pallet Lint and Pallet Fmt #28
@@ -854,7 +854,7 @@ fn lint() -> std::io::Result<()> {
|
||||
let mut any_warnings = false;
|
||||
|
||||
for src in &source_files {
|
||||
println!(" {} {}", "Linting".green().bold(), src.display());
|
||||
println!(" {} {}", "Linting".green().bold(), src.display());
|
||||
|
||||
let status = Command::new("clang-tidy")
|
||||
.arg(src)
|
||||
@@ -873,9 +873,9 @@ fn lint() -> std::io::Result<()> {
|
||||
}
|
||||
|
||||
if any_warnings {
|
||||
println!("\n {} lint warnings found", "Warning".yellow().bold());
|
||||
println!("\n {} lint warnings found", "Warning".yellow().bold());
|
||||
} else {
|
||||
println!("\n {} no issues found", "Finished".green().bold());
|
||||
println!("\n {} no issues found", "Finished".green().bold());
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user