Skip to content

Code-compliance & Documentation-Compliance fixes#3576

Open
michaelhoehn wants to merge 6 commits into
developfrom
BHoM_Engine-#3575-Fix-Code-Compliance
Open

Code-compliance & Documentation-Compliance fixes#3576
michaelhoehn wants to merge 6 commits into
developfrom
BHoM_Engine-#3575-Fix-Code-Compliance

Conversation

@michaelhoehn
Copy link
Copy Markdown
Contributor

@michaelhoehn michaelhoehn commented Mar 25, 2026

NOTE: Depends on

Issues addressed by this PR

Closes #3575
Resolves all MethodNameContainsFileName and ModifyReturnsDifferentType compliance
failures across BHoM_Engine.

Method renames:

File Old Name New Name
Analytical_Engine/Query/ExternalPolycurve.cs ExternalPolyCurve ExternalPolycurve
BHoM_Engine/Compute/SuppressRecording.cs StartSuppressRecordingEvents StartSuppressRecording
BHoM_Engine/Compute/SuppressRecording.cs StopSuppressRecordingEvents StopSuppressRecording
BHoM_Engine/Modify/SplitAndRemoveAtIndexes.cs RemoveAndSplitAtIndexes SplitAndRemoveAtIndexes
Data_Engine/Query/FurthestSquareDistance.cs FurthestTightSquareDistance FurthestSquareDistance
Environment_Engine/Compute/MapToLevel.cs MaptoLevel MapToLevel
Environment_Engine/Modify/ReplaceSpaceName.cs ReplaceConnectedSpaceName ReplaceSpaceName
Graphics_Engine/Modify/View/DependencyChart.cs DependencyChartView DependencyChart
Search_Engine/Compute/Ratios/FuzzyMatch.cs MatchScore FuzzyMatch

Visibility change:

  • Graphics_Engine/Modify/RepresentationFragments/Boxes.cs - RepresentationFragment
    changed public to private, consistent with Links.cs. UI access preserved via
    the public IRepresentationFragment dispatcher.

Signature change:

  • Environment_Engine/Modify/ReplaceSpaceName.cs - first parameter widened from
    List<Panel> to IEnumerable<Panel>. Return type remains List<Panel>,
    satisfying ModifyReturnsDifferentType. All existing call sites remain valid.

Internal caller updates:

  • Data_Engine/Query/ClosestData.cs - updated call from FurthestTightSquareDistance
    to FurthestSquareDistance. All other renames verified to have no additional
    internal callers.

Test files

Changelog

  • Fixed method naming compliance failures across Analytical_Engine, BHoM_Engine,
    Data_Engine, Environment_Engine, Graphics_Engine, and Search_Engine
  • ReplaceSpaceName first parameter widened to IEnumerable<Panel>
  • Added missing Description, Input, and Output attributes to the
    PointMatrix<T> overload of ClosestData in Data_Engine

Additional comments

The Boxes.cs visibility change warrants note for reviewers: the method is an
internal dispatch target for the IRepresentationFragment pattern and was never
intended to be a direct public API entry point. Making it private aligns it with
Links.cs, which has always used this same pattern correctly.


Note

Medium Risk
Mostly mechanical renames, but they change public API surface (method names, one signature/return behavior, and one method visibility) which may break external callers not updated in this repo.

Overview
Primarily API/compliance cleanup: multiple engine methods are renamed to match file naming conventions (e.g. ExternalPolycurve, Start/StopSuppressRecording, SplitAndRemoveAtIndexes, FurthestSquareDistanceTight, MapToLevel, ReplaceSpaceName, DependencyChart, FuzzyMatch), with corresponding internal call updates.

A few targeted behavior/signature adjustments accompany the renames: ReplaceSpaceName now accepts IEnumerable<Panel> and returns null when input is null (and materializes to List on early-exit error), Boxes.RepresentationFragment is made private (intended to be accessed via the dispatcher), and PointMatrix<T>.ClosestData gains missing Description/Input/Output attributes.

Written by Cursor Bugbot for commit de4236e. This will update automatically on new commits. Configure here.

@michaelhoehn
Copy link
Copy Markdown
Contributor Author

@BHoMBot check compliance

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

@michaelhoehn to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 1658 requests in the queue ahead of you.

@michaelhoehn
Copy link
Copy Markdown
Contributor Author

@BHoMBot check compliance

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

@michaelhoehn to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 1665 requests in the queue ahead of you.

@michaelhoehn
Copy link
Copy Markdown
Contributor Author

@BHoMBot check installer

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

@michaelhoehn to confirm, the following actions are now queued:

  • check installer

There are 1646 requests in the queue ahead of you.

@michaelhoehn
Copy link
Copy Markdown
Contributor Author

@BHoMBot check required

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

@michaelhoehn to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

There are 1648 requests in the queue ahead of you.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

Please be advised that the check with reference 68627551650 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 25, 2026

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Mar 26, 2026

Please be advised that the check with reference 68632325990 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 17, 2026

Please be advised that the check with reference 71764110279 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 18, 2026

Please be advised that the check with reference 71927932497 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 19, 2026

Please be advised that the check with reference 71989975942 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 20, 2026

Please be advised that the check with reference 72063426696 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 21, 2026

Please be advised that the check with reference 72351210774 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 23, 2026

Please be advised that the check with reference 72622876350 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 24, 2026

Please be advised that the check with reference 72818277483 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 29 additional annotations waiting, made up of 29 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 25, 2026

Please be advised that the check with reference 72987070608 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 29 additional annotations waiting, made up of 29 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 28, 2026

Please be advised that the check with reference 73329644600 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 29, 2026

Please be advised that the check with reference 73515039866 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented Apr 30, 2026

Please be advised that the check with reference 73717581850 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 1, 2026

Please be advised that the check with reference 73893933145 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 2, 2026

Please be advised that the check with reference 74023712741 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 3, 2026

Please be advised that the check with reference 74089238266 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 4, 2026

Please be advised that the check with reference 74169846400 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 5, 2026

Please be advised that the check with reference 74352899574 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 6, 2026

Please be advised that the check with reference 74547126061 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 7, 2026

Please be advised that the check with reference 74752190530 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 8, 2026

Please be advised that the check with reference 74952015286 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 9, 2026

Please be advised that the check with reference 75129426801 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 10, 2026

Please be advised that the check with reference 75203216059 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 11, 2026

Please be advised that the check with reference 75285489568 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 12, 2026

Please be advised that the check with reference 75496109170 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 13, 2026

Please be advised that the check with reference 75713437562 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 14, 2026

Please be advised that the check with reference 75926434354 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 15, 2026

Please be advised that the check with reference 76120698562 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 16, 2026

Please be advised that the check with reference 76292533947 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 17, 2026

Please be advised that the check with reference 76369390307 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 18, 2026

Please be advised that the check with reference 76457097234 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 19, 2026

Please be advised that the check with reference 76665713369 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 27 additional annotations waiting, made up of 27 errors and 0 warnings.

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

Labels

status:do-not-merge For instance, test PR, for discussion, or dependant PRs not ready for merge type:compliance Non-conforming to code guidelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix code compliance check failures

1 participant