How do I use swiftlint to lint a single file?
To lint multiple files at once :
$ swiftlint -- file1.swift file2.swift
SCRIPT_INPUT_FILE_COUNT=1 SCRIPT_INPUT_FILE_0="foo.swift" swiftlint lint --use-script-input-files
You can also do this with:
swiftlint --path 'path to your file'