Skip to content

Commit 05a759a

Browse files
authored
Fix typos (#118) [skip ci]
Found via `codespell -S internal -L kewword,bu,thi`
1 parent a6f67d2 commit 05a759a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ exclude:
313313
- 'some-glob-pattern/**/*.ts'
314314
315315
# The only files that will be included by dep-tree. If a file does not
316-
# match any of the provided patters, it is ignored.
316+
# match any of the provided patterns, it is ignored.
317317
only:
318318
- 'some-glob-pattern/**/*.ts'
319319

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ $ dep-tree check`,
134134
//nolint:gocyclo
135135
func inferLang(files []string, cfg *config.Config) (language.Language, error) {
136136
if len(files) == 0 {
137-
return nil, fmt.Errorf("at least 1 file must be provided for infering the language")
137+
return nil, fmt.Errorf("at least 1 file must be provided for inferring the language")
138138
}
139139
score := struct {
140140
js int

cmd/root_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func TestInferLang(t *testing.T) {
146146
{
147147
Name: "zero files",
148148
Files: []string{},
149-
Error: "at least 1 file must be provided for infering the language",
149+
Error: "at least 1 file must be provided for inferring the language",
150150
},
151151
{
152152
Name: "only 1 file",

web/src/XGraph.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function buildXGraph (graph: Graph) {
6666
const needsToAddGroups = groups.size > 1
6767

6868
// Create virtual nodes representing folders and packages, so that additional forces are applied
69-
// between nodes withing the same folder/package. This will artificially concentrate related files
69+
// between nodes within the same folder/package. This will artificially concentrate related files
7070
// together, and will stabilize the visualization.
7171
for (const node of Object.values(nodes)) {
7272
if (needsToAddGroups) {
@@ -135,7 +135,7 @@ function newDirNode (id: number): XNode {
135135
return {
136136
id,
137137
isDir: true,
138-
// bellow are just defaults
138+
// below are just defaults
139139
dirName: "",
140140
fileName: "",
141141
isEntrypoint: false,
@@ -150,7 +150,7 @@ function newGroupNode (id: number): XNode {
150150
return {
151151
id,
152152
isPackage: true,
153-
// bellow are just defaults
153+
// below are just defaults
154154
dirName: "",
155155
fileName: "",
156156
isEntrypoint: false,

0 commit comments

Comments
 (0)