

VSCode-compatible extension for specification and source code consistency checking
328
Automatically translated from Japanese by AI
This is a VSCode extension I created to verify whether the "variable function specifications" that I have AI generate during app development actually match the actual code. In addition to VSCode, it should basically be usable in IDEs where extensions can be installed in VSIX format. This time, I experimentally created it using HFSM (Hierarchical Finite State Machine).
Using AST via tree-sitter, it checks whether variables and functions in the specification are actually used in the actual source code (or vice versa), notifies of unused variables and functions that are not called from anywhere, and performs consistency checks on dependency relationship mappings.
The supported programming languages are:
Rust, TypeScript, JavaScript, Python, Go, C, C++, C#, Ruby, Swift, Kotlin, and Java. It searches for 関数名 and similar markers after heading level 3 (###) and performs checks on the corresponding line numbers and consistency.
When any errors are discovered, a dedicated MD file is created. You can show it to the AI and have it make corrections.
Error messages and other content are also multilingual, supporting:
Japanese, English, Simplified Chinese, Traditional Chinese, Korean, French, German, Spanish, Estonian, and Vietnamese.
A docs/variables'n'functions folder is created in the project folder, and files named [language]filename.md are created.
While I haven't specified a strict format, since function names and such generally come after heading level 3 in MD files, this time I've implemented parsing of heading level 3 and inline display in MD files. If you're concerned about this, feel free to modify the prompt as you like.
※Due to character limits, I couldn't include the prompt in this explanation section. Please check the DocsAuditor section of this note.
https://note.com/dandy_viper3242/n/n60059c786742
Reactions & commentsFeedback
Share your thoughts, bug reports, or suggestions directly with the developer
Log in to share your feedback
Log in to leave feedback