Class MinificationAssessor
- java.lang.Object
-
- org.sonar.plugins.javascript.minify.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 Summary
Constructors Constructor Description MinificationAssessor()
MinificationAssessor(int averageLineLengthThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMinified(org.sonar.api.batch.fs.InputFile file)
-