Makes sure the source code file ends with a newline character.
Apply the rule to the given source, writing violations to the given list.
sourceCode - The source to checkviolations - A list of Violations that may be added to. It can be an empty list