Skip to content
Permalink
Browse files

Fix tests and compiler warnings

  • Loading branch information...
rrrene committed Oct 9, 2019
1 parent 7f93831 commit 96d92ef68d04dfdd3ffdb3bf5982f8e3b8638af8
Showing with 4 additions and 2 deletions.
  1. +0 −2 lib/credo/cli/command/categories/categories_output.ex
  2. +4 −0 lib/credo/execution.ex
@@ -5,8 +5,6 @@ defmodule Credo.CLI.Command.Categories.CategoriesOutput do
default: Credo.CLI.Command.Categories.Output.Default,
json: Credo.CLI.Command.Categories.Output.Json

alias Credo.CLI.Output.UI

def print_categories(exec, categories) do
format_mod = format_mod(exec)

@@ -163,6 +163,10 @@ defmodule Credo.Execution do
"""
def checks(exec)

def checks(%__MODULE__{checks: nil}) do
{[], [], []}
end

def checks(%__MODULE__{checks: checks, only_checks: only_checks, ignore_checks: ignore_checks}) do
only_matching = filter_only_checks(checks, only_checks)
ignore_matching = filter_ignore_checks(checks, ignore_checks)

0 comments on commit 96d92ef

Please sign in to comment.
You can’t perform that action at this time.