Skip to content

Rubocop rule to enforce module metadata conformity with targets #21606

Description

@sjanusz-r7

Summary

As of #20786 we should now enforce those changes in PRs going forward.

Basic example

def initialize(info = {})
    super(
      update_info(...
'Arch' => 'unix',
'Targets' => [ ... /* define a unix target here */ ... ]
) )

The usage of top-level arch, platform etc. can be removed, as the information will get merged from the target.

Motivation

This has been called out during module hacking sessions, and we ask contributors to include these changes as blockers before landing modules.
This would save our and the contributor cycles.

Metadata

Metadata

Assignees

Labels

Type

Fields

No fields configured for Task.

Projects

Status
Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions