         return [range]
     }
 
-    private func violationRangesInFile(
-        file: File,
-        dictionary: [String: SourceKitRepresentable]) -> [NSRange] {
+    private func violationRangesInFile(file: File,
+                                       dictionary: [String: SourceKitRepresentable]) -> [NSRange] {
         let substructure = dictionary["key.substructure"] as? [SourceKitRepresentable] ?? []
         return substructure.flatMap { subItem -> [NSRange] in
             guard let subDict = subItem as? [String: SourceKitRepresentable],


    private let initializerWithType = regex("^[A-Z].*\\.init$")

    private func violationRangesInFile(
        file: File,
        kind: ExplicitInitRule.Kind,
        dictionary: [String: SourceKitRepresentable]) -> [NSRange] {

        func isExpected(name: String) -> Bool {
            let range = NSRange(location: 0, length: name.utf16.count)
            return !["super.init", "self.init"].contains(name)

                kind = ExplicitInitRule.Kind(rawValue: kindString) else {
                    return []
            }
            return self.violationRangesInFile(file, dictionary: subDict) +
                self.violationRangesInFile(file, kind: kind, dictionary: subDict)
        }
    }

