Class AnalyzeResult


  • public final class AnalyzeResult
    extends Object
    Final result of analyzing the code base for banned imports.
    • Method Detail

      • getSrcMatches

        public List<MatchedFile> getSrcMatches()
        Contains all the matches that were found within the analyzed compile source files.
        Returns:
        The list of found banned imports.
      • getTestMatches

        public List<MatchedFile> getTestMatches()
        Contains all the matches that were found within the analyzed test source files.
        Returns:
        The list of found banned imports.
      • bannedImportsOrWarningsFound

        public boolean bannedImportsOrWarningsFound()
        Returns wheter either a warning or a banned import has been found in any source root
        Returns:
        Whether any reportable results where detected.
        Since:
        2.2.0
      • bannedImportsFound

        public boolean bannedImportsFound()
        Returns whether at least one banned import has been found within the analyzed compile OR test source files.
        Returns:
        Whether a banned import has been found.
      • bannedImportsInCompileCode

        public boolean bannedImportsInCompileCode()
        Returns whether at least one banned import has been found within the analyzed compile source code.
        Returns:
        Whether a banned import has been found.
      • bannedImportsInTestCode

        public boolean bannedImportsInTestCode()
        Returns whether at least one banned import has been found within the analyzed test source code.
        Returns:
        Whether a banned import has been found.
      • warningsFoundInCompileCode

        public boolean warningsFoundInCompileCode()
        Returns:
        Whether warnings were detected while analysing compile code.
        Since:
        2.2.0
      • warningsFoundInTestCode

        public boolean warningsFoundInTestCode()
        Returns:
        Whether warnings were detected while analysing test code.
        Since:
        2.2.0
      • duration

        public Duration duration()
        How long the analysis took, in ms.
        Returns:
        Analysis duration in ms.
      • analysedFiles

        public int analysedFiles()
        The number of files that have been analysed.
        Returns:
        Number of files.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object