Open-event-droidgen: So many codacy issues

Created on 27 May 2017  路  6Comments  路  Source: fossasia/open-event-droidgen

Actual Behaviour

There are so many codacy issues which effects Codacy Badge grade Codacy Badge

Some of issues are :

  • Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
  • Switch statements should have a default label
  • Avoid unused private fields
  • nested if statements could be combined
  • Document empty method body
  • Avoid unused constructor parameters such as 'resources'.
  • Use one line for each declaration
  • Use equals() to compare object references
  • Strings must use doublequote. (quotes)

Cadacy issue link : https://www.codacy.com/app/championswimmer/open-event-android/issues?bid=3438485

Expected Behaviour

Avoiding this kind of mistakes and improve codacy badge grade by changing our app's existing code to follow this patterns.

Would you like to work on the issue?

Yes, I will work in two part
Part 1 - Android
Part 2 - App generator

Target Milestone to solve the issue

Milestone 4

Most helpful comment

Sorry for the misunderstanding. Yeah, we need this obviously

You can start making changes, but restrict PRs to package only so they remain small

All 6 comments

@Shailesh351 You could link this issue to #1573

@shreyasnbhat that issue is for disabling Use explicit scoping instead of the default package private level codacy issue.

And this issue is for fixing existing i mentioned in issue

I meant to say both these issues could be merged into one.

True @shreyasnbhat

@Shailesh351 All the patterns you have listed are required for a good code base, so they shouldn't be disabled

I created the issue for explicit scoping because we require that to use butterknife.

@iamareebjamal @shreyasnbhat I am not talking about disabling patterns i have listed in issue.

I am talking about changing our app's existing code to follow this patterns and make code base good by making required changes in code.

Sorry for the misunderstanding. Yeah, we need this obviously

You can start making changes, but restrict PRs to package only so they remain small

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mayank8318 picture mayank8318  路  4Comments

PareshMayani picture PareshMayani  路  5Comments

dr0pdb picture dr0pdb  路  3Comments

dreadpool2 picture dreadpool2  路  7Comments

iamareebjamal picture iamareebjamal  路  3Comments