Skip to content

style: fix 6 mh_style violations (CI lint green)#141

Merged
HanSur94 merged 1 commit into
mainfrom
claude/lint-fix-mh-style
May 13, 2026
Merged

style: fix 6 mh_style violations (CI lint green)#141
HanSur94 merged 1 commit into
mainfrom
claude/lint-fix-mh-style

Conversation

@HanSur94

Copy link
Copy Markdown
Owner

Summary

Brings the MATLAB Lint CI job to green by fixing all 6 mh_style violations across libs/ tests/ examples/:

After fixes: mh_style libs/ tests/ examples/ reports 465 file(s) analysed, everything seems fine.

Why bundled

The 3 pre-existing issues were already failing CI on main before #139 merged. Without fixing them, the lint job stays red even after my own 3 are fixed, since CI runs mh_style on the whole tree on every push. Drive-by fix in scope.

Resolutions

  • 165-char line → wrapped to 3-line comment block above the property.
  • ...\n && expr&& ...\n expr (operator at end of previous line; MISS_HIT operator_after_continuation rule).
  • TestClearPanelHelper_TestClearPanelHelper (renamed file + class declaration + 2 callsites in tests/test_create_event_dialog.m).

Test plan

  • mh_style libs/ tests/ examples/ clean (verified locally)
  • test_create_event_dialog.m still passes 9/9 after rename
  • test_event_pick_mode.m still passes 12/12 after continuation fixes
  • CI lint job green (will verify on push)

Note: the MATLAB Tests / Octave failures currently showing on main (TestCompanionEventViewer / TimeRangeSelector buildGraphics_) are pre-existing since 2026-05-13 18:06 and not addressed here — separate issue.

🤖 Generated with Claude Code

CI lint job revealed 6 style issues in mh_style libs/ tests/ examples/:
- DashboardEngine.m:80          165-char comment (pre-existing 260513-q7w fu2)
- DashboardToolbar.m:316        && continuation (pre-existing)
- FastSenseWidget.m:454         && continuation (pre-existing)
- TestClearPanelHelper_.m:1     class naming scheme violation (PR scope)
- test_event_pick_mode.m:411    && continuation (PR scope)
- test_event_pick_mode.m:418    && continuation (PR scope)

Resolutions:
- Wrap the 165-char comment as a 3-line block above the property.
- Replace `...\n && expr` with `&& ...\n expr` (operator at end of
  previous line per MISS_HIT operator_after_continuation rule).
- Rename TestClearPanelHelper_ -> TestClearPanelHelper (file + class
  declaration + 2 callsites in tests/test_create_event_dialog.m).

After fixes: `mh_style libs/ tests/ examples/` reports
"465 file(s) analysed, everything seems fine".

Drive-by fixes for the 3 pre-existing issues are included because the
CI job lints the whole tree on every push — without them, this PR's
lint stays red regardless of my own files being clean.

12/12 test_event_pick_mode + 9/9 test_create_event_dialog still PASS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@HanSur94 HanSur94 merged commit f55d340 into main May 13, 2026
4 checks passed
@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libs/Dashboard/DashboardToolbar.m 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'FastSense Performance'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: 3391e5d Previous: 0613d40 Ratio
Instantiation mean std(1M) 0.916 ms 0.703 ms 1.30
Zoom cycle mean (1M) 16.5 ms 14.869 ms 1.11
Instantiation mean std(5M) 1.6 ms 0.479 ms 3.34
Zoom cycle mean (5M) 17.247 ms 14.874 ms 1.16
Downsample mean std10M) 0.11 ms 0.045 ms 2.44
Instantiation mean std10M) 1.358 ms 0.773 ms 1.76
Render mean std10M) 5.64 ms 1.336 ms 4.22
Zoom cycle mean (10M) 16.831 ms 15.265 ms 1.10
Zoom cycle mean std10M) 0.785 ms 0.662 ms 1.19
Downsample mean std50M) 0.214 ms 0.121 ms 1.77
Render mean std50M) 3.267 ms 0.965 ms 3.39
Zoom cycle mean (50M) 17.482 ms 14.92 ms 1.17
Zoom cycle mean (100M) 17.666 ms 14.86 ms 1.19
Downsample mean ( std00M) 4.098 ms 0.415 ms 9.87
Instantiation mean ( std00M) 302.448 ms 157.602 ms 1.92
Render mean (500M) 360.967 ms 302.487 ms 1.19
Render mean ( std00M) 61.867 ms 1.217 ms 50.84
Zoom cycle mean (500M) 17.472 ms 15.87 ms 1.10
Dashboard live tick stdmean 2.581 ms 1.52 ms 1.70
Dashboard page switch stdmean 1.032 ms 0.351 ms 2.94
Dashboard broadcastTimeRange mean 0.089 ms 0.06 ms 1.48

This comment was automatically generated by workflow using github-action-benchmark.

CC: @HanSur94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant