Groovy Documentation

groovy.org.codenarc.rule.security
[Groovy] Class FileCreateTempFileRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.security.FileCreateTempFileRule

class FileCreateTempFileRule
extends AbstractAstVisitorRule

The File.createTempFile() method is insecure, and has been deprecated by the ESAPI secure coding library. It has been replaced by the ESAPI Randomizer.getRandomFilename(String) method. By default, this rule does not apply to test files.

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

String doNotApplyToFilesMatching

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


doNotApplyToFilesMatching

String doNotApplyToFilesMatching


name

String name


priority

int priority


 

Groovy Documentation