app/src/main/java/com/davidmiguel/gobees/about/AboutFragment.java
Method onCreateView
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.about_frag, container, false);
Distance between variable 'recyclerView' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value). Open
Open
RecyclerView recyclerView = (RecyclerView) root.findViewById(R.id.recycler_view);
- Read upRead up
- Exclude checks
Checks the distance between declaration of variable and its first usage.Note : Variable declaration/initialization statements are not countedwhile calculating length.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.