Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2374

[ansible-lint] Collision Between rules var-naming[no-role-prefix] and var-naming[pattern] When var_naming_pattern Is Modified from Default

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • n/a
    • ansible-dev-tools
    • False
    • Hide

      None

      Show
      None
    • False

      Request: 

      This is a rule that we would have a great benefit from since we took a decision to have a non-default naming convention for variables.
      Due to this, the rule var-naming[no-role-prefix] does not work as it conflicts with the rule that checks for variable names.
      example if you have a variable pattern var_naming_pattern: "^[A-Z_][A-Za-z0-9_]*$" in ansible lint

       

      Github Issue: https://github.com/ansible/ansible-lint/issues/4142

              rht-tima Tim Appnel
              rhn-support-kpusdeka Kunal Maroti Pusdekar
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: