Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找有选择地为单个文件而不是整个项目运行 Swiftlint 的方法。如何运行 swiftlint 以便它只能检查一个选定的文件?
使用--path选项运行 swiftlint ,例如:
swiftlint --path 'path to your file'