Checks the year in the source.
(final List<String> lines, final String path)
| 195 | * Checks the year in the source. |
| 196 | */ |
| 197 | private void year(final List<String> lines, final String path) { |
| 198 | final int year = Calendar.getInstance(Locale.ROOT).get(Calendar.YEAR); |
| 199 | if (lines.size() < 2 || !lines.get(1).contains("Copyright (c) 2002-" + year)) { |
| 200 | addFailure(path, lines.size() < 2 ? 0 : 1, "Incorrect year"); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Checks the JavaDoc first line, it should not be empty, and should not start with lower-case. |
no test coverage detected