Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
162 changes: 81 additions & 81 deletions results/artemis/findings.json

Large diffs are not rendered by default.

126 changes: 63 additions & 63 deletions results/graylog/findings.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions results/shopware/findings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3498,7 +3498,7 @@
"simulated": false,
"target_link_removed": false
},
"summary": "`src/Core/System` has 1 link(s) into `src/Core/Maintenance` (src/Core/System/Consent/Subscriber/SetupStagingEventSubscriber.php:7), while `src/Core/Maintenance` uses `src/Core/System` 23 times. `src/Core/System` is used by 1341 files, so the loop couples them. Moving `SetupStagingEvent` removes the link.",
"summary": "`src/Core/System` has 1 link(s) into `src/Core/Maintenance` (src/Core/System/Consent/Subscriber/SetupStagingEventSubscriber.php:7), while `src/Core/Maintenance` uses `src/Core/System` 23 times. `src/Core/System` is used by 1341 files, so the loop couples them. The candidate fix is to move `SetupStagingEvent` into `src/Core/System`.",
"targets": [
{
"node_id": "M:src/Core/System",
Expand Down Expand Up @@ -35562,7 +35562,7 @@
"simulated": false,
"target_link_removed": false
},
"summary": "`src/Core/Framework` has 1 link(s) into `src/Elasticsearch` (src/Core/Framework/DataAbstractionLayer/DataAbstractionLayerException.php:41), while `src/Elasticsearch` uses `src/Core/Framework` 592 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. Moving `ElasticsearchProductException` removes the link.",
"summary": "`src/Core/Framework` has 1 link(s) into `src/Elasticsearch` (src/Core/Framework/DataAbstractionLayer/DataAbstractionLayerException.php:41), while `src/Elasticsearch` uses `src/Core/Framework` 592 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. The candidate fix is to move `ElasticsearchProductException` into `src/Core/Framework`.",
"targets": [
{
"node_id": "M:src/Core/Framework",
Expand Down Expand Up @@ -39405,7 +39405,7 @@
"simulated": true,
"target_link_removed": true
},
"summary": "`src/Core/Framework` has 3 link(s) into `src/Storefront/Controller` (src/Core/Framework/DependencyInjection/script.php:20), while `src/Storefront/Controller` uses `src/Core/Framework` 139 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. Moving `ScriptController` removes the link.",
"summary": "`src/Core/Framework` has 3 link(s) into `src/Storefront/Controller` (src/Core/Framework/DependencyInjection/script.php:20), while `src/Storefront/Controller` uses `src/Core/Framework` 139 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. The candidate fix is to move `ScriptController` into `src/Core/Framework`.",
"targets": [
{
"node_id": "M:src/Core/Framework",
Expand Down Expand Up @@ -44406,7 +44406,7 @@
"action": "move_symbol",
"from": "M:src/Storefront/Framework",
"symbol": "CookieProviderInterface",
"text": "Moving `CookieProviderInterface` removes the link.",
"text": "The candidate fix is to move `CookieProviderInterface` into `src/Core/Content`.",
"to": "M:src/Core/Content"
},
"model": null,
Expand Down Expand Up @@ -44499,7 +44499,7 @@
"simulated": true,
"target_link_removed": true
},
"summary": "`src/Core/Content` has 2 link(s) into `src/Storefront/Framework` (src/Core/Content/Cookie/Service/CookieProvider.php:17), while `src/Storefront/Framework` uses `src/Core/Content` 67 times. `src/Core/Content` is used by 463 files, so the loop couples them. Moving `CookieProviderInterface` removes the link.",
"summary": "`src/Core/Content` has 2 link(s) into `src/Storefront/Framework` (src/Core/Content/Cookie/Service/CookieProvider.php:17), while `src/Storefront/Framework` uses `src/Core/Content` 67 times. `src/Core/Content` is used by 463 files, so the loop couples them. The candidate fix is to move `CookieProviderInterface` into `src/Core/Content`.",
"targets": [
{
"node_id": "M:src/Core/Content",
Expand Down Expand Up @@ -45290,7 +45290,7 @@
"action": "move_symbol",
"from": "M:src/Core/Maintenance",
"symbol": "SetupStagingEvent",
"text": "Moving `SetupStagingEvent` removes the link.",
"text": "The candidate fix is to move `SetupStagingEvent` into `src/Core/Framework`.",
"to": "M:src/Core/Framework"
},
"model": null,
Expand Down Expand Up @@ -45395,7 +45395,7 @@
"simulated": true,
"target_link_removed": true
},
"summary": "`src/Core/Framework` has 1 link(s) into `src/Core/Maintenance` (src/Core/Framework/Api/Controller/InfoController.php:32), while `src/Core/Maintenance` uses `src/Core/Framework` 123 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. Moving `SetupStagingEvent` removes the link.",
"summary": "`src/Core/Framework` has 1 link(s) into `src/Core/Maintenance` (src/Core/Framework/Api/Controller/InfoController.php:32), while `src/Core/Maintenance` uses `src/Core/Framework` 123 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. The candidate fix is to move `SetupStagingEvent` into `src/Core/Framework`.",
"targets": [
{
"node_id": "M:src/Core/Framework",
Expand Down Expand Up @@ -50756,7 +50756,7 @@
"action": "move_symbol",
"from": "M:src/Administration",
"symbol": "Administration",
"text": "Moving `Administration` removes the link.",
"text": "The candidate fix is to move `Administration` into `src/Core/System`.",
"to": "M:src/Core/System"
},
"model": null,
Expand Down Expand Up @@ -50831,7 +50831,7 @@
"simulated": true,
"target_link_removed": false
},
"summary": "`src/Core/System` has 1 link(s) into `src/Administration` (src/Core/System/Snippet/SnippetFileHandler.php:5), while `src/Administration` uses `src/Core/System` 29 times. `src/Core/System` is used by 1341 files, so the loop couples them. Moving `Administration` removes the link.",
"summary": "`src/Core/System` has 1 link(s) into `src/Administration` (src/Core/System/Snippet/SnippetFileHandler.php:5), while `src/Administration` uses `src/Core/System` 29 times. `src/Core/System` is used by 1341 files, so the loop couples them. The candidate fix is to move `Administration` into `src/Core/System`.",
"targets": [
{
"node_id": "M:src/Core/System",
Expand Down Expand Up @@ -56141,7 +56141,7 @@
"action": "move_symbol",
"from": "M:src/Core/Migration",
"symbol": "Migration1610439375AddEUStatesAsDefaultForIntraCommunityDeliveryLabel",
"text": "Moving `Migration1610439375AddEUStatesAsDefaultForIntraCommunityDeliveryLabel` removes the link.",
"text": "The candidate fix is to move `Migration1610439375AddEUStatesAsDefaultForIntraCommunityDeliveryLabel` into `src/Core/Checkout`.",
"to": "M:src/Core/Checkout"
},
"model": null,
Expand Down Expand Up @@ -56210,7 +56210,7 @@
"simulated": true,
"target_link_removed": true
},
"summary": "`src/Core/Checkout` has 1 link(s) into `src/Core/Migration` (src/Core/Checkout/DocumentV2/Config/DocumentDisplayOptions.php:6), while `src/Core/Migration` uses `src/Core/Checkout` 64 times. `src/Core/Checkout` is used by 335 files, so the loop couples them. Moving `Migration1610439375AddEUStatesAsDefaultForIntraCommunityDeliveryLabel` removes the link.",
"summary": "`src/Core/Checkout` has 1 link(s) into `src/Core/Migration` (src/Core/Checkout/DocumentV2/Config/DocumentDisplayOptions.php:6), while `src/Core/Migration` uses `src/Core/Checkout` 64 times. `src/Core/Checkout` is used by 335 files, so the loop couples them. The candidate fix is to move `Migration1610439375AddEUStatesAsDefaultForIntraCommunityDeliveryLabel` into `src/Core/Checkout`.",
"targets": [
{
"node_id": "M:src/Core/Checkout",
Expand Down Expand Up @@ -56377,7 +56377,7 @@
"action": "move_symbol",
"from": "M:src/Core/Installer",
"symbol": "Installer",
"text": "Moving `Installer` removes the link.",
"text": "The candidate fix is to move `Installer` into `src/Core/Framework`.",
"to": "M:src/Core/Framework"
},
"model": null,
Expand Down Expand Up @@ -56440,7 +56440,7 @@
"simulated": true,
"target_link_removed": true
},
"summary": "`src/Core/Framework` has 1 link(s) into `src/Core/Installer` (src/Core/Framework/Adapter/Asset/AssetInstallCommand.php:11), while `src/Core/Installer` uses `src/Core/Framework` 50 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. Moving `Installer` removes the link.",
"summary": "`src/Core/Framework` has 1 link(s) into `src/Core/Installer` (src/Core/Framework/Adapter/Asset/AssetInstallCommand.php:11), while `src/Core/Installer` uses `src/Core/Framework` 50 times. `src/Core/Framework` is used by 4948 files, so the loop couples them. The candidate fix is to move `Installer` into `src/Core/Framework`.",
"targets": [
{
"node_id": "M:src/Core/Framework",
Expand Down
6 changes: 3 additions & 3 deletions scripts/make_fixture_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def cheap_loop_summary(src: str, dst: str, n: int, at: str, m: int, users: int,
return (
f"`{src}` has {n} link(s) into `{dst}` ({at}), while `{dst}` uses `{src}` {m} times. "
f"`{src}` is used by {users} files, so the loop couples them. "
f"Moving `{symbol}` removes the link."
f"The candidate fix is to move `{symbol}` into `{src}`."
)


Expand Down Expand Up @@ -744,7 +744,7 @@ def check(
facts_used=["weak_links", "strong_links", "direct_users"],
citations=[c.Citation(evidence_id="E1", start_line=3, end_line=3)],
fix=c.Fix(
text="Moving `TaxTable` removes the link.",
text="The candidate fix is to move `TaxTable` into `shared`.",
action="move_symbol",
symbol="TaxTable",
from_="M:billing",
Expand Down Expand Up @@ -1424,7 +1424,7 @@ def loop_finding(
for e in offending
],
fix=c.Fix(
text=f"Moving `{symbol}` removes the link.",
text=f"The candidate fix is to move `{symbol}` into `{weak}`.",
action="move_symbol",
symbol=symbol,
from_=f"M:{strong}",
Expand Down
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ The record is stored as `simulation_batch.json` in the run folder (§4.3).

Every finding type has a fixed sentence built only from facts. Example for a cheap loop:

> `{src}` has {n} link(s) into `{dst}` ({file}:{line}), while `{dst}` uses `{src}` {m} times. `{src}` is used by {users} files, so the loop couples them. Moving `{symbol}` removes the link.
> `{src}` has {n} link(s) into `{dst}` ({file}:{line}), while `{dst}` uses `{src}` {m} times. `{src}` is used by {users} files, so the loop couples them. The candidate fix is to move `{symbol}` into `{src}`.

For an overloaded class:

Expand Down
2 changes: 1 addition & 1 deletion src/codexray/report/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _fix(reader: _Reader) -> Fix:
return Fix(text="", action="none")
symbol = str(reader.raw("symbol"))
return Fix(
text=f"Moving `{symbol}` removes the link.",
text=f"The candidate fix is to move `{symbol}` into `{reader.name('source')}`.",
action="move_symbol",
symbol=symbol,
from_=reader.node("target"),
Expand Down
Loading