Commit a0b7aef
committed
feat(iec61131): add static analysis module with CFG, complexity, and nesting depth calculations
- Introduced `analysis::cfg` for Control Flow Graph construction and analysis.
- Added functions for cyclomatic complexity calculations and nesting depth analysis.
- Enhanced documentation with examples for new analysis features.
BREAKING CHANGE: Updated `plceye` to migrate from `iecst` to `iec61131` v0.7.0 for ST parsing and analysis, improving error reporting and language support.
fix(plceye): adapt analysis modules to use new AST structure from `iec61131`
- Updated references in `l5x_analysis`, `st_parsing`, and `complexity` modules to use the new `iec61131` analysis functions.
- Maintained backward compatibility for existing rules and detectors.
chore(iec61131): update version to 0.7.0 and enhance crate description
- Updated `Cargo.toml` to reflect new version and added static analysis capabilities.
- Improved changelog with detailed descriptions of new features and changes.1 parent 74f1a66 commit a0b7aef
File tree
16 files changed
+971
-66
lines changed- iec61131
- src
- analysis
- plceye
- src
- analysis
- rules
16 files changed
+971
-66
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
3 | 21 | | |
4 | | - | |
5 | 22 | | |
6 | 23 | | |
7 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments