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!

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