Skip to content
ptittof57 edited this page Aug 15, 2015 · 3 revisions
<title>SA1517: CodeMustNotContainBlankLinesAtStartOfFile</title> <script src="script/helpstudio.js" type="text/javascript"></script> <script src="script/StandardText.js" type="text/jscript"></script>
<script type="text/jscript">WritePageTop(document.title);</script>

TypeName

CodeMustNotContainBlankLinesAtStartOfFile

CheckId

SA1517

Category

Layout Rules

Cause

The code file has blank lines at the start.

Rule Description

To improve the layout of the code, StyleCop requires no blank lines at the start of files.

A violation of this rule occurs when one or more blank lines are at the start of the file.

How to Fix Violations

To fix a violation of this rule, remove the blank lines from the start of the file.

How to Suppress Violations

[SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1517:CodeMustNotContainBlankLinesAtStartOfFile", Justification = "Reviewed.")]
Clone this wiki locally