Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ミスを少なくする明日からのCustom Lint Rules

Yuki Mima
January 20, 2017

ミスを少なくする明日からのCustom Lint Rules

Yuki Mima

January 20, 2017
Tweet

More Decks by Yuki Mima

Other Decks in Programming

Transcript

  1. Lint Rulesͱ͸ ▸ ੩తղੳπʔϧ ▸ ./gradlew lint Ͱ࣮ߦͰ͖Δ ▸ ࣮ߦ݁Ռ͸DefaultͰ


    /app/build/outputs/lint-results-yourFlavor.xml
 /app/build/outputs/lint-results-yourFlavor.html
  2. Detector ▸ LayoutDetector ▸ app/src/hoge/res/layout Λର৅ ▸ JavaScanner ▸ Java

    Code Λର৅ ▸ ClassScanner ▸ Java class files Λର৅
  3. ࢀߟࢿྉ ▸ Custom Lint Rules ▸ http://qiita.com/hotchemi/items/9364d54a0e024a5e6275 ▸ ϛεΛগͳ͘͢Δ໌೔͔ΒͷCustom Lint

    Rules ▸ http://qiita.com/amyu_san/items/b6b674693eefaae2b4bc ▸ طଘͷιʔε ▸ https://android.googlesource.com/platform/tools/base/+/ master/lint/libs/lint-checks/src/main/java/com/android/tools/ lint/checks?autodive=0/