File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
dev/tests/static/framework/Magento/CodeMessDetector/resources/rulesets Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 10
10
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
11
11
xsi : schemaLocation =" http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
12
12
xsi : noNamespaceSchemaLocation =" http://pmd.sf.net/ruleset_xml_schema.xsd" >
13
- <rule name =" FinalImplementation"
14
- class =" Magento\CodeMessDetector\Rule\Design\FinalImplementation"
15
- message = " The {0} {1} declared as final." >
16
- <description >
17
- <![CDATA[
18
- Final keyword is prohibited in Magento as this decreases extensibility and customizability.
19
- Final classes and method are not compatible with plugins and proxies.
20
- ]]>
21
- </description >
22
- <priority >1</priority >
23
- <properties />
24
- <example >
25
- <![CDATA[
26
- final class Foo
27
- {
28
- public function bar() {}
29
- }
30
- class Baz {
31
- final public function bad() {}
32
- }
33
- ]]>
34
- </example >
35
- </rule >
36
13
<rule name =" AllPurposeAction"
37
14
class =" Magento\CodeMessDetector\Rule\Design\AllPurposeAction"
38
15
message = " The class {0} does not restrict processed HTTP methods by implementing a Http*Method name*ActionInterface" >
You can’t perform that action at this time.
0 commit comments