FlagDuplicates
CA1510 Complete
This commit is contained in:
@ -10,25 +10,6 @@ namespace Adaptation.FileHandlers.pcl;
|
||||
#nullable enable
|
||||
|
||||
internal class Header
|
||||
// internal record Header([property: JsonPropertyName("Operator")] string Operator,
|
||||
// [property: JsonPropertyName("Start Voltage")] string StartVoltage,
|
||||
// [property: JsonPropertyName("Wafer")] string Wafer,
|
||||
// [property: JsonPropertyName("Stop Voltage")] string StopVoltage,
|
||||
// [property: JsonPropertyName("Lot")] string Lot,
|
||||
// [property: JsonPropertyName("Ramp Rate")] string RampRate,
|
||||
// [property: JsonPropertyName("Plan")] string Plan,
|
||||
// [property: JsonPropertyName("G limit")] string GLimit,
|
||||
// [property: JsonPropertyName("Date")] string Date,
|
||||
// [property: JsonPropertyName("Time")] string Time,
|
||||
// [property: JsonPropertyName("Setup File")] string SetupFile,
|
||||
// [property: JsonPropertyName("Wafer size")] string WaferSize,
|
||||
// [property: JsonPropertyName("Folder")] string Folder,
|
||||
// [property: JsonPropertyName("Ccomp")] string Ccomp,
|
||||
// [property: JsonPropertyName("Pattern")] string Pattern,
|
||||
// [property: JsonPropertyName("Area")] string Area,
|
||||
// [property: JsonPropertyName("Cond Type")] string CondType,
|
||||
// [property: JsonPropertyName("Rho Method")] string RhoMethod,
|
||||
// [property: JsonPropertyName("Model")] string Model)
|
||||
{
|
||||
|
||||
[JsonConstructor]
|
||||
@ -128,7 +109,7 @@ internal class Header
|
||||
return new(results);
|
||||
}
|
||||
|
||||
public static Header? Get(ReadOnlyCollection<string> lines, string site, string summaryLine)
|
||||
public static Header? Get(Constant constant, ReadOnlyCollection<string> lines)
|
||||
{
|
||||
Header? result;
|
||||
string json;
|
||||
@ -142,11 +123,11 @@ internal class Header
|
||||
ReadOnlyCollection<JsonProperty> jsonProperties = GetJsonProperties();
|
||||
foreach (string line in lines)
|
||||
{
|
||||
if (line.Contains(site))
|
||||
if (line.Contains(constant.Site))
|
||||
found = true;
|
||||
if (!found)
|
||||
continue;
|
||||
if (line == summaryLine)
|
||||
if (line == constant.SummaryLine)
|
||||
break;
|
||||
foreach (JsonProperty jsonProperty in jsonProperties)
|
||||
{
|
||||
|
Reference in New Issue
Block a user