puppetlabs / puppet-editor-services

Puppet Language Server for editors
Apache License 2.0
45 stars 21 forks source link

[Feature] Detect top scope functions that should be namespaced. #196

Open glennsarti opened 4 years ago

glennsarti commented 4 years ago

Note: A module that wants to call a function in another module must either have that module listed as a dependency, or have no dependencies entry at all in its metadata.json. This requirement is enforced at runtime to help users keep metadata for modules up to date as users then simply need to install a module and its dependencies. If a module does not have the correct dependencies listed the runtime will simply not find the function.

Can PES detect topscope function calls which should be namespaced?

Ref - https://twitter.com/BastelsBlog/status/1193595803618725889 Ref - https://github.com/puppetlabs/puppet-specifications/blob/master/language/func-api.md#autoloading