-
Notifications
You must be signed in to change notification settings - Fork 80
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
danger-swiftlint doesn't warn, while SwiftLint itself does #48
Comments
Hmm, that's an odd one. Sorry you're experiencing this problem. I agree CocoaPods doesn't seem like a likely source of the problem. I'm not sure what's going on here – I'll try to take a look this weekend. If you could reproduce the problem in a test project, that would make debugging the issue a lot easier. Let me know if you make any progress! |
Thanks for the reply @ashfurrow :) I'll try digging into it this weekend as well and provide some more feedback |
I am having this issue as well. In my case I am using multiple |
Could this be related to #49? |
I am not getting any error when running swiflint but seems like when running |
Still couldn't dive much into this as i'm swamped with work but noticed much of this in my PR logs which is interesting 🤔 It seems as if it's using the swift filenames as folders for some odd reason ... Also wondering on why it's using @marcelofabri 's user folder... ❓
|
That's just a side effect on how Note that it's only the path for the Swift file where the This can be related to #49. I recommend you to update SwiftLint to 0.21.0. |
Any news on this? swiftlint 0.22.0, still not working |
Hey, sorry no updates. It would be really helpful if anyone were able to put together a sample project demonstrating the problem, so we can reproduce and debug. |
Will try to create a sample repo asap |
Take a look at Sega-Zero/danger-sample#1 warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
message("Started linting a PR " + github.pr_title)
system("./project/Pods/SwiftLint/swiftlint --strict --quiet --config .swiftlint.yml --path ./project/" )
fail("Linting failed") if $?.exitstatus != 0
message("I'm done with this PR") |
Okay, thanks! I've used your project to reproduce the bug – I think it's related to the config file paths not being expanded properly. I've fixed the bug and introduced a new verbose logging mode in #60, which has been released as |
hey @ashfurrow I was taking a look at @Sega-Zero's code snippet from Oct 7 while I was trying to debug something with But when I run danger-swiftlint it only lints modified/added files for the PR. My Dangerfile looks like this:
Is there a way for danger-swiftlint to show all outstanding warnings in my project on every PR - not just the files I touched? (I did try adding the (Using danger-swiftlint (0.11.0) and SwiftLint 0.24.0) |
@heidiproske, @ashfurrow answered the same question from me. |
This seems to have been fixed with #60 |
This is not really fixed, but explained in the link I mentioned above. It is by design. |
I'm not sure if this is some misconfiguration (mainly due to the fact there's barely any configuration around danger-swiftlint... )
But when SwiftLint runs by itself, i see specifically
But when danger-swiftlint runs in my CI (Buddybuild), it doesn't warn for some odd reason
But no specific warnings related to SwiftLint, and I'm not exactly sure why or if I'm missing something.
Gemfile only has danger and danger-swiftlint
The portion of
Dangerfile
related to SwiftLint is:I'm wondering if this is related to the fact I'm using a pinned version with CocoaPods, but I don't see why that would be an issue 🤔
Appreciate any help on this :)
The text was updated successfully, but these errors were encountered: