Skip to content

Improve ReEquivalentSuperclassMethodsRule - #19885

Open
jecisc wants to merge 1 commit into
pharo-project:Pharo15from
jecisc:misc/improve-rule
Open

Improve ReEquivalentSuperclassMethodsRule#19885
jecisc wants to merge 1 commit into
pharo-project:Pharo15from
jecisc:misc/improve-rule

Conversation

@jecisc

@jecisc jecisc commented Jul 20, 2026

Copy link
Copy Markdown
Member

This rule was considering methods from traits, but it really depends on the context. I propose to skip methods from traits when we look for methods with an equivalent in super classes since traits do not have a superclass by construction.

Done on my free time

@jecisc

jecisc commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

I've done this PR to p14 because this is kinda a bugfix. But since it is not really important, maybe it should go to p15? I don't have a strong opinion on this

@Ducasse

Ducasse commented Jul 22, 2026

Copy link
Copy Markdown
Member

I would merge it in P15 :) Thanks for your free time contribution.

@Ducasse
Ducasse changed the base branch from Pharo14 to Pharo15 July 23, 2026 14:57
@MarcusDenker

Copy link
Copy Markdown
Member

If I look a the PR Change, This shows lot of changes that are not related to this PR.

Is that good ? Or did that un-do changes in Pharo 15?

@MarcusDenker MarcusDenker added the Status: Need more work The issue is nearly ready. Waiting some last bits. label Jul 28, 2026
@jecisc

jecisc commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Since the base changed, it bring what was merged in P14 before my PR to P15. If we merge P14 in P15 we will have only my changes appearing

@Ducasse

Ducasse commented Jul 29, 2026

Copy link
Copy Markdown
Member

So what should we do? It is reasonable to merge P14 in P15 I thought so. But I prefer to ask.

This rule was considering methods from traits, but it really depends on the context. I propose to skip methods from traits when we look for methods with an equivalent in super classes since traits do not have a superclass by construction.

*Done on my free time*
@jecisc
jecisc force-pushed the misc/improve-rule branch from 4defcb9 to fc5679a Compare August 14, 2026 18:20
@jecisc

jecisc commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

I updated the PR to contain only my change and avoid a mess

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

Labels

Status: Need more work The issue is nearly ready. Waiting some last bits. Status: Tests passed please review!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants