puppetlabs / puppetlabs/puppet-editor-services

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

Open
#196 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement language
Dominant language
Ruby
Stars
52
Forks
21
Avg merge
15h
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Puppet function API autoloading specification and the runtime requirement for dependencies in metadata.json. Define how PES should identify top-scope calls that require namespaces and what diagnostic or behavior would indicate completion; the issue names no implementation entry point or test file.

Written by the indexing model from the issue text.

Assessment

Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.