The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::CharmKit::Role::Lint - linter methods

SYNOPSIS

  $ charmkit lint

DESCRIPTION

Performs various lint checks to make sure the charm is in accordance with Charm Store policies.

Format of lint rules

Lint rules are loaded from lint_rules.yaml in the distributions share directory. The format for rules is as follows:

  ---
  files:
    file:
      name: 'config.yaml'
      attributes:
        - NOT_EMPTY
        - EXISTS
    file:
      name: 'copyright'
      attributes:
        - NOT_EMPTY
        - EXISTS
      parse:
        - pattern: '^options:\s*\n'
          error: 'ERR_INVALID_COPYRIGHT'