File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff 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.
317317only:
318318 - 'some-glob-pattern/**/*.ts'
319319
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ $ dep-tree check`,
134134//nolint:gocyclo
135135func 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
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments