I have a function on Xcode (swift) that returns a very long array, that is one word per line. Like
static func en() -> [String] {
[
"a",
"about",
"above",
"after",
"again",
"against",
"all",
"am",
...
When I try to compile this I get:
Function Body Length Violation: Function body should span 40 lines or less excluding comments and whitespace: currently spans 175 lines (function_body_length)
if I try to remove the line feeds and add spaces instead I get this
Line Length Violation: Line should be 120 characters or less: currently 1492 characters (line_length)
I think the problem is SwiftLint.
How do I solve this? How do I disable this error.