Skip to content

Rule: Check Module file structure #30

Open
@larsroettig

Description

@larsroettig

A typical file structure for a Magento 2 module shoul look like the following:

image

For this reason, we a should add a warning if in main an unexpected dir.

Expected dirs:

  • Api
  • Block
  • Controller
  • Console
  • Cron
  • etc
  • Model
  • Setup
  • i18n
  • Observer
  • Plugin
  • Test
  • view

Dokumentation:

https://devdocs.magento.com/guides/v2.2/extension-dev-guide/build/module-file-structure.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    debate needednon-PHPCSThis rule is not feasibly implementable with phpcs, will need additional tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions