-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
SwiftLint is reporting less violations with Xcode 13.3 than with Xcode 13.2 #3975
Comments
I can confirm that the examples behave indeed differently on Intel and Arm. While both of them report the issue on Intel, only the second one causes a warning on my local M1. In the second example, Intel even reports two warnings. In other words, the test for the examples added in #3977 are successful on my local M1, while on Intel they are apparently not. The question is what the correct behavior shall actually be. In my opinion, the first example shouldn't report any issue while the second example should report one for the arguments of I'm quite lost, however, about potential reasons for the different behavior on Intel and Arm. It doesn't make any sense that the architecture has something to do with these kinds of issues. Any idea on how this can happen, @jpsim, @marcelofabri? Do you know of past similar issues? |
@SimplyDanny thanks for looking at this! I’d be surprised if this is really due to different architectures. Can you double check you’re using the same Xcode version as CI? I’ve seen sourcekit returning different data in different Swift toolchains before |
Hey @SimplyDanny, @marcelofabri thank you for looking into this.
@SimplyDanny for the question of what should be correct I agree, that the first example should not trigger a warning, so the current (Xcode 13.3) behavior is fine with me. But in general the advantages of this rule would me accept both ways. So it just was a coincidence that we switched to M1 while simultaneously updating to the latest Xcode version. My apologies for giving the wrong reason for this behavior. Xcode 13.4RC seems to be the same as Xcode 13.3. It's a bit furstrating to know that each Xcode version might change the outcome of SwiftLint, but i guess there is nothing that can be done. |
You are right. The differences are due to the Xcode versions. We also see this in the builds. Xcode 13.3.1 reports success and only 13.2.1 fails. I missed that there are tests for different versions. The changed behavior in the The initially reported differences in the |
New Issue Checklist
Describe the bug
Our development team recently moved to MacBooks with M1 chip. Although SwiftLint runs and reports most errors, the
multiline_arguments_brackets
rule doesn't seem to work the same way as on Intel MacBooks.Fine on M1, reporting warning on Intel:
Warning on both M1 and Intel:
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure): 0.47.1If so, paste their relative paths and respective contents.
xcodebuild -version
):Xcode 13.3.1
Build version 13E500a
The text was updated successfully, but these errors were encountered: