You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when linting is executed, the results only show the problematic line or area. The issue is that when only the line is displayed, it is difficult to convey to the user what exactly wrong, as the surrounging context is excluded.
Therefore, it would be nice to formatting the problematic line along with its surrounding context to clarify the issue more precisely.
Example
Current
error: return-in-defer
--> defer2.gno
|
6 | return
| ~~~~~~~
| Avoid using return statement inside a defer function
Updated
error: return-in-defer
--> defer2.gno
|
4 | defer func() { // <- prior context
5 | ... // <- omit the unrelated part
6 | return // <- main problematic line
| ~~~~~~~
| Avoid using return statement inside a defer function
The text was updated successfully, but these errors were encountered:
Currently, when linting is executed, the results only show the problematic line or area. The issue is that when only the line is displayed, it is difficult to convey to the user what exactly wrong, as the surrounging context is excluded.
Therefore, it would be nice to formatting the problematic line along with its surrounding context to clarify the issue more precisely.
Example
Current
Updated
The text was updated successfully, but these errors were encountered: