Skip to content

[Enhancement] DiscouragedFunction rule improvement #62

Closed
@lenaorobei

Description

@lenaorobei

Description

Magento2.PHP.DiscouragedFunction needs to be changed in order to cover different use-cases.

Expected behavior

The first part of the rule should cover following:

  • The use of insecure functions triggers 9 severity warning (applicable to all codebase).
    Examples of insecure functions: exec, md5, unserialize, assert.

The first part of the rule should cover following:

  • The use of discouraged functions triggers 8 severity warning (not applicable to */Test/* and */lib/*).
    Examples of discouraged functions: sizeof, print_r, ^socket_.*$, ^stream_.*$.

Metadata

Metadata

Assignees

Labels

enhancementImprovements to existing rules

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions