Skip to content

Commit b2f7371

Browse files
authored
Merge pull request #131 from arduino/per1234/project-separator
Add separators between the text output for each project
2 parents 6a36229 + bf610f2 commit b2f7371

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: internal/command/command.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ func ArduinoLint(rootCommand *cobra.Command, cliArguments []string) {
8080

8181
// Print the project rule results summary.
8282
feedback.Printf("\n%s\n", result.Results.ProjectSummaryText(project))
83+
feedback.Print("\n-------------------\n\n")
8384
}
8485

8586
// All projects have been linted, so summarize their rule results in the report.
@@ -88,7 +89,7 @@ func ArduinoLint(rootCommand *cobra.Command, cliArguments []string) {
8889
if configuration.OutputFormat() == outputformat.Text {
8990
if len(projects) > 1 {
9091
// There are multiple projects, print the summary of rule results for all projects.
91-
fmt.Printf("\n%s\n", result.Results.SummaryText())
92+
fmt.Println(result.Results.SummaryText())
9293
}
9394
} else {
9495
// Print the complete JSON formatted report.

Diff for: internal/rule/rule.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232

3333
// Runner runs all rules for the given project and outputs the results.
3434
func Runner(project project.Type) {
35-
feedback.Printf("\nLinting %s in %s\n", project.ProjectType, project.Path)
35+
feedback.Printf("Linting %s in %s\n", project.ProjectType, project.Path)
3636

3737
projectdata.Initialize(project)
3838

0 commit comments

Comments
 (0)