Is it possible to make fixable errors/warnings with SwiftLint?

I’m using SwiftLint to make custom errors and warnings and it’s working well.

However, I want to add a "fix" button to the warnings and errors just like with standard Xcode errors and warnings.

Xcode already does this for the internal warnings/errors, like this:

enter image description here

Here’s what my current custom warning looks like:

enter image description here

I’ve scoured through the documentation, tutorials, etc. and also opened an issue here:

https://github.com/realm/SwiftLint/issues/3315

I don’t think it exists with SwiftLint, but I’d love to know if anybody can be prove me wrong or know of a better alternative!

P.S. Here’s a link to their repo: https://github.com/realm/SwiftLint

Asked on September 1, 2020 in iOS,   Swift.
Add Comment
1 Answer(s)

Answered here by SwiftLint owners: https://github.com/realm/SwiftLint/issues/3315

Answered on September 1, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.