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

ERROR: Failed to parse SwiftLint report file #286

Open
4 tasks done
fooshi69 opened this issue Mar 12, 2021 · 0 comments
Open
4 tasks done

ERROR: Failed to parse SwiftLint report file #286

fooshi69 opened this issue Mar 12, 2021 · 0 comments

Comments

@fooshi69
Copy link

New Issue Checklist

Issue Description

Hi, I have a problem with swiftlint. I use Fastlane.
Here is my lane :

swiftlint(
      path: "../",
      output_file: "reports/swiftlint.txt",
      ignore_exit_status: true,
      config_file: "../.swiftlint.yml"
    )
    
    sonar

My Fastfile is placed in the /ci folder. Then the swiftlint.txt is situated in the ci/reports/ folder.

A extract of my swiftlint.txt :

/Users/user/Documents/Man/man/Models/MPKeyConstant.swift:10:1: warning: Type Body Length Violation: Type body should span 300 lines or less excluding comments and whitespace: currently spans 353 lines (type_body_length)
/Users/user/Documents/Man/man/Pods/JTAppleCalendar/Sources/JTAppleCalendarView.swift:110:28: warning: Colon Violation: Colons should be next to the identifier when specifying a type and next to the key in dictionary literals. (colon)
...

When i launch the lane, i have the error :

ERROR: Failed to parse SwiftLint report file
[12:16:20]: ▸ java.nio.file.NoSuchFileException: ci/reports/swiftlint.txt

I don't know why because my sonar-project.properties seems to be correct.

# Path to source directories 
sonar.projectBaseDir=../
sonar.sources=.
sonar.swift.swiftlint.report=ci/reports/*swiftlint.txt

Thank you for your help

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

1 participant