Skip to content

Ignoring duplicates from intentially redefined items #235

@BrknRobot

Description

@BrknRobot

A mod which implements compatibility with another mod may redefine portions of that mod. When that mod is included as a secondary mod, Tiger will warn about duplicate items. These can be suppressed with a duplicate-item filter, but that will remove warnings about all duplicates, not just the one intentionally created by the compatibility mod. A new type of annotation has the opportunity to make warning suppression more specific, and add additional validation for this scenario.

#tiger-redefines(mod="<secondary mod label>")

  • Indicates the following definition intentionally redefines the item from the loaded secondary mod.
  • duplicate-item warnings specifically referencing that mod should be suppressed.
  • If this definition won't replace the referenced mod's definition (ie: this file does not come after the mod's file in the load order), warn
  • If this definition doesn't replace a definition from the referenced mod, warn

#tiger-redefined-by(mod="<secondary mod label>")

  • Indicates the following definition is intentionally redefined by the item from the loaded secondary mod.
  • duplicate-item warnings specifically referencing that mod should be suppressed.
  • If this definition won't be replaced by the referenced mod's definition (ie: this file does not come before the mod's file in the load order), warn
  • If this definition isn't replaced by a definition from the referenced mod, warn

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions