-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: disable Codacy PMD rule UnnecessaryBlock for ECMAScripts (#557)
Signed-off-by: Lenin Mehedy <[email protected]>
- Loading branch information
1 parent
674ac32
commit 11d20e6
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
|
||
<ruleset name="Custom Rules" | ||
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 https://pmd.sourceforge.io/ruleset_2_0_0.xsd"> | ||
|
||
<description> | ||
FST custom PMD rule for Codacy analyzer | ||
</description> | ||
|
||
|
||
<!-- | ||
Codacy seems to fail to detect correct import statement for ECMAScripts | ||
See: | ||
- https://github.com/pmd/pmd/issues/2305 | ||
- https://github.com/pmd/pmd/issues/4129 | ||
--> | ||
<rule ref="category/ecmascript/codestyle.xml"> | ||
<exclude name="UnnecessaryBlock"/> | ||
</rule> | ||
<rule ref="category/ecmascript/errorprone.xml"/> | ||
<rule ref="category/ecmascript/bestpractices.xml"/> | ||
|
||
</ruleset> |