The version key should not be added to contributed modules' .info.yml files. It is used from Drupal core modules, but contributed modules should not declare a version that changes basing on the Drupal version used on a site.
The example modules should use package: 'Example modules', but test modules can avoid using that line, as they are not shown on /admin/modules.

There is actually a single module that contains those lines in its .info.yml file.

Issue fork examples-3458800

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

apaderno created an issue. See original summary.

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Status: Active » Needs review
avpaderno’s picture

Title: Remove "version: VERSION" "package: Testing" from .info.yml files » Remove "version: VERSION" and "package: Testing" from .info.yml files

avpaderno’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

avpaderno’s picture

Status: Closed (fixed) » Needs work

The tests/modules/examples_description_test/examples_description_test.info.yml file still contains the version: VERSION line.

avpaderno changed the visibility of the branch 3458800-remove-version-version to hidden.

avpaderno’s picture

Status: Needs work » Needs review
avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

PHP_CodeSniffer, which complained about the version line in a .info.yml file, no longer returns errors about that.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.