TypeName | SA1518UseLineEndingsCorrectlyAtEndOfFile |
CheckId | SA1518 |
Category | Layout Rules |
The line endings at the end of a file do not match the settings for the project.
To improve the layout of the code, StyleCop requires line endings to be consistent at the end of files. The specific requirements for a project may be configured using stylecop.json. See Configuration.md for more information.
The specific settings is one of the following:
- Allow (default): Files are allowed to end with a single newline character, but it is not required
- Require: Files are required to end with a single newline character
- Omit: Files may not end with a newline character
To fix a violation of this rule, update the line endings at the end of the file to match the settings for the current project.
[SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1518:CodeMustNotContainBlankLinesAtEndOfFile", Justification = "Reviewed.")]
#pragma warning disable SA1518 // CodeMustNotContainBlankLinesAtEndOfFile
#pragma warning restore SA1518 // CodeMustNotContainBlankLinesAtEndOfFile