Skip to content

Add #pragma warning disable to generated code headers #197

Add #pragma warning disable to generated code headers

Add #pragma warning disable to generated code headers #197

Triggered via pull request March 9, 2026 10:20
Status Failure
Total duration 1m 19s
Artifacts

dotnet.yml

on: pull_request
build-netstandard20
24s
build-netstandard20
build-net46
1m 14s
build-net46
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 40 warnings
build-netstandard20
Error setting status: Resource not accessible by integration Request object: { "context": "Build (netstandard2.0)", "description": "The build for netstandard2.0 passed", "state": "success", "owner": "lofcz", "repo": "FastCloner", "sha": "a64306747258ae6c3d1ea7ba1ce81937ef398ce3", "target_url": "https://github.com/lofcz/FastCloner/actions/runs/22848824229" }
build-and-test (macos-latest)
Error setting status: Resource not accessible by integration Request object: { "context": "Tests (macos-latest)", "description": "The tests on macos-latest passed", "state": "success", "owner": "lofcz", "repo": "FastCloner", "sha": "a64306747258ae6c3d1ea7ba1ce81937ef398ce3", "target_url": "https://github.com/lofcz/FastCloner/actions/runs/22848824229" }
build-and-test (ubuntu-latest)
The strategy configuration was canceled because "build-and-test.macos-latest" failed
build-and-test (ubuntu-latest)
Error setting status: Resource not accessible by integration Request object: { "context": "Tests (ubuntu-latest)", "description": "The tests on ubuntu-latest failed", "state": "failure", "owner": "lofcz", "repo": "FastCloner", "sha": "a64306747258ae6c3d1ea7ba1ce81937ef398ce3", "target_url": "https://github.com/lofcz/FastCloner/actions/runs/22848824229" }
build-and-test (ubuntu-latest)
The operation was canceled.
build-and-test (windows-latest)
The strategy configuration was canceled because "build-and-test.macos-latest" failed
build-and-test (windows-latest)
Error setting status: Resource not accessible by integration Request object: { "context": "Tests (windows-latest)", "description": "The tests on windows-latest failed", "state": "failure", "owner": "lofcz", "repo": "FastCloner", "sha": "a64306747258ae6c3d1ea7ba1ce81937ef398ce3", "target_url": "https://github.com/lofcz/FastCloner/actions/runs/22848824229" }
build-and-test (windows-latest)
The operation was canceled.
build-net46
Error setting status: Resource not accessible by integration Request object: { "context": "Build (net46)", "description": "The build for net46 passed", "state": "success", "owner": "lofcz", "repo": "FastCloner", "sha": "a64306747258ae6c3d1ea7ba1ce81937ef398ce3", "target_url": "https://github.com/lofcz/FastCloner/actions/runs/22848824229" }
build-netstandard20: src/FastCloner/Code/FastClonerGenerator.cs#L686
Dereference of a possibly null reference.
build-netstandard20: src/FastCloner/Code/FastClonerGenerator.cs#L663
Dereference of a possibly null reference.
build-netstandard20: src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'entries' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-netstandard20: src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'buckets' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-netstandard20: src/FastCloner/Code/FastClonerCache.cs#L249
Possible null reference return.
build-netstandard20: src/FastCloner/Code/AhoCorasick.cs#L82
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-netstandard20: src/FastCloner/Code/AhoCorasick.cs#L66
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-netstandard20: src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Possible null reference return.
build-netstandard20: src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Converting null literal or possible null value to non-nullable type.
build-netstandard20: src/FastCloner/Code/Extensions.cs#L18
Possible null reference assignment.
build-and-test (macos-latest): src/FastCloner/Code/FastClonerGenerator.cs#L1126
Nullability of reference types in value of type 'TValue?' doesn't match target type 'TValue'.
build-and-test (macos-latest): src/FastCloner/Code/FastClonerGenerator.cs#L694
Dereference of a possibly null reference.
build-and-test (macos-latest): src/FastCloner/Code/FastClonerGenerator.cs#L686
Dereference of a possibly null reference.
build-and-test (macos-latest): src/FastCloner/Code/FastClonerGenerator.cs#L663
Dereference of a possibly null reference.
build-and-test (macos-latest): src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'entries' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-and-test (macos-latest): src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'buckets' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-and-test (macos-latest): src/FastCloner/Code/FieldAccessorGenerator.cs#L18
Possible null reference argument for parameter 'type' in 'UnaryExpression Expression.Convert(Expression expression, Type type)'.
build-and-test (macos-latest): src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Converting null literal or possible null value to non-nullable type.
build-and-test (macos-latest): src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Possible null reference argument for parameter 'type' in 'object? FastClonerCache.GetOrAddField(Type type, string name, Func<Type, object?> valueFactory)'.
build-and-test (ubuntu-latest): src/FastCloner/Code/FastClonerGenerator.cs#L686
Dereference of a possibly null reference.
build-and-test (ubuntu-latest): src/FastCloner/Code/FastClonerGenerator.cs#L663
Dereference of a possibly null reference.
build-and-test (ubuntu-latest): src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'entries' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-and-test (ubuntu-latest): src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'buckets' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-and-test (ubuntu-latest): src/FastCloner/Code/FastClonerCache.cs#L249
Possible null reference return.
build-and-test (ubuntu-latest): src/FastCloner/Code/AhoCorasick.cs#L82
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-and-test (ubuntu-latest): src/FastCloner/Code/AhoCorasick.cs#L66
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-and-test (ubuntu-latest): src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Converting null literal or possible null value to non-nullable type.
build-and-test (ubuntu-latest): src/FastCloner/Code/Extensions.cs#L18
Possible null reference assignment.
build-net46: src/FastCloner/Code/FastClonerGenerator.cs#L686
Dereference of a possibly null reference.
build-net46: src/FastCloner/Code/FastClonerGenerator.cs#L663
Dereference of a possibly null reference.
build-net46: src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'entries' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-net46: src/FastCloner/Code/FastCloneState.cs#L299
Non-nullable field 'buckets' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
build-net46: src/FastCloner/Code/FastClonerCache.cs#L249
Possible null reference return.
build-net46: src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Possible null reference return.
build-net46: src/FastCloner/Code/FieldAccessorGenerator.cs#L10
Converting null literal or possible null value to non-nullable type.
build-net46: src/FastCloner/Code/AhoCorasick.cs#L82
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-net46: src/FastCloner/Code/AhoCorasick.cs#L66
Argument of type 'Dictionary<char, AhoCorasick.Node>' cannot be used for parameter 'dictionary' of type 'Dictionary<char, AhoCorasick.Node?>' in 'Node? Extensions.GetValueOrDefault<char, Node?>(Dictionary<char, Node?> dictionary, char key, Node? defaultValue = null)' due to differences in the nullability of reference types.
build-net46: src/FastCloner/Code/Extensions.cs#L18
Possible null reference assignment.