File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,13 +13,14 @@ It detects direct and transitive architectural violations via dependency graph a
1313Run without installing:
1414
1515``` bash
16+ npx truss-lint init
1617npx truss-lint check
1718```
1819
1920Or install globally:
20-
2121``` bash
2222npm install -g truss-lint
23+ truss-lint init
2324truss-lint check
2425```
2526
@@ -76,9 +77,18 @@ npx truss-lint check
7677
7778---
7879
79- ### 2. Create a config file
80+ ## 2. Initialize configuration
81+
82+ Create a starter configuration file in your project:
83+
84+ ``` bash
85+ npx truss-lint init
86+ ```
87+ This will generate a truss.yml file in your project root.
88+
89+ ## 3. Configure layers and rules
8090
81- Add a ` truss.yml ` file to your project root :
91+ Edit the generated truss.yml to define your architecture :
8292
8393``` yaml
8494version : " 1"
You can’t perform that action at this time.
0 commit comments