File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+ # This script is used to perform an audit of the Elixir project.
4
+ # It checks for formatting issues, static code analysis, and code style consistency.
5
+ #
6
+ # Usage:
7
+ # ./bin/audit # Run to audit your project.
8
+
9
+ echo " Checking code formatting..."
10
+ bin/format --check
11
+
12
+ echo " Running static code analysis with dialyzer..."
13
+ mix dialyzer
14
+
15
+ echo " Checking code style with Credo..."
16
+ mix credo --strict
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ defmodule ElixirScript.MixProject do
7
7
version: "0.0.0" ,
8
8
elixir: "~> 1.15" ,
9
9
escript: escript ( ) ,
10
- deps: deps ( )
10
+ deps: deps ( ) ,
11
+ dialyzer: [ plt_add_apps: [ :mix ] ]
11
12
]
12
13
end
13
14
You can’t perform that action at this time.
0 commit comments