Class MinificationAssessor


  • public class MinificationAssessor
    extends Object
    An object to assess if a .js file is a minified file or not.

    An instance of this class is likely to consider as minified a .js file that, although formally not minified, has an unusually high average line length. This situation is typical of files that have been generated by some tool. Such files are of poor interest as regards a SonarQube analysis.

    • Constructor Detail

      • MinificationAssessor

        public MinificationAssessor()
      • MinificationAssessor

        public MinificationAssessor​(int averageLineLengthThreshold)
    • Method Detail

      • isMinified

        public boolean isMinified​(org.sonar.api.batch.fs.InputFile file)