Is there a way to disable Comma Spacing Violation warnings for a single file?

I'm working on some tests and I'm aligning some parameters vertically to increase readability. This is producing some "Comma Spacing Violation... (comma)" warnings for my test file. I've tried to disable these warnings by adding the flag "-Wno-comma" to the file in my test target but no luck. Any ideas?

I think these warnings are probably coming from SwiftLint, not Swift itself. SwiftLint has many ways to disable its warnings.

1 Like

I thought so at first but it's in the build settings.

-Wno-comma disables a clang build warning for possible misuse of the comma operator in C-family languages.

1 Like