   end
 
   defp add_switch_ignore(exec, %{ignore_checks: ignore_pattern}) do
-    %Execution{exec | ignore_checks: String.split(ignore_pattern, ",")}
+    %Execution{exec | ignore_checks: String.split(ignore_pattern, @pattern_split_regex)}
   end
 
   defp add_switch_ignore(exec, _), do: exec

    new_config = %Execution{
      exec
      | strict: true,
        only_checks: String.split(check_pattern, ",")
    }

    Execution.set_strict(new_config)

  alias Credo.CLI.Options
  alias Credo.ConfigFile
  alias Credo.Execution

  @pattern_split_regex ~r/,\s*/

  def parse(exec) do
    options = exec.cli_options
