--- - file: argument_type_mismatch.rb diagnostics: - range: start: line: 1 character: 9 end: line: 1 character: 11 severity: ERROR message: |- Cannot pass a value of type `::String` as an argument of type `::int` ::String <: ::int ::String <: (::Integer | ::_ToInt) ::String <: ::Integer ::Object <: ::Integer ::BasicObject <: ::Integer code: Ruby::ArgumentTypeMismatch - file: block_body_type_mismatch.rb diagnostics: - range: start: line: 1 character: 30 end: line: 1 character: 36 severity: ERROR message: |- Cannot allow block body have type `::String` because declared as type `::Integer` ::String <: ::Integer ::Object <: ::Integer ::BasicObject <: ::Integer code: Ruby::BlockBodyTypeMismatch - file: block_type_mismatch.rb diagnostics: - range: start: line: 3 character: 8 end: line: 3 character: 12 severity: ERROR message: |- Cannot pass a value of type `^(untyped, untyped, untyped) -> untyped` as a block-pass-argument of type `^(::Integer) -> void` ^(untyped, untyped, untyped) -> untyped <: ^(::Integer) -> void code: Ruby::BlockTypeMismatch - file: break_type_mismatch.rb diagnostics: - range: start: line: 1 character: 10 end: line: 1 character: 18 severity: ERROR message: |- Cannot break with a value of type `::String` because type `::Integer` is assumed ::String <: ::Integer ::Object <: ::Integer ::BasicObject <: ::Integer code: Ruby::BreakTypeMismatch - file: else_on_exhaustive_case.rb diagnostics: - range: start: line: 11 character: 2 end: line: 11 character: 26 severity: ERROR message: The branch is unreachable because the condition is exhaustive code: Ruby::ElseOnExhaustiveCase - file: incompatible_annotation.rb diagnostics: - range: start: line: 5 character: 2 end: line: 5 character: 8 severity: ERROR message: |- Type annotation about `a` is incompatible since ::String <: ::Array[::Integer] doesn't hold ::String <: ::Array[::Integer] ::Object <: ::Array[::Integer] ::BasicObject <: ::Array[::Integer] code: Ruby::IncompatibleAnnotation - file: incompatible_argument.rb diagnostics: - range: start: line: 1 character: 6 end: line: 1 character: 8 severity: ERROR message: |- Cannot find method `at` of type `::Array[::Integer]` with compatible arity Method types: def at: (::int) -> (::Integer | nil) code: Ruby::IncompatibleArguments - file: incompatible_assignment.rb diagnostics: - range: start: line: 2 character: 0 end: line: 2 character: 5 severity: ERROR message: |- Cannot assign a value of type `::Integer` to a variable of type `::String` ::Integer <: ::String ::Numeric <: ::String ::Object <: ::String ::BasicObject <: ::String code: Ruby::IncompatibleAssignment - range: start: line: 5 character: 0 end: line: 5 character: 7 severity: ERROR message: |- Cannot assign a value of type `::Integer` to a constant of type `::String` ::Integer <: ::String ::Numeric <: ::String ::Object <: ::String ::BasicObject <: ::String code: Ruby::IncompatibleAssignment - range: start: line: 8 character: 0 end: line: 8 character: 9 severity: ERROR message: |- Cannot assign a value of type `::Symbol` to a variable of type `::Integer` ::Symbol <: ::Integer ::Object <: ::Integer ::BasicObject <: ::Integer code: Ruby::IncompatibleAssignment - file: method_arity_mismatch.rb diagnostics: - range: start: line: 3 character: 9 end: line: 3 character: 12 severity: ERROR message: Method parameters are incompatible with declaration `() -> void` code: Ruby::MethodArityMismatch - range: start: line: 8 character: 11 end: line: 8 character: 14 severity: ERROR message: Method parameters are incompatible with declaration `(::String) -> void` code: Ruby::MethodArityMismatch - file: method_body_type_mismatch.rb diagnostics: - range: start: line: 3 character: 2 end: line: 5 character: 5 severity: ERROR message: |- Cannot allow method body have type `::String` because declared as type `::Integer` ::String <: ::Integer ::Object <: ::Integer ::BasicObject <: ::Integer code: Ruby::MethodBodyTypeMismatch - file: method_definition_missing.rb diagnostics: - range: start: line: 1 character: 6 end: line: 1 character: 29 severity: ERROR message: Cannot find implementation of method `::MethodDefinitionMissing#foo` code: Ruby::MethodDefinitionMissing - file: method_return_type_annotation_mismatch.rb diagnostics: - range: start: line: 3 character: 2 end: line: 6 character: 5 severity: ERROR message: |- Annotation `@type return` specifies type `::Integer` where declared as type `::String` ::Integer <: ::String ::Numeric <: ::String ::Object <: ::String ::BasicObject <: ::String code: Ruby::MethodReturnTypeAnnotationMismatch - file: missing_keyword.rb diagnostics: - range: start: line: 1 character: 23 end: line: 1 character: 32 severity: ERROR message: 'Cannot omit required keywords: `foo`' code: Ruby::MissingKeyword - file: no_method.rb diagnostics: - range: start: line: 1 character: 2 end: line: 1 character: 5 severity: ERROR message: Type `::Integer` does not have method `foo` code: Ruby::NoMethod - file: required_block_missing.rb diagnostics: - range: start: line: 1 character: 4 end: line: 1 character: 7 severity: ERROR message: The method cannot be called without a block code: Ruby::RequiredBlockMissing - file: return_type_mismatch.rb diagnostics: - range: start: line: 4 character: 4 end: line: 4 character: 13 severity: ERROR message: |- The method cannot return a value of type `::Integer` because declared as type `::String` ::Integer <: ::String ::Numeric <: ::String ::Object <: ::String ::BasicObject <: ::String code: Ruby::ReturnTypeMismatch - file: unexpected_block_given.rb diagnostics: - range: start: line: 1 character: 10 end: line: 1 character: 17 severity: ERROR message: The method cannot be called with a block code: Ruby::UnexpectedBlockGiven - file: unexpected_dynamic_method.rb diagnostics: - range: start: line: 1 character: 6 end: line: 1 character: 29 severity: ERROR message: "@dynamic annotation contains unknown method name `foo`" code: Ruby::UnexpectedDynamicMethod - file: unexpected_jump.rb diagnostics: - range: start: line: 1 character: 0 end: line: 1 character: 5 severity: ERROR message: Cannot jump from here code: Ruby::UnexpectedJump - range: start: line: 3 character: 0 end: line: 3 character: 4 severity: ERROR message: Cannot jump from here code: Ruby::UnexpectedJump - file: unexpected_jump_value.rb diagnostics: - range: start: line: 2 character: 2 end: line: 2 character: 10 severity: ERROR message: The value given to break will be ignored code: Ruby::UnexpectedJumpValue - file: unexpected_keyword.rb diagnostics: - range: start: line: 1 character: 26 end: line: 1 character: 45 severity: ERROR message: 'Cannot specify unexpected keyword arguments: `bar`' code: Ruby::UnexpectedKeyword - file: unexpected_splat.rb diagnostics: - range: start: line: 1 character: 13 end: line: 1 character: 18 severity: ERROR message: Hash splat is given with object other than `Hash[X, Y]` code: Ruby::UnexpectedSplat - file: unexpected_yield.rb diagnostics: - range: start: line: 4 character: 4 end: line: 4 character: 9 severity: ERROR message: Cannot detect the type of the expression code: Ruby::FallbackAny - range: start: line: 4 character: 4 end: line: 4 character: 9 severity: ERROR message: No block given for `yield` code: Ruby::UnexpectedYield - file: unknown_constant_assigned.rb diagnostics: - range: start: line: 2 character: 2 end: line: 2 character: 5 severity: ERROR message: Cannot find the declaration of constant `FOO` code: Ruby::UnknownConstantAssigned - range: start: line: 4 character: 2 end: line: 4 character: 5 severity: ERROR message: Cannot detect the type of the expression code: Ruby::FallbackAny - range: start: line: 4 character: 2 end: line: 4 character: 10 severity: ERROR message: Cannot find the declaration of constant `FOO::BAR` code: Ruby::UnknownConstantAssigned - range: start: line: 6 character: 2 end: line: 6 character: 7 severity: ERROR message: Cannot find the declaration of constant `::FOO` code: Ruby::UnknownConstantAssigned - file: unresolved_overloading.rb diagnostics: - range: start: line: 1 character: 0 end: line: 1 character: 6 severity: ERROR message: |- Cannot find compatible overloading of method `+` of type `::Integer` Method types: def +: (::Integer) -> ::Integer | (::Float) -> ::Float | (::Rational) -> ::Rational | (::Complex) -> ::Complex code: Ruby::UnresolvedOverloading - file: unsupported_syntax.rb diagnostics: - range: start: line: 1 character: 0 end: line: 2 character: 3 severity: ERROR message: sclass receiver must be instance type or singleton type, but type given `(::Integer | ::String | nil)` code: Ruby::UnsupportedSyntax