 //  Copyright © 2017 Realm. All rights reserved.
 //
 
+import Foundation
 import SourceKittenFramework
 
 public struct ShorthandOperatorRule: ConfigurationProviderRule {

                groupIndexes = [2, 3]
            }

            for idx in groupIndexes where kindsInCaptureGroups[idx] != [.identifier] {
                return nil
            }

            return StyleViolation(ruleDescription: type(of: self).description,
                                  severity: configuration.severity,
                                  location: Location(file: file, characterOffset: match.range.location))
        }
    }
}

                "↓foo = 1 \(operation) foo\n",
                "↓foo = aVariable \(operation) foo\n",
                "↓foo = bar.method() \(operation) foo\n",
                "↓foo = bar.method(param: 1, otherParam: 2) \(operation) foo\n",
                "↓foo.aProperty = foo.aProperty \(operation) 1\n",
                "↓self.aProperty = self.aProperty \(operation) 1\n"
            ]
        }
    )
