     * `:meta` - a keyword list of metadata to be attached to the registry.
 
   """
-  @spec start_link(keys: keys, name: registry, partitions: pos_integer, listeners: [atom],
-                   meta: [{meta_key, meta_value}]) :: {:ok, pid} | {:error, term}
+  @spec start_link(
+          keys: keys,
+          name: registry,
+          partitions: pos_integer,
+          listeners: [atom],
+          meta: meta
+        ) :: {:ok, pid} | {:error, term}
+        when meta: [{meta_key, meta_value}]
   def start_link(options) do
     keys = Keyword.get(options, :keys)
+
     unless keys in @keys do
-      raise ArgumentError, "expected :keys to be given and be one of :unique or :duplicate, got: #{inspect keys}"
+      raise ArgumentError,
+            "expected :keys to be given and be one of :unique or :duplicate, got: #{inspect(keys)}"
     end
 
     name = Keyword.get(options, :name)
+
     unless is_atom(name) do
-      raise ArgumentError, "expected :name to be given and to be an atom, got: #{inspect name}"
+      raise ArgumentError, "expected :name to be given and to be an atom, got: #{inspect(name)}"
     end
 
     meta = Keyword.get(options, :meta, [])
+
     unless Keyword.keyword?(meta) do
-      raise ArgumentError, "expected :meta to be a keyword list, got: #{inspect meta}"
+      raise ArgumentError, "expected :meta to be a keyword list, got: #{inspect(meta)}"
     end
 
     partitions = Keyword.get(options, :partitions, 1)
+
     unless is_integer(partitions) and partitions >= 1 do
-      raise ArgumentError, "expected :partitions to be a positive integer, got: #{inspect partitions}"
+      raise ArgumentError,
+            "expected :partitions to be a positive integer, got: #{inspect(partitions)}"
     end
 
     listeners = Keyword.get(options, :listeners, [])
+
     unless is_list(listeners) and Enum.all?(listeners, &is_atom/1) do
-      raise ArgumentError, "expected :listeners to be a list of named processes, got: #{inspect listeners}"
+      raise ArgumentError,
+            "expected :listeners to be a list of named processes, got: #{inspect(listeners)}"
     end
 
     # The @info format must be kept in sync with Registry.Partition optimization.
-    entries = [{@all_info, {keys, partitions, nil, nil, listeners}},
-               {@key_info, {keys, partitions, nil}} | meta]
+    entries = [
+      {@all_info, {keys, partitions, nil, nil, listeners}},
+      {@key_info, {keys, partitions, nil}} | meta
+    ]
+
     Registry.Supervisor.start_link(keys, name, partitions, listeners, entries)
   end
 

    # is to write the table information alongside the registry info.
    if partitions == 1 do
      entries =
        [{@key_info, {kind, partitions, key_ets}},
         {@all_info, {kind, partitions, key_ets, {self(), pid_ets}, listeners}}]
      true = :ets.insert(registry, entries)
    else
      true = :ets.insert(registry, {i, key_ets, {self(), pid_ets}})

      :ets.lookup(registry, key)
    catch
      :error, :badarg ->
        raise ArgumentError, "unknown registry: #{inspect(registry)}"
    else
      [{^key, value}] -> {:ok, value}
      _ -> :error
