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.
jl-a, sam-spain, christian-hawk, danjrwalsh, gheissenberger-performyard and 3 more
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