Workspace.Checks.ValidateTags (Workspace v0.2.1)

View Source

Checks that the project's tags are valid.

This check can be used in order to limit the possible tags assigned to each project to a well defined set of allowed values.

Configuration

  • :allowed - Required. A list of allowed tags. A tag can either be a single atom or a scoped tag of the form {atom, atom}.

Example

In order to configure this check add the following, under checks, in your workspace config:

[
  module: Workspace.Checks.ValidateTags,
  description: "all projects must adhere to our tags policy",
  opts: [
    allowed: [
      :shared,
      :app,
      :ui,
      {:importance, :critical},
      {:importance, :low}  
    ]
  ]
]