Skip to content

Commit f0ca245

Browse files
disable format check for generated code
1 parent e92314d commit f0ca245

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.editorconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -341,4 +341,7 @@ dotnet_style_readonly_field = false
341341
[test/Microsoft.ML.TestFrameworkCommon/Utility/*.cs]
342342
# IDE0073: Dont want license file header in code we are using from elsewhere
343343
dotnet_diagnostic.IDE0073.severity = none
344-
file_header_template = unset
344+
file_header_template = unset
345+
346+
[**/*.generated.cs]
347+
generated_code = true

src/Microsoft.ML.AutoML/SweepableEstimator/Estimators/ObjectDetection.cs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public override IEstimator<ITransformer> BuildFromOption(MLContext context, Obje
2626
WeightDecay = param.WeightDecay,
2727
PredictedBoundingBoxColumnName = param.PredictedBoundingBoxColumnName,
2828
ScoreThreshold = param.ScoreThreshold,
29-
Steps = param.Steps,
3029
IOUThreshold = param.IOUThreshold,
3130
};
3231

tools-local/Microsoft.ML.AutoML.SourceGenerator/SearchSpaceGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void Execute(GeneratorExecutionContext context)
128128
Properties = options,
129129
}.TransformText();
130130

131-
context.AddSource($"{className}.cs", code);
131+
context.AddSource($"{className}.generated.cs", code);
132132
}
133133
}
134134

0 commit comments

Comments
 (0)