File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ defmodule ExDoc.Config do
43
43
version: nil ,
44
44
authors: nil ,
45
45
skip_undefined_reference_warnings_on: [ ] ,
46
- package: nil
46
+ package: nil ,
47
+ warnings_as_errors: false
47
48
48
49
@ type t :: % __MODULE__ {
49
50
apps: [ atom ( ) ] ,
@@ -78,6 +79,7 @@ defmodule ExDoc.Config do
78
79
version: nil | String . t ( ) ,
79
80
authors: nil | [ String . t ( ) ] ,
80
81
skip_undefined_reference_warnings_on: [ String . t ( ) ] ,
81
- package: :atom | nil
82
+ package: :atom | nil ,
83
+ warnings_as_errors: boolean ( )
82
84
}
83
85
end
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ defmodule Mix.Tasks.Docs do
21
21
* `--language` - Specifies the language to annotate the
22
22
EPUB output in valid [BCP 47](https://tools.ietf.org/html/bcp47)
23
23
24
+ * `--warnings-as-errors` - Exits with non-zero exit code if any warnings are found
25
+
24
26
The command line options have higher precedence than the options
25
27
specified in your `mix.exs` file below.
26
28
@@ -299,7 +301,8 @@ defmodule Mix.Tasks.Docs do
299
301
canonical: :string ,
300
302
formatter: :keep ,
301
303
language: :string ,
302
- output: :string
304
+ output: :string ,
305
+ warnings_as_errors: :boolean
303
306
]
304
307
305
308
@ aliases [ n: :canonical , f: :formatter , o: :output ]
You can’t perform that action at this time.
0 commit comments