trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer
Apache License 2.0
54 stars 18 forks source link

Add style/lint checking to the CI flow. #61

Closed trevjonez closed 4 years ago

trevjonez commented 4 years ago

https://arturbosch.github.io/detekt/ via gradle task.

probably a pile of things to resolve in doing this.

Ideally one commit for the addition of detekt configuration, and one commit to fix issues detected (helps keep git blame --ignore-rev viable)

plastiv commented 4 years ago

Do you use intellij for editing? CMD+ALT+L creates weird formatting for me at the moment.

Steps which could be done to enforce code style (if you are interested of course):

trevjonez commented 4 years ago

the .idea/codeStyles/ is in place already, but likely an old config. I say we go 100% official kotlin style to keep configuration of all these disparate tools at a minimum.

one commit for each step:

  1. configuration updates
  2. big bang reformat all the kotlin
  3. enable enforcement tool

detekt does much more than style so I'd like to use it if possible, but open to input on other options if there is an objectively better approach.

Do you use intellij for editing?

yes