Skip to content

Commit

Permalink
#365 polished
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 8, 2019
1 parent 8f9892e commit 77b6e22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/jpeek/web/Results.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public boolean exists(final String artifact) {
* Get score of this.
* @param artifact The artifact, e.g. "org.jpeek:jpeek"
* @return The score
* @throws IOException If fails
*/
public double score(final String artifact) throws IOException {
final Item item = this.table.frame()
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/jpeek/web/TkReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ final class TkReport implements TkRegex {
/**
* Ctor.
* @param rpts Reports
* @param rslts Results
*/
TkReport(final BiFunc<String, String, Func<String, Response>> rpts,
final Results rslts) {
Expand All @@ -80,7 +81,6 @@ final class TkReport implements TkRegex {
@Override
public Response act(final RqRegex req) throws IOException {
final Matcher matcher = req.matcher();
System.out.println(matcher);
// @checkstyle MagicNumber (1 line)
final String path = matcher.group(3);
if (path.isEmpty()) {
Expand All @@ -94,6 +94,7 @@ public Response act(final RqRegex req) throws IOException {
)
).apply(path.substring(1));
if (new HmRsStatus(HttpURLConnection.HTTP_NOT_FOUND).matches(response)
// @checkstyle MagicNumber (1 line)
&& "badge.svg".equals(matcher.group(3))) {
final String artifact = String.format(
"%s:%s", matcher.group(1), matcher.group(2)
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/jpeek/web/ReportsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* @checkstyle JavadocMethodCheck (500 lines)
* @checkstyle JavadocTagsCheck (500 lines)
*/
@SuppressWarnings("PMD.AvoidDuplicateLiterals")
public final class ReportsTest {

@Before
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/jpeek/web/TkReportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
* @since 0.23
* @checkstyle JavadocMethodCheck (500 lines)
* @checkstyle JavadocTagsCheck (500 lines)
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
*/
public final class TkReportTest {

Expand Down

0 comments on commit 77b6e22

Please sign in to comment.