I suggest you read the documentation :
Configure SwiftLint by adding the .swiftlint.yml file from the directory from which you will run SwiftLint.
I would suggest your project or source root.
The following is an extensive example file; start from there.
Regarding the available rules and defaults, there seems to be no good documentation other than running
swiftlint rules> swiftlint_rules.txt
and have a very wide screen.
source share