Skip to content

Commit

Permalink
Make SyntaxError diagnostic information
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Dec 5, 2024
1 parent 9d68eec commit 5ff69bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/steep/diagnostic/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ def self.default
SetterBodyTypeMismatch => :information,
SetterReturnTypeMismatch => :information,
ClassModuleMismatch => :error,
SyntaxError => :hint,
SyntaxError => :information,
TypeArgumentMismatchError => :hint,
UnannotatedEmptyCollection => :warning,
UnexpectedBlockGiven => :warning,
Expand Down Expand Up @@ -1069,7 +1069,7 @@ def self.strict
SetterBodyTypeMismatch => :error,
SetterReturnTypeMismatch => :error,
ClassModuleMismatch => :error,
SyntaxError => :hint,
SyntaxError => :information,
TypeArgumentMismatchError => :error,
UnannotatedEmptyCollection => :error,
UnexpectedBlockGiven => :error,
Expand Down Expand Up @@ -1128,7 +1128,7 @@ def self.lenient
SetterBodyTypeMismatch => nil,
SetterReturnTypeMismatch => nil,
ClassModuleMismatch => nil,
SyntaxError => :hint,
SyntaxError => :information,
TypeArgumentMismatchError => nil,
UnannotatedEmptyCollection => :hint,
UnexpectedBlockGiven => :hint,
Expand Down

0 comments on commit 5ff69bd

Please sign in to comment.