SwiftLint - How to allow one line guard conditionals like this:
guard let x = true else { return false }
and keep conditional_returns_on_newline
functionality for other cases?
Edit:
As far as I know SwiftLint defines rules of violations so I have to write regex that scans lines through in search for:
if[...]{[...]}
Please be also aware of the cases like these:
if array1.sorted(by: { $0 > $1 }).first! > 0, array2.isEmpty { x = 1 }