ABCDEF
1
fav
2
Abstraction issues(Javaの)抽象化問題→結構クドいので全部OFFにしてる
3
Cast to a concrete class具象クラスにキャストする(抽象クラスや.equals()は除外可能)
4
Chain of 'instanceof' checksinstanceofの連鎖やif文でのinstanceofの多用
5
Class references one of its subclassesサブクラスへの参照
6
Collection declared by class, not interfaceインタフェースではなくクラスで宣言されたコレクション
7
Feature envy「不吉な匂い」。メソッド中で他のクラスを3回以上呼び出すとダメみたいだけど,やり過ぎだろう...。
8
'instanceof' a concrete class具象クラスへのinstanceof(抽象クラスは除外可能)
9
'instanceof' check for 'this'thisへのinstanceof
10
Local variable of concrete classローカル変数が具象クラス → それくらい許せよ。:-)
11
"Magic number"マジックナンバー → hashCode()やテストではOKみたいな除外項目はあるけど,これもやり過ぎ系
12
Method parameter of concrete classメソッド引数が具象クラス → 何が悪いw
13
Method return of concrete classメソッドの戻り値が具象クラス → ...
14
Overly-strong type cast過度なキャスト(要するにダウンキャスト。instanceofは除外)
15
Private method only used from inner class内部クラスからしか呼ばれていないプライベートメソッド(要するに内部クラスに移動できるよ,と)
16
'public' method not exposed in interfaceインターフェイスに宣言されてないパブリックメソッド(実装クラスのパブリックメソッドは何かしらのインターフェイスに宣言しろって話)
17
Static field of concrete classスタティックフィールドが具象クラス → 別に良いじゃ無いか
18
Static method only used from one other class他のクラスからしか呼ばれていないスタティックメソッド(だったら,そのクラスに移動しろと)
19
Type may be weakenedより弱い型で宣言できる変数(ArrayListはListで十分とかそうゆうの)
20
Type of instance field is concrete classインスタンス変数が具象クラス
21
AndroidAndroidは使わないので全部無効もしくはプラグインを無効にしてる
22
Android Resources Validation
23
Android XML element is not allowed
24
Non-constant resource ID in a switch statement
25
Unknown Android XML attribute
26
Android LintAndroidは使わないので全部無効もしくはプラグインを無効にしてる
27
AdapterView element cannot have children
28
Back button
29
Buttons order
30
Cancel/OK dialog buttons capitalization
31
Content provider shares everything
32
Cycle in style definitions
33
Duplicate ids across layouts combined with include tags
34
Duplicate ids within a single layout
35
Ellipsis string can be replaced with ellipsis character
36
Encoding used in resource files is not UTF-8
37
Exported service does not require permission
38
Extra translation
39
Extraneous text in layout file
40
Format supplied in a call to String. format doesn't match the format string
41
Formatting argument types are inconsistent across translations
42
Fraction string can be replaced with fraction character
43
FrameLayout can be replaced with <merge> tag
44
GridLayout validation
45
Hardcoded reference to /sdcard
46
Hardcoded text
47
Hardcoded value of android:debuggable in the manifest
48
HashMap can be replaced with SparseArray
49
Hyphen can be replaced with dash
50
Icon appears in both -nodpi and dpi folders
51
Icon densities validation
52
Icon Density-independent size validation
53
Icon has incorrect size
54
Indentical bitmaps across various configurations
55
Image defined in density-independent drawable folder
56
import android.R' statement
57
Incomplete translation
58
Inconsistent arrays
59
Incorrect order of elements in manifest
60
Inefficient layout weight
61
Invalid format string
62
Layout has too many views
63
Layout hierarchy is too deep
64
Memory allocations within drawing code
65
Minimum SDK and target SDK attributes not defined
66
Mismatched view type
67
Missing Android XML namespace
68
Missing baselineAligned attribute
69
Missing content description
70
Missing density folder
71
Multiple <uses-sdk> elements in the manifest
72
Nested layout weights
73
Nested scrolling widgets
74
Node can be replaced by TextView with compound drawables
75
Obsolete layout params
76
openFileOutput() call passing MODE_WORLD_WRITEABLE
77
Other typographical problems
78
Overdraw issues
79
Proguard config file validation
80
Proguard.cfg file contains generic Android rules
81
Reference to an id that is not in the current layout
82
Reference to an unknown id
83
ScrollView element can have only one child
84
ScrollView size validation
85
Should pass resolved color instead of resource id
86
Should use 'valueOf' instead of 'new'
87
Straight quotes can be replaced with curvy quotes
88
Text field missing inputType or hint settings
89
TextView should probably be an EditText instead
90
Unreachable state in a <selector>
91
Unused id
92
Unused resources
93
Usage of showAsAction=always
94
Useless leaf layout
95
Useless parent layout
96
Using 'px' dimension
97
Using .gif format for bitmaps is discouraged
98
Using custom namespace attributes in a library module
99
Using custom namespace attributes in a library module
100
Ant inspectionsAntの検査 → さほど邪魔にならないので全部有効化している