analysis-demo

module
v0.0.0-...-7a5fecb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: Apache-2.0

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:

    1. Whether there are any identifiers' length is equal to 13.
    2. 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

Path Synopsis
cmd
lint
* Copyright (c) 2024, LokiWager * All rights reserved.
* Copyright (c) 2024, LokiWager * All rights reserved.
pkg
ast
cfg
tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL