module
Version:
v0.0.0-...-7a5fecb
Opens a new window with list of versions in this module.
Published: Nov 24, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
analysis-demo
a demo for Golang Static Analysis
Background
-
lint: It is a demo for Golang AST. It is a simple lint tool to analyze:
- Whether there are any identifiers' length is equal to 13.
- Whether there are control structures in the code nested more than 4 levels.
-
parity: It is a demo for Golang CFG & SSA. It is a simple tool to analyze:
- The variable is even or odd.
-
type check: It is a pluggable type checker for Golang.
- Use comment to specify the type of the variable.
- Support custom type checking rules.
-
diagnostic: It is a SDK for Golang observation.
- It can be used to collect the metrics of the code.
- It can be generated profiling data for the code.
Directories
¶
Click to show internal directories.
Click to hide internal directories.