SwiftLint - being able to exclude files in the config #29
wojciech-kulik
announced in
Tips & Tricks
Replies: 1 comment
-
This configuration has been built into To use it you just need to declare lint.linters_by_ft = {
swift = { "swiftlint" },
} and optionally the autocmd mentioned above. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you want to be able to exclude some paths/files in your SwiftLint config, you can't use
stdin
mode that works live on your buffer. Instead, you have to rely on passing the file path to SwiftLint (so that it can exclude it).Here is a sample configuration for
nvim-lint
plugin:However, this way you lose live linting, so you need to trigger it either manually or on some event. I prefer the automatic way:
Beta Was this translation helpful? Give feedback.
All reactions