Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void decorate(Resource resource, DecoratorContext context) {
- if(Qualifiers.isFile(resource)){
- Measure m=context.getMeasure(CoreMetrics.NCLOC);
- LOG.info("Decorator File NCLOC: "+m.getValue()); //Prints the number of lines in the current file.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement