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

Detekt Integration - Phase.3 #14012

Closed
ParaskP7 opened this issue Feb 9, 2021 · 2 comments · Fixed by #16828
Closed

Detekt Integration - Phase.3 #14012

ParaskP7 opened this issue Feb 9, 2021 · 2 comments · Fixed by #16828

Comments

@ParaskP7
Copy link
Contributor

ParaskP7 commented Feb 9, 2021

Related #13996
Phase.2 #14011

This issue is about integrating Detekt, phase by phase, into the WordPress-Android codebase.

Phase.1 was actually adding Detekt alongside its default behavior into the WordPress-Android codebase. This relates #13996 PR is responsible for that.

Phase.2 is all about fine-tuning the default rules to utilise Detekt as much as possible.

This Phase.3 will be about decommissioning KtLint in favor of Detekt. Below in a list of thinks to keep in mind:

  1. When Detekt gets merged into develop and every developer start utilising this tool, whenever someone notices an inconsistency between KtLint and Detekt, then this should be reported here. For example KtLint might report ForbiddenImport, while Detekt might not. This should be reported in this issue so that when KtLint ends up being decommissioned, every rule that was applicable with KtLint will still be application through Detekt.
  2. When the decommission process for KtLint starts, the responsible person should traverse all the existing KtLint rules and make sure that those are being transferred to Detekt. Step no.1 about would help with that but still there might be cases where some rules might still required to be ported from KtLint to Detekt.
@stale
Copy link

stale bot commented Apr 19, 2022

This issue has been marked as stale because:

  • It has been inactive for the past year.
  • It isn't in a project or a milestone.
  • It hasn’t been labeled [Pri] Blocker, [Pri] High, or good first issue.

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority during regularly scheduled triage sessions.

@stale stale bot added the [Status] Stale label Apr 19, 2022
@ParaskP7
Copy link
Contributor Author

ParaskP7 commented May 3, 2022

This issue is still valid. Actually @RenanLukas posted a P2 post about removing KtLint and keep only Detekt, which is the main purpose of this phase. As such, this removal will happen sooner than later for this repo.

For more info see: paqN3M-v8-p2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants