A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/869 below:

GitHub ยท Where software is built

Affects PMD Version:

6.0.1 (did not happen with 6.0.0)

Rule:

GuardLogStatement

Description:

The code below gets flagged although it should not since I'm not using any exception.

Code Sample demonstrating the issue:

return Single.error(new IllegalStateException("No permission was pre-configured for " + permission));

You can also check out this PR - vanniktech/RxPermission#21 - which fails

Report

<?xml version="1.0" encoding="UTF-8"?>
<pmd xmlns="http://pmd.sourceforge.net/report/2.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://pmd.sourceforge.net/report/2.0.0 http://pmd.sourceforge.net/report_2_0_0.xsd"
    version="6.0.1" timestamp="2018-01-21T19:15:40.307">
<file name="/Users/nik/tmp/RxPermission/library/src/main/java/com/vanniktech/rxpermission/MockRxPermission.java">
<violation beginline="32" endline="32" begincolumn="12" endcolumn="104" rule="GuardLogStatement" ruleset="Best Practices" package="com.vanniktech.rxpermission" class="MockRxPermission" method="request" externalInfoUrl="https://pmd.github.io/pmd-6.0.1/pmd_rules_java_bestpractices.html#guardlogstatement" priority="2">
There is log block not surrounded by if
</violation>
</file>
</pmd>

Running PMD through: [Gradle]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4