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

idea: eights part of idea violations #4711

Closed
Nimfadora opened this issue Jul 13, 2017 · 4 comments
Closed

idea: eights part of idea violations #4711

Nimfadora opened this issue Jul 13, 2017 · 4 comments

Comments

@Nimfadora
Copy link
Contributor

Nimfadora commented Jul 13, 2017

sub-task of #4681

too widespread to be included to the report:
Chained method calls 1679
Constant on right side of comparison 1880
Instance field access not qualified with this 3512
Instance method call not qualified with this 11547
Local variable or parameter can be final 3834
Nested method call 6207
Unqualified inner class access 754
Unqualified static access 4421

report on all other violations

violations names included:

ChainedMethodCall
ConstantOnRHSOfComparison
ImplicitCallToSuper
LocalCanBeFinal
NestedMethodCall
UnqualifiedFieldAccess
UnqualifiedInnerClassAccess
UnqualifiedMethodAccess
UnqualifiedStaticUsage
ReturnThis
@romani
Copy link
Member

romani commented Jul 13, 2017

Implicit call to 'super()'

Suppress : "we do not like this style, but we could change our mind in future"

Return of 'this' inspection

All cases are false positives. If there are options in inspections to avoid them, lets suppress "all cases are false positives"

Local variable or parameter can be final

We do not like for final on parameters, but do use our own Check for local variables, please try to focus this inspections on variables only, if no options - suppress

Instance field access not qualified with this 3512
Instance method call not qualified with this 11547

If no options to calm down them suppress. We have our own Check(Require this) on this please look at our Check options to see what we think code should be.

Chained method calls

suppress: "it is too demanding, with no choice limits of chain size or ...."

Constant on right side of comparison

suppress: "we do like constants on the right side, is more readable, placing constant on the left does not give benefit"

Unqualified inner class access

suppress: "it is ok to skip name of outter class for inner class in filed/variable declaration to keep type short."

Unqualified static access

suppress: "inspection does not have option to skip cases of usage static field/method that is declared in the same class, as result there are a lot of want-fix cases."

@romani
Copy link
Member

romani commented Jul 15, 2017

Violations included:

please activate that list of inspections and send PR(not for merge) to generate report on TC.
After each merge to our master, update that PR with list of item that still unresolved, TC will keep report for you.

@Nimfadora
Copy link
Contributor Author

@romani this task is also done, these violations were not even included in PR with all remained violations.

@romani
Copy link
Member

romani commented Jul 16, 2017

ok, am closing this issue as you confirming that all are covered.
We will recheck what is not covered at end of unmbrella issue (#4681).

@romani romani closed this as completed Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants