Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter gets confused with arrays of hashes #654

Closed
joshuaspence opened this issue Mar 12, 2017 · 0 comments
Closed

Linter gets confused with arrays of hashes #654

joshuaspence opened this issue Mar 12, 2017 · 0 comments
Milestone

Comments

@joshuaspence
Copy link

It seems that puppet-lint gets confused when a hash parameter contains both a hash and a list of hashes.

class { 'some_class':
  config_hash => {
    'a_hash'   => {
      'foo' => 'bar',
    },
    'an_array' => [
      {
        foo => 'bar',
        bar => 'baz',
      },
    ],
  },
}

In the above example, puppet-lint produces the following warnings:

WARNING: indentation of => is not properly aligned (expected in column 11, but found it in column 13) on line 8
WARNING: indentation of => is not properly aligned (expected in column 11, but found it in column 13) on line 9

This might be related to #555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants