Skip to content

Single-quoted strings within title arrays not being included in title_tokens #960

Description

@landonbconnell

puppet-lint's parser currently does not include single-quoted strings in title_tokens when they're enclosed in an array.

For example, if the Puppet code is:

class module::class {
    file { ['sstring_1', 'sstring_2']:
        ensure => file,
    }
}

title_tokens is nil

I've narrowed the problem down to the title_tokens method in data.rb:
:SSTRING => true just needs to be added to the hash on line 146.

I would create a PR but I don't have permission to contribute.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions