Skip to content

Commit bcdfb7f

Browse files
authored
docs: typo fixes in architecture.mdx (#1870)
1 parent 814bf0e commit bcdfb7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/docs/contributing/architecture.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Loading packages is listing all packages and their recursive dependencies for an
107107
Also, depending from enabled linters set some parsing of a source code can be performed
108108
at this step.
109109

110-
Packages loading stars here:
110+
Packages loading starts here:
111111

112112
```go title=pkg/lint/load.go
113113
func (cl *ContextLoader) Load(ctx context.Context, linters []*linter.Config) (*linter.Context, error) {
@@ -150,12 +150,12 @@ func (lc *Config) WithLoadForGoAnalysis() *Config {
150150
}
151151
```
152152

153-
After finding a load mode we run `go/packages`: the library get list of dirs (or `./...` as the default value) as input
153+
After finding a load mode, we run `go/packages`: the library get list of dirs (or `./...` as the default value) as input
154154
and outputs list of packages and requested information about them: filenames, type information, AST, etc.
155155

156156
## Run Linters
157157

158-
First, we need to find all enaled linters. All linters are registered here:
158+
First, we need to find all enabled linters. All linters are registered here:
159159

160160
```go title=pkg/lint/lintersdb/manager.go
161161
func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
@@ -209,7 +209,7 @@ The `unused` isn't merged because it has high memory usage.
209209

210210
Linters execution starts in `runAnalyzers`. It's the most complex part of the `golangci-lint`.
211211
We use custom [go/analysis](https://godoc.org/golang.org/x/tools/go/analysis) runner there. It runs as much as it can in parallel. It lazy-loads as much as it can
212-
to reduce memory usage. Also, it set all heavyweight data to `nil` as becomes unneeded to save memory.
212+
to reduce memory usage. Also, it sets all heavyweight data to `nil` as becomes unneeded to save memory.
213213

214214
We don't use existing [multichecker](https://godoc.org/golang.org/x/tools/go/analysis/multichecker) because
215215
it doesn't use caching and doesn't have some important performance optimizations.
@@ -297,7 +297,7 @@ A processor can hide issues (`nolint`, `exclude`) or change issues (`path_shorte
297297

298298
## Print Issues
299299

300-
We have an abstraction for printint found issues.
300+
We have an abstraction for printing found issues.
301301

302302
```sh
303303
$ tree -L 1 ./pkg/printers/

0 commit comments

Comments
 (0)