-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault-lintConfig.xml
More file actions
141 lines (97 loc) · 5.82 KB
/
default-lintConfig.xml
File metadata and controls
141 lines (97 loc) · 5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- list of issues to configure -->
<!-- The current list of lint checks available: http://tools.android.com/tips/lint-checks -->
<!-- Downgrade severity of not explicitly including all options in switch statements. (using default does not eliminate this warning) -->
<issue id="SwitchIntDef" severity="informational" />
<!-- Upgrade severity of using wrong app compat method - want to highlight cases where this may be occurring. -->
<issue id="AppCompatMethod" severity="error" />
<!-- Upgrade severity of not using the Firebase App Indexing API - we may not need this one, as we already have “Missing support for Firebase App Indexing” enabled -->
<issue id="GoogleAppIndexingApiWarning" severity="warning" />
<!-- Enable checking for app links -->
<issue id="AppLinksAutoVerifyError" severity="warning" />
<!-- Enable checking for potential app links -->
<issue id="AppLinksAutoVerifyWarning" severity="warning" />
<!-- Upgrade severity of trying to specify AdapterView children in XML -->
<issue id="AdapterViewChildren" severity="error" />
<!-- Upgrade severity of including more than one layout within a ScrollView -->
<issue id="ScrollViewCount" severity="error" />
<!-- Enable checking for implied unsupported Chrome OS hardware -->
<issue id="PermissionImpliesUnsupportedChromeOsHardware" severity="warning" />
<!-- Enable checking for unsupported Chrome OS hardware -->
<issue id="UnsupportedChromeOsHardware" severity="error" />
<!-- Enable checking for insecure cipher mode -->
<issue id="GetInstance" severity="error" />
<!-- Look for STOPSHIP comments -->
<issue id="StopShip" severity="error" />
<!-- Look for mangled file line endings -->
<issue id="MangledCRLF" severity="warning" />
<!-- Increase severity of incorrect Gradle paths -->
<issue id="GradlePath" severity="error" />
<!-- Notify of newer versions of gradle dependency-->
<issue id="GradleDependency" severity="informational" />
<!-- Similar to GradleDependency, but works with any MavenCentral dependency. This is disabled by default. See the link at the top for more details.-->
<issue id="NewerVersionAvailable" severity="informational" />
<!-- Enable checking for incorrect icon sizes -->
<issue id="IconExpectedSize" severity="warning" />
<!-- Enable WebP icon conversion suggestion -->
<issue id="ConvertToWebp" severity="informational" />
<!-- Upgrade severity of this check to improve layout computation speed -->
<issue id="DisableBaselineAlignment" severity="error" />
<!-- Add support for checking for logging calls in production code -->
<issue id="LogConditional" severity="informational" />
<!-- Upgrade severity of checking for duplicate features in the manifest -->
<issue id="DuplicateUsesFeature" severity="error" />
<!-- Upgrade severity of checking for incorrect attribute definitions -->
<issue id="IllegalResourceRef" severity="error" />
<!-- Upgrade severity of subtle manifest bugs -->
<issue id="ManifestOrder" severity="error" />
<!-- Upgrade severity of missing minimum and target SDK attributes -->
<issue id="UsesMinSdkAttributes" severity="error" />
<!-- Upgrade severity of missing @Keep annotation for animated properties -->
<issue id="AnimatorKeep" severity="error" />
<!-- Upgrade severity of missing onClick method referenced from XML -->
<issue id="OnClick" severity="error" />
<!-- Upgrade severity of exporting PreferenceActivity and exposing application internals -->
<issue id="ExportedPreferenceActivity" severity="error" />
<!-- Upgrade severity of private resource usage -->
<issue id="PrivateResource" severity="error" />
<!-- Downgrade severity of using dp instead of sp for text sizes -->
<issue id="SpUsage" severity="informational" />
<!-- Upgrade severity of using mm or in in dimension definitions -->
<issue id="InOrMmUsage" severity="error" />
<!-- Downgrade severity of using small text sizes -->
<issue id="SmallSp" severity="informational" />
<!-- Upgrade severity of caching RecyclerView positions -->
<issue id="RecyclerView" severity="error" />
<!-- Upgrade severity of classes missing from manifest -->
<issue id="Registered" severity="error" />
<!-- Upgrade severity of incorrect width/height values for ScrollView children -->
<issue id="ScrollViewSize" severity="error" />
<!-- Upgrade severity of explicit path references to /sdcard -->
<issue id="SdCardPath" severity="error" />
<!-- Enable checking for insecure random number generation -->
<issue id="SecureRandom" severity="error" />
<!-- Prevent usage of global readable files -->
<issue id="SetWorldReadable" severity="error" />
<!-- Prevent usage of global writeable files -->
<issue id="SetWorldWritable" severity="error" />
<!-- Downgrade severity of enabling JavaScript -->
<issue id="SetJavaScriptEnabled" severity="informational" />
<!-- Enable checking for invalid usage of methods marked @VisibleForTest -->
<issue id="VisibleForTests" severity="warning" />
<!-- Enable suggesting making text selectable -->
<issue id="SelectableText" severity="informational" />
<!-- Downgrade severity of typos -->
<issue id="Typos" severity="informational" />
<!-- Enable checking for smart quotes -->
<issue id="TypographyQuotes" severity="informational" />
<!-- Enable checking for unused ids -->
<issue id="UnusedIds" severity="informational" />
<!-- Suppress illegal package error, see https://github.com/square/okio/issues/58 -->
<issue id="InvalidPackage">
<ignore regexp="okio-.*jar" />
<ignore regexp="retrofit-.*jar" />
<ignore regexp="requery-.*jar" />
</issue>
</lint>