         for line in file.lines {
             let correctedLine = (line.content as NSString)
                 .stringByTrimmingTrailingCharactersInSet(whitespaceCharacterSet)
+
+            if configuration.ignoresEmptyLines && correctedLine.characters.isEmpty {
+                correctedLines.append(line.content)
+                continue
+            }
+
             let region = fileRegions.filter {
                 $0.contains(Location(file: file.path, line: line.index, character: 0))
             }.first

                correctedLines.append(line.content)
                continue
            }
            if line.content != correctedLine {
                let description = self.dynamicType.description
                let location = Location(file: file.path, line: line.index)

import Foundation
import SourceKittenFramework

public struct TrailingWhitespaceRule: CorrectableRule, ConfigurationProviderRule, SourceKitFreeRule {

    public var configuration = TrailingWhitespaceConfiguration(ignoresEmptyLines: false)

    public init() {}

