/* * WPCleaner: A tool to help on Wikipedia maintenance tasks. * Copyright (C) 2013 Nicolas Vervelle * * See README.txt file for licensing information. */ package org.wikipediacleaner.api.check.algorithm; import java.util.ArrayList; import java.util.List; import org.wikipediacleaner.api.data.PageElementTag; /** * Algorithm for analyzing error 15 of check wikipedia project. * Error 15: Code not correct end */ public class CheckErrorAlgorithm015 extends CheckErrorAlgorithmUnclosedTags { /** List of tags managed by this error. */ private final List<String> tags; public CheckErrorAlgorithm015() { super("Code not correct end"); tags = new ArrayList<String>(); tags.add(PageElementTag.TAG_HTML_CODE); } /** * @return List of tags managed by this error. */ @Override protected List<String> getTags() { return tags; } /** * @return True if full tags should be reported. */ @Override protected boolean reportFullTags() { return true; } }