Skip to content

Commit

Permalink
ci: disable UnnecessaryBlock check for ECMAScripts by Codacy
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <[email protected]>
  • Loading branch information
leninmehedy committed Nov 15, 2023
1 parent 73f7c1b commit 7bb2375
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ruleset.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>

</ruleset>

0 comments on commit 7bb2375

Please sign in to comment.