我正在使用FindBugs,PMD和Checkstyle检查我的代码,以改善代码库并确定潜在的漏洞以及设计缺陷。但是我在找出问题到底出在哪里时遇到了麻烦?我在代码中使用了Lambda表达式。
错误说明
'member def modifier' have incorrect indentation level 8, expected level should be 4. 34
'member def modifier' have incorrect indentation level 8, expected level should be 4. 37
'member def modifier' have incorrect indentation level 8, expected level should be 4. 39
'method def modifier' have incorrect indentation level 8, expected level should be 4. 42
'method def' child have incorrect indentation level 16, expected level should be 8. 44
'method def' child have incorrect indentation level 16, expected level should be 8. 46
'method def' child have incorrect indentation level 16, expected level should be 8. 47
'method def' child have incorrect indentation level 16, expected level should be 8. 48
'method def' child have incorrect indentation level 16, expected level should be 8. 50
'method def' child have incorrect indentation level 16, expected level should be 8. 52
RegisterActivity
public class RegisterActivity extends DaggerAppCompatActivity implements LifecycleOwner {
@Inject :**line number 34**
public RegisterViewModel mRegisterViewModel;
private ProgressDialog progressDialog; **line number 37**
private ActivityRegisterBinding mBinding;
我添加了我的活动,该活动在特定行显示错误,但是我 无法找出我的代码中到底是什么问题。