authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
83 stars 37 forks source link

Fix incorrect context - part 2 #4904

Closed louischan-oursky closed 1 day ago

louischan-oursky commented 1 day ago

ref DEV-2307

louischan-oursky commented 1 day ago

Do not merge this yet. I am going to add a feature to check if the vetted positions are all used, just like eslint-comments/no-unused-disable

louischan-oursky commented 1 day ago

It took more time than I expect. The reason is multichecker.Main calls os.Exit, preventing me to report unused vetted positions outside the framework of analysis. The work around I made is to write a analyzer to report the unused positions at *ast.File.FileStart