        )
        when is_list(args) or is_nil(args) do
     args = with nil <- args, do: []
-    keywords = get_keywords(issue_meta)
 
-    if keyword not in keywords or {name, length(args)} in specs do
+    if keyword not in enabled_keywords(issue_meta) or {name, length(args)} in specs do
       {ast, issues}
     else
       {ast, [issue_for(issue_meta, meta[:line], name) | issues]}

    )
  end

  defp get_keywords(issue_meta) do
    include_defp = issue_meta |> IssueMeta.params() |> Params.get(:include_defp, __MODULE__)
    case include_defp do
      true -> [:def, :defp]
      _ -> [:def]
    end

         issues,
         specs,
         issue_meta
       )
       when keyword in [:def, :defp] do
    traverse({keyword, meta, def_ast}, issues, specs, issue_meta)
  end

