Skip to content

Normalize module names with multiple parts #33

@jiegillet

Description

@jiegillet

Make sure module names with multiple parts are replaced by placeholders. Replace individual atoms by different placeholders so that module path still make sense.

Example input

defmodule A.B.C do
  alias A.B, as: AB
end

Desired output

defmodule PLACEHOLDER_1.PLACEHOLDER_2.PLACEHOLDER_3 do
  alias PLACEHOLDER_1.PLACEHOLDER_2, as: PLACEHOLDER_4
end

(parentheses missing)

Curent output

defmodule(A.B.C) do
  alias(A.B, as: AB)
end

Metadata

Metadata

Assignees

Labels

x:action/improveImprove existing functionality/contentx:knowledge/elementaryLittle Exercism knowledge requiredx:module/representerWork on Representersx:size/largeLarge amount of workx:type/codingWrite code that is not student-facing content (e.g. test-runners, generators, but not exercises)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions