   test "it requires spaces after commas preceded by variables ending with a ?" do
 """
 defmodule CredoSampleModule do
-    @attribute [question?,answer]
+  @attribute [question?,answer]
 end
 """ |> to_source_file
     |> assert_issue(@described_check)

  test "it should report when commas are not followed by spaces" do
"""
defmodule CredoSampleModule do
    @attribute {:foo,:bar}
end
""" |> to_source_file
    |> assert_issue(@described_check, fn(issue) ->
        assert 21 == issue.column
        assert ",:" ==  issue.trigger
      end)
  end

  test "it should NOT report when commas have newlines" do
"""
defmodule CredoSampleModule do
  defstruct foo: nil,
            bar: nil
end
""" |> to_source_file
    |> refute_issues(@described_check)
  end

  test "it should NOT report commas in sigils" do
"""
defmodule CredoSampleModule do
  def fun(value) do
    Regex.match?(~r/^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/, value)
  end
end
""" |> to_source_file
    |> refute_issues(@described_check)
