Class ScanResult

    • Method Detail

      • isPassedWithNoWarnings

        public boolean isPassedWithNoWarnings()
        Determine if the result is passed, AND has no warnings
        Returns:
        true if passed and has no warnings, false otherwise
      • passed

        public static ScanResult passed()
        Constructs a "passed" instance of ScanResult
        Returns:
        the scan result
      • reduce

        public static ScanResult reduce​(ScanResult one,
                                        ScanResult two)
        Reduce two ScanResults into one
        Parameters:
        one - the first scan result
        two - the second scan result
        Returns:
        the reduced scan result
      • isPassed

        public boolean isPassed()
        Whether or not the scan passed
      • getErrorCount

        public int getErrorCount()
        The number of errors encountered during the scan
      • getWarningCount

        public int getWarningCount()
        The number of warnings encountered during the scan
      • getFormattedMessages

        public Collection<String> getFormattedMessages()
        Messages formatted for reporting Format: [SEVERITY] repositoryFilePath :: message
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object