Rule: UnnecessaryBlock
Description:
Unfortunately I do not know what version of PMD is being used..
PMD is one of the test suites that codacy.com uses..
Code Sample demonstrating the issue:
import { foo } from './someScript.js' // missing semicolon
const { isLoggedIn } = useAuth(); // <--- violation here: unnecessary block
throws "Unnecessary block."
However, the brackets are quite necessary and designate a named import.
Rule: UnnecessaryBlock
Description:
Unfortunately I do not know what version of PMD is being used..
PMD is one of the test suites that codacy.com uses..
Code Sample demonstrating the issue:
throws "Unnecessary block."
However, the brackets are quite necessary and designate a named import.