Open
Description
Use Case
Hi!
multiple puppet-lint plugins carry the same methods to extract some data: https://github.com/voxpupuli/puppet-lint-optional_default-check/blob/master/lib/puppet-lint/plugins/check_optional_default.rb#L46-L140
they are currently copied over to new gems if they require those functions. I think they are really helpful and would be a good fit for puppet-lint itself. I do not have proper Ruby/puppet-lint knowledge to implement them myself here, so I'm raising this ticket.
Describe the Solution You Would Like
Implement the methods from the linked puppet-lint plugin in puppet-lint core.
Describe Alternatives You've Considered
copy them to new gems if required
Additional Context
nothing