Skip to content

Commit 63649cd

Browse files
committed
Extra warnings
1 parent a50809b commit 63649cd

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

Directory.Build.props

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,12 @@
3636
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3737
<!-- Ingored warnings, some aspirational but too noisy for now, some by design. -->
3838
<NoWarn>
39-
<!--Disabled by design-->
40-
CA5399;CA1812;
4139
<!--XML comment-->
4240
CS1591;CS1573;
4341
<!-- Globalization rules -->
4442
CA1303;CA1304;CA1305;CA1307;CA1308;CA1309;CA1310;CA1311;
4543
<!-- Logging -->
4644
CA1848;CA1727;
47-
<!-- Others we don't want -->
48-
CA1815;CA1725;
49-
<!-- Naming things is hard enough -->
50-
CA1710;CA1711;CA1720;CA1724;
51-
<!-- Aspirational -->
52-
CA1502;CA1716;NETSDK1206;
5345
$(NoWarn)
5446
</NoWarn
5547
>

GrasshopperAsyncComponent/GH_AsyncComponent.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ protected override void ExpireDownStreamObjects()
177177
}
178178
}
179179

180-
protected override void SolveInstance(IGH_DataAccess da)
180+
protected override void SolveInstance(IGH_DataAccess DA)
181181
{
182182
//return;
183183
if (_state == 0)
@@ -191,10 +191,10 @@ protected override void SolveInstance(IGH_DataAccess da)
191191
// Add cancellation source to our bag
192192
var tokenSource = new CancellationTokenSource();
193193

194-
var currentWorker = BaseWorker.Duplicate($"Worker-{da.Iteration}", tokenSource.Token);
194+
var currentWorker = BaseWorker.Duplicate($"Worker-{DA.Iteration}", tokenSource.Token);
195195

196196
// Let the worker collect data.
197-
currentWorker.GetData(da, Params);
197+
currentWorker.GetData(DA, Params);
198198

199199
var currentRun = new Task<Task>(
200200
async () =>
@@ -226,7 +226,7 @@ protected override void SolveInstance(IGH_DataAccess da)
226226
if (_workers.Count > 0)
227227
{
228228
Interlocked.Decrement(ref _state);
229-
_workers[_state].Instance.SetData(da);
229+
_workers[_state].Instance.SetData(DA);
230230
}
231231

232232
if (_state != 0)

0 commit comments

Comments
 (0)