Skip to content

Commit

Permalink
Fix obsolete check docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pnezis committed Aug 21, 2024
1 parent 5544640 commit 1a7695c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion workspace/lib/mix/tasks/workspace.check.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion workspace/lib/workspace/check.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule Workspace.Check do
)

@moduledoc """
A behaviour for implementing workspace checker.
A behaviour for implementing workspace check.
## Introduction
Expand Down
2 changes: 1 addition & 1 deletion workspace/lib/workspace/check/result.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down
13 changes: 8 additions & 5 deletions workspace/lib/workspace/checks/validate_config_path.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
]
```
"""
Expand Down
4 changes: 2 additions & 2 deletions workspace/lib/workspace/checks/validate_project.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
Expand Down

0 comments on commit 1a7695c

Please sign in to comment.