How florianschanda/miss_hit works
MISS_HIT is a MATLAB/Octave code-quality tool suite. Users invoke a command on files, directories, or Simulink models; shared command-line processing discovers work packages and applies configuration, then tools analyze or modify source and report results. The suite includes style/formatting, metrics, linting, traceability, Simulink diffing, copyright updates, and bounded-model-checking support. The shared language front end tokenizes and parses MATLAB, with a separate Simulink parser for embedded MATLAB. Several tool implementations were not sampled, so their internal connections are shown only where documented or explicitly indicated by the source index.
Main entry points: command_line.py CLI processing · m_parser.py MATLAB parser · work_package.py Work packages · mh_style.py Style and formatting
Components 20
Invocation and dispatch
- CLI processing
miss_hit_core/command_line.py - Work packages
miss_hit_core/work_package.py
Language front end
- MATLAB lexer
miss_hit_core/m_lexer.py - MATLAB parser
miss_hit_core/m_parser.py - MATLAB AST
miss_hit_core/m_ast.py - Language profiles
miss_hit_core/m_language.py - Simulink parser
miss_hit_core/s_parser.py - Simulink AST
miss_hit_core/s_ast.py
Quality analysis
- Style and formatting
miss_hit_core/mh_style.py - Code metrics
miss_hit_core/mh_metric.py - Bug finding
miss_hit/mh_lint.py - Semantic analysis
miss_hit/m_sem.py
Advanced tools
- Traceability
miss_hit/mh_trace.py - Simulink diff
miss_hit/mh_diff.py - Copyright helper
miss_hit/mh_copyright.py - Bounded model checking
miss_hit/mh_bmc.py
Configuration and reporting
- Project configuration
miss_hit_core/cfg_tree.py - Analysis settings
miss_hit_core/config.py - Diagnostics
miss_hit_core/errors.py
Other components
- Engineer
Connections 26
- Engineer → CLI processing: invokes
README.md - CLI processing → Work packages: creates packages
miss_hit_core/command_line.py - Work packages → Simulink parser: parses models
miss_hit_core/work_package.py - Simulink parser → Simulink AST: builds model AST
miss_hit_core/s_parser.py - MATLAB parser → MATLAB lexer: consumes tokens
miss_hit_core/m_parser.py - MATLAB parser → MATLAB AST: builds syntax tree
miss_hit_core/m_parser.py - MATLAB lexer → Language profiles: uses profile
miss_hit_core/m_lexer.py - CLI processing → Project configuration: registers inputs
miss_hit_core/command_line.py - Work packages → Project configuration: gets configuration
miss_hit_core/work_package.py - Project configuration → Analysis settings: produces settings
miss_hit_core/cfg_tree.py - CLI processing → Style and formatting: runs tool
miss_hit_core/mh_style.py - CLI processing → Code metrics: runs tool
- CLI processing → Bug finding: runs tool
miss_hit/mh_lint.py - CLI processing → Traceability: runs tool
miss_hit/mh_trace.py - CLI processing → Simulink diff: runs tool
- CLI processing → Copyright helper: runs tool
miss_hit/mh_copyright.py - CLI processing → Bounded model checking: runs tool
miss_hit/mh_bmc.py - Style and formatting → MATLAB parser: uses parser
miss_hit_core/mh_style.py - Style and formatting → Diagnostics: reports findings
miss_hit_core/mh_style.py - Code metrics → MATLAB parser: uses parser
- Bug finding → MATLAB parser: uses parser
miss_hit/mh_lint.py - Bug finding → Semantic analysis: calls analysis
miss_hit/mh_lint.py - Traceability → MATLAB parser: uses parser
miss_hit/mh_trace.py - Copyright helper → MATLAB parser: uses parser
miss_hit/mh_copyright.py - Bounded model checking → MATLAB parser: uses parser
miss_hit/mh_bmc.py - Simulink diff → Simulink parser: uses model parser