{
final File javaFile = new File( file.getFilePath() ); // NOPMD
final List< IFlexViolation > violations = pmd.getViolations().get( file );
reportSink.beginFile( javaFile,
new PmdFileInfo( project, javaFile.getParentFile(), "" ) ); // NOPMD
ruleContext.setSourceCodeFilename( file.getPackageName()
+ "." + file.getClassName() );
for ( final IFlexViolation violation : violations )
{