From 1a7695ca2ec2f27fe707e802a35bf61a5aae643e Mon Sep 17 00:00:00 2001 From: pnezis Date: Wed, 21 Aug 2024 12:56:36 +0300 Subject: [PATCH] Fix obsolete check docs --- workspace/lib/mix/tasks/workspace.check.ex | 2 +- workspace/lib/workspace/check.ex | 2 +- workspace/lib/workspace/check/result.ex | 2 +- .../lib/workspace/checks/validate_config_path.ex | 13 ++++++++----- workspace/lib/workspace/checks/validate_project.ex | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/workspace/lib/mix/tasks/workspace.check.ex b/workspace/lib/mix/tasks/workspace.check.ex index e5d0d80..3874dc1 100644 --- a/workspace/lib/mix/tasks/workspace.check.ex +++ b/workspace/lib/mix/tasks/workspace.check.ex @@ -9,7 +9,7 @@ defmodule Mix.Tasks.Workspace.Check do :excluded_tags ]) - @shortdoc "Runs configured checkers on the current workspace" + @shortdoc "Runs configured checks on the current workspace" @moduledoc """ Check the workspace using the configured checks. diff --git a/workspace/lib/workspace/check.ex b/workspace/lib/workspace/check.ex index 15e1746..6f4cb18 100644 --- a/workspace/lib/workspace/check.ex +++ b/workspace/lib/workspace/check.ex @@ -37,7 +37,7 @@ defmodule Workspace.Check do ) @moduledoc """ - A behaviour for implementing workspace checker. + A behaviour for implementing workspace check. ## Introduction diff --git a/workspace/lib/workspace/check/result.ex b/workspace/lib/workspace/check/result.ex index 5cf4a6f..43d44df 100644 --- a/workspace/lib/workspace/check/result.ex +++ b/workspace/lib/workspace/check/result.ex @@ -33,7 +33,7 @@ defmodule Workspace.Check.Result do check: nil, project: nil, status: nil, - # should be set by checkers + # should be set by checks meta: [] @doc """ diff --git a/workspace/lib/workspace/checks/validate_config_path.ex b/workspace/lib/workspace/checks/validate_config_path.ex index a57ccbf..0c8d5a7 100644 --- a/workspace/lib/workspace/checks/validate_config_path.ex +++ b/workspace/lib/workspace/checks/validate_config_path.ex @@ -35,14 +35,17 @@ defmodule Workspace.Checks.ValidateConfigPath do ## Example - In order to configure this checker add the following, under `checkers`, - in your `workspace.exs`: + In order to configure this check add the following, under `checks`, + in your `.workspace.exs`: ```elixir [ - checker: Workspace.Checkers.ConfigPath, - config_attribute: :deps_path, - expected_path: "artifacts/deps" + module: Workspace.Checks.ValidateConfigPath, + description: "all projects must have a common dependencies path", + opts: [ + config_attribute: :deps_path, + expected_path: "artifacts/deps" + ] ] ``` """ diff --git a/workspace/lib/workspace/checks/validate_project.ex b/workspace/lib/workspace/checks/validate_project.ex index 4175f97..ca4afbd 100644 --- a/workspace/lib/workspace/checks/validate_project.ex +++ b/workspace/lib/workspace/checks/validate_project.ex @@ -37,8 +37,8 @@ defmodule Workspace.Checks.ValidateProject do ## Example - In order to configure this checker add the following, under `checks`, - in your `workspace.exs`: + In order to configure this check add the following, under `checks`, + in your `.workspace.exs`: ```elixir [