Skip to content

Inconsistent Code Sniffer ruleset between Magento and MFTF #265

Closed
@lbajsarowicz

Description

@lbajsarowicz

For Magento contribution we are expected to follow several code style rules defined by PHP Code Sniffer ruleset: https://github.com/magento/magento2/blob/c934ccc3bfa1a79b78052c61a5478eaf77de7029/dev/tests/static/testsuite/Magento/Test/Php/_files/phpmd/ruleset.xml

For Magento Functional Testing Framework the ruleset (https://github.com/magento/magento2-functional-testing-framework/blob/95aa636421933fe23338acb98089408ce7637a63/dev/tests/static/Magento/ruleset.xml) for code is different, inconsistent to the Magento one.

Expected result

  1. Ruleset should be consistent across all Magento projects.

zrzut ekranu 2018-11-5 o 09 09 16

zrzut ekranu 2018-11-5 o 09 09 27

The most irritating rule for MFTF is...

zrzut ekranu 2018-11-3 o 15 46 36

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions