Skip to content

Commit 9d196f4

Browse files
committed
docs: add init section inside the architecture documentation
1 parent 3dafb43 commit 9d196f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/src/docs/contributing/architecture.mdx

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ graph LR
2222

2323
</ResponsiveContainer>
2424

25+
## Init
26+
27+
The configuration is loaded from file and flags by `config.Loader` inside `PersistentPreRun` (or `PreRun`) of the commands that require configuration.
28+
29+
The linter database (`linterdb.Manager`) is fill based on the configuration:
30+
- The linters ("internals" and plugins) are built by `linterdb.LinterBuilder` and `linterdb.PluginBuilder` builders.
31+
- The configuration is validated by `linterdb.Validator`.
32+
2533
## Load Packages
2634

2735
Loading packages is listing all packages and their recursive dependencies for analysis.

0 commit comments

Comments
 (0)