Closed glennsarti closed 4 years ago
Fixes #201
Multi-resource declarations [1] are delimited by semi-colons as well as being inside a hash block. This commit modifies the hashrocket detection to also take into account semi-colons and adds a test for this scenario.
[1] https://puppet.com/docs/puppet/latest/style_guide.html#multiple-resources
@glennsarti FWIW, I imagine #203 is going to require editing this same chunk of code
@genebean Given your example in 203...that should work already. Hrmmm.
Ahh rubocop, how I hate thee 😁
Fixes #201
Multi-resource declarations [1] are delimited by semi-colons as well as being inside a hash block. This commit modifies the hashrocket detection to also take into account semi-colons and adds a test for this scenario.
[1] https://puppet.com/docs/puppet/latest/style_guide.html#multiple-resources