*/
@Override
protected final List< IFlexViolation > findViolationsInCurrentFile()
{
final List< IFlexViolation > violations = new ArrayList< IFlexViolation >();
final IFlexFile currentFile = getCurrentFile();
if ( currentFile.getLinesNb() == 1 )
{
addViolation( violations );
}
else if ( currentFile.getLinesNb() > 1 )
{
final String commentOpeningTag = currentFile.getCommentOpeningTag();
final String firstLine = currentFile.getLineAt( 1 );
final String secondLine = currentFile.getLineAt( 2 );
if ( !firstLine.startsWith( commentOpeningTag )
&& !( currentFile instanceof IMxmlFile && secondLine.contains( commentOpeningTag ) )
&& !( currentFile instanceof IAs3File && firstLine.contains( currentFile.getSingleLineComment() ) ) )
{
addViolation( violations );
}
}