Class RegexpSinglelineCheck

    • Field Detail

      • format

        private java.lang.String format
        The format of the regular expression to match.
      • message

        private java.lang.String message
        The message to report for a match.
      • minimum

        private int minimum
        The minimum number of matches required per file.
      • maximum

        private int maximum
        The maximum number of matches required per file.
      • ignoreCase

        private boolean ignoreCase
        Whether to ignore case when matching.
    • Constructor Detail

      • RegexpSinglelineCheck

        public RegexpSinglelineCheck()
    • Method Detail

      • processFiltered

        protected void processFiltered​(java.io.File file,
                                       java.util.List<java.lang.String> lines)
        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
        lines - an immutable list of 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.