Skip to content

Refactor demo solution #1

Refactor demo solution

Refactor demo solution #1

Triggered via pull request July 26, 2024 04:49
Status Success
Total duration 2m 38s
Artifacts

dotnet-ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
build (macos-latest, 3.12): src/CSnakes/Parser/PythonParser.Function.cs#L15
Possible null reference return.
build (macos-latest, 3.12): src/CSnakes/Parser/PythonParser.Function.cs#L16
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (macos-latest, 3.12): src/CSnakes/Parser/PythonParser.Parameters.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (macos-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?[]> Combinators.ManyDelimitedBy<PythonToken, PythonTypeSpec?, Token<PythonToken>>(TokenListParser<PythonToken, PythonTypeSpec?> parser, TokenListParser<PythonToken, Token<PythonToken>> delimiter, TokenListParser<PythonToken, Token<PythonToken>>? end = null)'.
build (macos-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L10
Argument of type 'TokenListParser<PythonToken, PythonTypeSpec?[]>' cannot be used for parameter 'parser' of type 'TokenListParser<PythonToken, PythonTypeSpec?[]?>' in 'TokenListParser<PythonToken, PythonTypeSpec?[]?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?[]?>(TokenListParser<PythonToken, PythonTypeSpec?[]?> parser, PythonTypeSpec?[]? defaultValue = null)' due to differences in the nullability of reference types.
build (macos-latest, 3.12): src/CSnakes.Runtime/PythonEnvironment.cs#L89
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
build (macos-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L40
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (macos-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L48
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'ReadOnlyDictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (macos-latest, 3.12)
A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "pythonnet
build (macos-latest, 3.12): src/CSnakes.Tests/TypeReflectionTests.cs#L32
Possible null reference argument for parameter 'pythonType' in 'TypeSyntax TypeReflection.AsPredefinedType(PythonTypeSpec pythonType)'.
build (ubuntu-latest, 3.12): src/CSnakes/Parser/PythonParser.Function.cs#L15
Possible null reference return.
build (ubuntu-latest, 3.12): src/CSnakes/Parser/PythonParser.Function.cs#L16
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (ubuntu-latest, 3.12): src/CSnakes/Parser/PythonParser.Parameters.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (ubuntu-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?[]> Combinators.ManyDelimitedBy<PythonToken, PythonTypeSpec?, Token<PythonToken>>(TokenListParser<PythonToken, PythonTypeSpec?> parser, TokenListParser<PythonToken, Token<PythonToken>> delimiter, TokenListParser<PythonToken, Token<PythonToken>>? end = null)'.
build (ubuntu-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L10
Argument of type 'TokenListParser<PythonToken, PythonTypeSpec?[]>' cannot be used for parameter 'parser' of type 'TokenListParser<PythonToken, PythonTypeSpec?[]?>' in 'TokenListParser<PythonToken, PythonTypeSpec?[]?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?[]?>(TokenListParser<PythonToken, PythonTypeSpec?[]?> parser, PythonTypeSpec?[]? defaultValue = null)' due to differences in the nullability of reference types.
build (ubuntu-latest, 3.12): src/CSnakes.Runtime/PythonEnvironment.cs#L89
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
build (ubuntu-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L40
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (ubuntu-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L48
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'ReadOnlyDictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (ubuntu-latest, 3.12)
A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "pythonnet
build (ubuntu-latest, 3.12): src/CSnakes.Tests/TypeReflectionTests.cs#L32
Possible null reference argument for parameter 'pythonType' in 'TypeSyntax TypeReflection.AsPredefinedType(PythonTypeSpec pythonType)'.
build (windows-latest, 3.12): src/CSnakes/Parser/PythonParser.Function.cs#L16
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (windows-latest, 3.12): src/CSnakes/Parser/PythonParser.Parameters.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?>(TokenListParser<PythonToken, PythonTypeSpec?> parser, PythonTypeSpec? defaultValue = null)'.
build (windows-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L11
Possible null reference argument for parameter 'parser' in 'TokenListParser<PythonToken, PythonTypeSpec?[]> Combinators.ManyDelimitedBy<PythonToken, PythonTypeSpec?, Token<PythonToken>>(TokenListParser<PythonToken, PythonTypeSpec?> parser, TokenListParser<PythonToken, Token<PythonToken>> delimiter, TokenListParser<PythonToken, Token<PythonToken>>? end = null)'.
build (windows-latest, 3.12): src/CSnakes/Parser/PythonParser.TypeDef.cs#L10
Argument of type 'TokenListParser<PythonToken, PythonTypeSpec?[]>' cannot be used for parameter 'parser' of type 'TokenListParser<PythonToken, PythonTypeSpec?[]?>' in 'TokenListParser<PythonToken, PythonTypeSpec?[]?> Combinators.OptionalOrDefault<PythonToken, PythonTypeSpec?[]?>(TokenListParser<PythonToken, PythonTypeSpec?[]?> parser, PythonTypeSpec?[]? defaultValue = null)' due to differences in the nullability of reference types.
build (windows-latest, 3.12): src/CSnakes.Runtime/PythonEnvironment.cs#L89
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
build (windows-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L40
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (windows-latest, 3.12): src/CSnakes.Runtime/CustomConverters/DictionaryConverter.cs#L48
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'ReadOnlyDictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
build (windows-latest, 3.12)
A stable release of a package should not have a prerelease dependency. Either modify the version spec of dependency "pythonnet
build (windows-latest, 3.12): src/CSnakes.Tests/TypeReflectionTests.cs#L32
Possible null reference argument for parameter 'pythonType' in 'TypeSyntax TypeReflection.AsPredefinedType(PythonTypeSpec pythonType)'.