Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMD rule CallSuperInConstructor makes no sense #982

Closed
golszewski86 opened this issue Jan 9, 2019 · 23 comments
Closed

PMD rule CallSuperInConstructor makes no sense #982

golszewski86 opened this issue Jan 9, 2019 · 23 comments

Comments

@golszewski86
Copy link

PMD rule CallSuperInConstructor requires an explicit call to superclass constructor, e.g.

public class Foo extends Bar(final String name) {
   super(); // required by CallSuperInConstructor rule
   this.name = name;
}

The rule description (https://pmd.github.io/pmd/pmd_rules_java_codestyle.html#callsuperinconstructor) only says that it is a good practice without referencing any source. So I've asked PMD developers and their answer was:

this rule is part of the codestyle category. As such, it has no other reason than stylistic consistency.
(pmd/pmd#1564)

I believe this rule actually enforces a bad practice:

Given that, I think this rule should be disabled.

@0crat
Copy link
Collaborator

0crat commented Jan 9, 2019

@krzyk/z please, pay attention to this issue

@0crat
Copy link
Collaborator

0crat commented Jan 9, 2019

@golszewski86/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

@krzyk
Copy link
Collaborator

krzyk commented Jan 9, 2019

@yegor256 Any opinions on that? I agree with @golszewski86 that this rule is pointless.

@llorllale
Copy link

@krzyk it's also triggered for anonymous classes. See this example

@yegor256
Copy link
Owner

@krzyk I agree, let's get rid of it.

@krzyk
Copy link
Collaborator

krzyk commented Jan 30, 2019

@0crat in

@0crat 0crat added the scope label Jan 30, 2019
@0crat
Copy link
Collaborator

0crat commented Jan 30, 2019

@0crat in (here)

@krzyk Job #982 is now in scope, role is DEV

@0crat
Copy link
Collaborator

0crat commented Jan 30, 2019

@0crat in (here)

@krzyk Thanks for your contribution, @golszewski86/z! If you would be a member of the project, you would now earn +15 reputation points, as explained in §29. You can join and apply to it, see §2.

@0crat
Copy link
Collaborator

0crat commented Feb 3, 2019

The job #982 assigned to @paulodamaso/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

paulodamaso added a commit to paulodamaso/qulice that referenced this issue Feb 7, 2019
paulodamaso added a commit to paulodamaso/qulice that referenced this issue Feb 8, 2019
paulodamaso added a commit to paulodamaso/qulice that referenced this issue Feb 8, 2019
@paulodamaso
Copy link
Contributor

@golszewski86 Merged, please close

@paulodamaso
Copy link
Contributor

@0crat wait for closure

@paulodamaso
Copy link
Contributor

@golszewski86 ping

@paulodamaso
Copy link
Contributor

@krzyk ping

@0crat 0crat added the waiting label Feb 14, 2019
@0crat
Copy link
Collaborator

0crat commented Feb 14, 2019

@0crat wait for closure (here)

@paulodamaso The impediment for #982 was registered successfully by @paulodamaso/z

@paulodamaso
Copy link
Contributor

@krzyk please take a look

@0crat
Copy link
Collaborator

0crat commented Feb 19, 2019

@krzyk/z everybody who has role DEV is banned at #982; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@krzyk
Copy link
Collaborator

krzyk commented Feb 19, 2019

@paulodamaso I can't do much here, I can't close issues

@0crat
Copy link
Collaborator

0crat commented Feb 24, 2019

@krzyk/z everybody who has role DEV is banned at #982; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@0crat
Copy link
Collaborator

0crat commented Mar 1, 2019

@krzyk/z everybody who has role DEV is banned at #982; I won't be able to assign anyone automatically; consider assigning someone manually (as in §19), or invite more people (as in §51), or remove the job from the scope (as in §14)

@grzechol
Copy link

grzechol commented Mar 5, 2019

@paulodamaso, @krzyk Sorry guys I can't close the issue too...

@golszewski86
Copy link
Author

Ooops wrong github account :) With this one I can

@0crat
Copy link
Collaborator

0crat commented Mar 5, 2019

Job gh:teamed/qulice#982 is not assigned, can't get performer

@0crat
Copy link
Collaborator

0crat commented Mar 5, 2019

The job #982 is now out of scope

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

No branches or pull requests

7 participants