-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Linting swift code does not work. Error: No lintable files found at paths: '/tmp/lint' #440
Comments
Is there anyone able to help with this? |
@r3econ I can, but i have a lot of work for the job i'm actually paid for, but I promise I'll try to solve that in y available free time :) |
I could also try to solve it but I'd need some hints. Do you know what is causing the problem there, where to start looking?. |
You could try to replace --fix by autocorrect in the swift descriptor cli_lint_fix_arg, maybe it would solve the issue |
@r3econ i made the update I suggested, the test case passes, but please you check if it works with latest/insiders version ? ( not V4) and close the issue if it is fixed ? |
Thanks a lot! I tested, changed the action invocation in the workflow to use the latest tag like in the screenshot below. However, I'm still getting the same error Contents of
|
To be honest, switft linting has been tested only from Mega-Linter test cases, so the error you see is probably a real bug and not a mistake from you Do you have a public repo where I could reproduce the problem ? |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
not stale |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
@nvuillam this is still happening. I believe the problem is with the paths: |
Any suggestion around this? :) |
It seems that swiftlint is the weak spot of MegaLinter... it indeed needs to be repaired, I'll try to succeed that someday:) |
I just made an attempt... let's see what CI says ^^ |
Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. oxsecurity/megalinter#440
Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. oxsecurity/megalinter#440
Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. oxsecurity/megalinter#440 Fixes ATL-1640
Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. oxsecurity/megalinter#440 Fixes ATL-1640
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
This isn't stale and is still currently happening. |
Reopened.... any help will be appreciated :) |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. oxsecurity/megalinter#440 Fixes ATL-1640 Signed-off-by: goncalo-frade-iohk <[email protected]>
@Noraldeno , as @echoix suggested, we would love you to make a new PR with the fixes, as non of us maintainers have experience with swift :) |
@nvuillam. Yeap! I'll open a new PR. Thx! |
- Update swiftlint documentation - Update to use swiftlint's Docker image Fixes oxsecurity#440
- Update swiftlint documentation - Update to use swiftlint's Docker image Fixes oxsecurity#440
- Update swiftlint documentation - Update to use swiftlint's Docker image - Add "lintable" to cspell exclusion Fixes oxsecurity#440
@echoix This issue is still occurring in the beta image. Here is a sample action run using swiftlint's docker: https://github.com/Noraldeno/My-Sample-iOS/actions/runs/12509434367/job/34898863086#step:3:1 Action run using Megalinter beta image that includes the fixes I made: Could you point me to where else I can look at in the code to fix the issue? Maybe it has to do with how the volume is mounted in the docker container. I can continue to look into it. |
Describe the bug
Linting swift code does not work. The error appears:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
swift-lint
starts linting the code base.Screenshots
ERROR-SWIFT_SWIFTLINT.log
.swiftlint.yml
The text was updated successfully, but these errors were encountered: