/
CheckErrorAlgorithm013.java
46 lines (37 loc) · 1.17 KB
/
CheckErrorAlgorithm013.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* 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.a0xx.a01x.a013;
import java.util.Collections;
import java.util.List;
import org.wikipediacleaner.api.check.algorithm.CheckErrorAlgorithmUnclosedTags;
import org.wikipediacleaner.api.data.contents.tag.TagType;
import org.wikipediacleaner.api.data.contents.tag.WikiTagType;
/**
* Algorithm for analyzing error 13 of check wikipedia project.
* Error 13: Math not correct end
*/
public class CheckErrorAlgorithm013 extends CheckErrorAlgorithmUnclosedTags {
/** List of tags managed by this error. */
private static final List<TagType> TAGS = Collections.singletonList(WikiTagType.MATH);
public CheckErrorAlgorithm013() {
super("Math not correct end");
}
/**
* @return List of tags managed by this error.
*/
@Override
protected List<TagType> getTags() {
return TAGS;
}
/**
* @return True if full tags should be reported.
*/
@Override
protected boolean reportFullTags() {
return true;
}
}