<commit_before>package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.Descriptor;
import hudson.model.Item;
import hudson.model.Project;
import hudson.tasks.JavadocArchiver;
import hudson.tasks.Publisher;
import hudson.util.DescribableList;
import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck;

/**
 * @author <NAME>
 */
public class JavadocChecker extends AbstractCheck{

    public JavadocChecker() {
        super();
        this.setDescription(Messages.JavadocCheckerDesc());
        this.setSeverity(Messages.JavadocCheckerSeverity());
    }

    public boolean executeCheck(Item item) {
        if (item instanceof Project) {
            DescribableList<Publisher, Descriptor<Publisher>> publishersList = ((Project) item).getPublishersList();
            for (Publisher publisher : publishersList) {<commit_msg>[JENKINS-42310] Javadoc Lint defect support Maven and Matrix projects<commit_after>package org.jenkins.ci.plugins.jenkinslint.check;

import hudson.model.AbstractProject;
import hudson.model.Descriptor;
import hudson.model.Item;
import hudson.tasks.JavadocArchiver;
import hudson.tasks.Publisher;
import hudson.util.DescribableList;
import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck;

/**
 * @author <NAME>
 */
public class JavadocChecker extends AbstractCheck{

    public JavadocChecker() {
        super();
        this.setDescription(Messages.JavadocCheckerDesc());
        this.setSeverity(Messages.JavadocCheckerSeverity());
    }

    public boolean executeCheck(Item item) {
        if (item instanceof AbstractProject) {
            DescribableList<Publisher, Descriptor<Publisher>> publishersList = ((AbstractProject) item).getPublishersList();
            for (Publisher publisher : publishersList) {
{'fraction_non_alphanumeric': 0.10249150622876557, 'fraction_numerical': 0.0028312570781426952, 'mean_word_length': 4.420245398773006, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '535570', 'n_tokens_mistral': 550, 'n_tokens_neox': 504, 'n_words': 98}