gradient icon indicating copy to clipboard operation
gradient copied to clipboard

List of warnings that you can ignore through .gradient_ignore.exs

Open hworld opened this issue 1 year ago • 2 comments

I'm having some trouble figuring out what the list of warnings I can ignore are.

For example, when seeing a warning like this (which I believe was already reported elsewhere):

apps/grid/lib/grid_web/views/error_view.ex:2: The spec template_not_found/2 doesn't match the function name/arity

I'm not sure by looking at this error how I would be able to ignore it, besides just putting the file:location in the gradient_ignore file. It would be nice to ignore just the one specific issue that came up. Is there a way to figure these warning specifiers?

hworld avatar Mar 14 '23 18:03 hworld

Something similar to dialyxir's --format ignore_file flag would be nice: https://github.com/jeremyjh/dialyxir#command-line-options

This would also make it easier to add gradient to an existing Elixir project: ignore all the existing errors and only fail if new ones are added.

Similarly, a --list-unused-filters flag (or something like it) would be useful for un-ignoring errors once they've been fixed so that they don't crop up again: https://github.com/jeremyjh/dialyxir#list-unused-filters (though this should probably be a separate issue?)

Nezteb avatar Apr 13 '23 17:04 Nezteb

Good ideas, thanks! We'll come up with something to address this.

erszcz avatar Apr 14 '23 07:04 erszcz