Class RegexpSinglelineCheck

    • Constructor Detail

      • RegexpSinglelineCheck

        public RegexpSinglelineCheck()
    • Method Detail

      • processFiltered

        protected void processFiltered​(java.io.File file,
                                       FileText fileText)
        Description copied from class: AbstractFileSetCheck
        Called to process a file that matches the specified file extensions.
        Specified by:
        processFiltered in class AbstractFileSetCheck
        Parameters:
        file - the file to be processed
        fileText - the contents of the file.
      • setFormat

        public void setFormat​(java.lang.String format)
        Set the format of the regular expression to match.
        Parameters:
        format - the format of the regular expression to match.
      • setMessage

        public void setMessage​(java.lang.String message)
        Set the message to report for a match.
        Parameters:
        message - the message to report for a match.
      • setMinimum

        public void setMinimum​(int minimum)
        Set the minimum number of matches required per file.
        Parameters:
        minimum - the minimum number of matches required per file.
      • setMaximum

        public void setMaximum​(int maximum)
        Set the maximum number of matches required per file.
        Parameters:
        maximum - the maximum number of matches required per file.
      • setIgnoreCase

        public void setIgnoreCase​(boolean ignoreCase)
        Set whether to ignore case when matching.
        Parameters:
        ignoreCase - whether to ignore case when matching.