Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several reported in config file doesn't work properly #3219

Closed
denysvarchenko opened this issue May 29, 2020 · 2 comments
Closed

Several reported in config file doesn't work properly #3219

denysvarchenko opened this issue May 29, 2020 · 2 comments

Comments

@denysvarchenko
Copy link

Hello,
I have the latest SwiftLint version and tried to find the bug on the Issues section

Describe the bug

I have config file where I would like to have two reporters:

  • Xcode
  • csv

My config file looks like this:
reporter: - "xcode" # reporter type (xcode, json, csv, checkstyle, junit, html, emoji, sonarqube, markdown) - "csv"
But the csv file is not generated. Also I would like to specify file name, which is possible to do in Teminal.

How can I have to reporters working via config file or at least with Run Script like this?

# Type a script or drag a script file from your workspace to insert its path.
"${PODS_ROOT}/SwiftLint/swiftlint" --reporter csv > swiftlint-report.csv

@marcelofabri
Copy link
Collaborator

Right now SwiftLint only supports using one reporter at a time. If you need multiple ones, you can run SwiftLint multiple times which should be too bad since we have caching (although not ideal).

@marcelofabri
Copy link
Collaborator

Closing this because adding support to multiple reporters is already tracked in #1227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants