Swift lint - Custom rule accessing array

I want to add a custom rule in swiftlint.yml. I have researched and found that It can be done using regex.
Direct array element access is danger and can lead to a crash in case of index is out of range error. Prefer to use array extension to get array element, there is safe subscript for arrays which returns optional and never lead to a crash.
// WRONG, can lead to a crash
let a = array[1]

// RIGHT, returns nil in case array is empty or less than requested index
if let a = array[safe: 1] {
print(a)
}
So, what is the question ?
Swift lint - Custom rule accessing array
 
 
Q