#swiftlint — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #swiftlint, aggregated by home.social.
-
Как укротить SwiftLint в масштабах компании
Всем привет! Меня зовут Артём Вичужанин. В разработке я больше пяти лет: начинал с десктопных приложений на Delphi и микропрограмм для контроллеров на C++, позже ушел в мобильную разработку. Сейчас в Naumen я отвечаю за разработку мобильных продуктов, и в рамках проектов регулярно сталкиваюсь с вопросами качества кода и автоматизации. Именно в корпоративной разработке особенно остро чувствуется: чем больше проектов и команд, тем сложнее удерживать единый стиль кода. В этой статье я делюсь опытом настройки SwiftLint сразу для нескольких репозиториев — так, чтобы кодстайл оставался единым и не расползался со временем.
https://habr.com/ru/companies/naumen/articles/981474/
#SwiftLint #кодстайл #линтер #Swift #iOS_разработка #качество_кода #статический_анализ_кода
-
@mattiem Version 0.62.2 containing the new rule has just been released.
-
The hardest part of implementing autocorrection for SwiftLint rules is not the fix itself, but the right handling of whitespace and comments.
-
Using #SwiftLint's Swift Package Manager plugins directly can cause dependency conflicts and extended compile times.
Therefore, I recommend to pull the plugins from https://github.com/SimplyDanny/SwiftLintPlugins instead.
Among others things, this resolves the previously mentioned problems due to the limited scope of the dedicated Swift package.
All the code in the plugin repository will stay in sync with the main #SwiftLint repository and so will the releases.
Enjoy linting! 🧹
-
Lazyweb: is there a way I can get custom non-regex rules in swiftlint without having to use bazel? Bringing in bazel is a pretty big deal just for custom linting rules.
I’m also open suggestions for non-swiftlint tools that let me do this. I just want context-aware linting rules.
-
#swiftlint can be a great tool, but it's a bit of a tyrant when I am just doing dev iterations.
It should really only be used for pull requests. -
Go checkout my SPM plugin for #SwiftLint