Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 356efde

Browse files
goverdovskiykunga
authored andcommitted
fixed overXXX spelling (#38)
1 parent a8ff1a3 commit 356efde

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
bin/
23
obj/
34
files-kontur/

Commands/CheckDeps.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ protected override int Execute()
7070
ConsoleWriter.WriteBuildWarning("\t- " + m);
7171
}
7272

73-
var owerhead = new SortedSet<string>(result.ConfigOverhead.Where(m => !result.NotUsedDeps.Contains(m)));
74-
if (owerhead.Any() && !showShort)
73+
var overhead = new SortedSet<string>(result.ConfigOverhead.Where(m => !result.NotUsedDeps.Contains(m)));
74+
if (overhead.Any() && !showShort)
7575
{
7676
ok = false;
77-
ConsoleWriter.WriteWarning("Config owerhead:");
78-
foreach (var m in owerhead)
77+
ConsoleWriter.WriteWarning("Config overhead:");
78+
foreach (var m in overhead)
7979
ConsoleWriter.WriteBuildWarning("\t- " + m);
8080
}
8181

Commands/ShowDeps.cs

+8-8
Original file line numberDiff line numberDiff line change
@@ -110,29 +110,29 @@ private static void AddEdge(Dep from, Dep to, List<string> result)
110110

111111
if (Yaml.Exists(from.Name))
112112
{
113-
var names = GetOwerhead(from);
113+
var names = GetOverhead(from);
114114
if (names.Contains(to.Name))
115115
edge += " {color:red, weight:2}";
116116
}
117117

118118
result.Add(edge);
119119
}
120120

121-
private static readonly Dictionary<Dep, List<string>> owerheadCache = new Dictionary<Dep, List<string>>();
121+
private static readonly Dictionary<Dep, List<string>> overheadCache = new Dictionary<Dep, List<string>>();
122122

123-
private static List<string> GetOwerhead(Dep dep)
123+
private static List<string> GetOverhead(Dep dep)
124124
{
125-
if (owerheadCache.ContainsKey(dep))
126-
return owerheadCache[dep];
125+
if (overheadCache.ContainsKey(dep))
126+
return overheadCache[dep];
127127

128128
var checker = new DepsChecker(
129129
Path.Combine(Helper.CurrentWorkspace, dep.Name),
130130
dep.Configuration,
131131
Helper.GetModules());
132132

133-
var owerhead = checker.GetCheckDepsResult().ConfigOverhead;
134-
var names = owerhead.Select(path => path.Split('/', '\\').FirstOrDefault()).Distinct().ToList();
135-
return owerheadCache[dep] = names;
133+
var overhead = checker.GetCheckDepsResult().ConfigOverhead;
134+
var names = overhead.Select(path => path.Split('/', '\\').FirstOrDefault()).Distinct().ToList();
135+
return overheadCache[dep] = names;
136136
}
137137

138138
private static List<Dep> GetDeps(Dep root)

Tests/UtilsTests/TestShellRunner.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public async void TimeMultiThreads()
8686
}
8787

8888
[Test]
89-
public void TestShellRunnerOwerflow()
89+
public void TestShellRunnerOverflow()
9090
{
9191
var count = 10000;
92-
var bat = "test_owerflow.bat";
92+
var bat = "test_overflow.bat";
9393
File.WriteAllText(bat, @"
9494
@echo off
9595
FOR /L %%G IN (1,1," + count + @") DO echo %%G");

0 commit comments

Comments
 (0)