mirror of https://github.com/apache/lucene.git
LUCENE-9077: Enable javac linting as in ant. TONS of warnings are currently printed.
This commit is contained in:
parent
1ad6bc9361
commit
351b30489c
|
@ -5,7 +5,18 @@ allprojects {
|
||||||
sourceCompatibility = "11"
|
sourceCompatibility = "11"
|
||||||
targetCompatibility = "11"
|
targetCompatibility = "11"
|
||||||
|
|
||||||
compileJava.options.encoding = "UTF-8"
|
tasks.withType(JavaCompile) {
|
||||||
compileTestJava.options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
|
options.compilerArgs += [
|
||||||
|
"-Xlint",
|
||||||
|
"-Xlint:-deprecation",
|
||||||
|
"-Xlint:-serial",
|
||||||
|
|
||||||
|
"-Xdoclint:all/protected",
|
||||||
|
"-Xdoclint:-missing",
|
||||||
|
"-Xdoclint:-accessibility",
|
||||||
|
"-proc:none", // proc:none was added because of LOG4J2-1925 / JDK-8186647
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ import org.jsoup.select.NodeVisitor;
|
||||||
* This tool supports 2 command line options:
|
* This tool supports 2 command line options:
|
||||||
* </p>
|
* </p>
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><b>-check-all-relative-links</b><br />
|
* <li><b>-check-all-relative-links</b>
|
||||||
* <p>By default, only relative links to files in the same directory (ie: not startin with
|
* <p>By default, only relative links to files in the same directory (ie: not startin with
|
||||||
* <code>"../"</code> are checked for existence. This means that we can do a "quick" validatation of
|
* <code>"../"</code> are checked for existence. This means that we can do a "quick" validatation of
|
||||||
* links to other ref-guide files, but ignore relative links to things outside of the ref-guide --
|
* links to other ref-guide files, but ignore relative links to things outside of the ref-guide --
|
||||||
|
@ -86,7 +86,7 @@ import org.jsoup.select.NodeVisitor;
|
||||||
* <em>also</em> check relative links where the path starts with <code>"../"</code>
|
* <em>also</em> check relative links where the path starts with <code>"../"</code>
|
||||||
* </p>
|
* </p>
|
||||||
* </li>
|
* </li>
|
||||||
* <li><b>-bare-bones</b><br/>
|
* <li><b>-bare-bones</b>
|
||||||
* <p>By default, this tool assumes it is analyzing Jekyll generated files. If this option is specified,
|
* <p>By default, this tool assumes it is analyzing Jekyll generated files. If this option is specified,
|
||||||
* then it instead assumes it's checking "bare bones" HTML files...
|
* then it instead assumes it's checking "bare bones" HTML files...
|
||||||
* </p>
|
* </p>
|
||||||
|
|
Loading…
Reference in New Issue