|
127 | 127 | <a href="#frequentlyaskedquestions//howdoilookupifaclassisasubclassofanother?" class="level3"><span class="tocNumber">8.0.13 </span>How do I look up if a class is a subclass of another?</a><br>
|
128 | 128 | <a href="#frequentlyaskedquestions//howdoiknowwhichparameteracallargumentcorrespondsto?" class="level3"><span class="tocNumber">8.0.14 </span>How do I know which parameter a call argument corresponds to?</a><br>
|
129 | 129 | <a href="#frequentlyaskedquestions//howcanmylintcheckstargettwodifferentversionsoflint?" class="level3"><span class="tocNumber">8.0.15 </span>How can my lint checks target two different versions of lint?</a><br>
|
130 |
| - <a href="#frequentlyaskedquestions//howdoicheckoutthecurrentlintsourcecode?" class="level3"><span class="tocNumber">8.0.16 </span>How do I check out the current lint source code?</a><br> |
131 |
| - <a href="#frequentlyaskedquestions//wheredoifindexamplesoflintchecks?" class="level3"><span class="tocNumber">8.0.17 </span>Where do I find examples of lint checks?</a><br> |
| 130 | + <a href="#frequentlyaskedquestions//canimakemylintcheck%E2%80%9Cnotsuppressible?%E2%80%9D" class="level3"><span class="tocNumber">8.0.16 </span>Can I make my lint check “not suppressible?”</a><br> |
| 131 | + <a href="#frequentlyaskedquestions//howdoicheckoutthecurrentlintsourcecode?" class="level3"><span class="tocNumber">8.0.17 </span>How do I check out the current lint source code?</a><br> |
| 132 | + <a href="#frequentlyaskedquestions//wheredoifindexamplesoflintchecks?" class="level3"><span class="tocNumber">8.0.18 </span>Where do I find examples of lint checks?</a><br> |
132 | 133 | <a href="#appendix:recentchanges" class="level1"><span class="tocNumber">9 </span>Appendix: Recent Changes</a><br>
|
133 | 134 | <a href="#appendix:environmentvariablesandsystemproperties" class="level1"><span class="tocNumber">10 </span>Appendix: Environment Variables and System Properties</a><br>
|
134 | 135 | <a href="#appendix:environmentvariablesandsystemproperties/environmentvariables" class="level2"><span class="tocNumber">10.1 </span>Environment Variables</a><br>
|
|
3332 | 3333 | This means that instead, you need to aggregate data along the way.
|
3333 | 3334 | For example, the way lint handles the version check method lookup is
|
3334 | 3335 | to look for SDK_INT comparisons, and if found, stores a reference to
|
3335 |
| - the method in ther partial results map which it can later consult |
| 3336 | + the method in the partial results map which it can later consult |
3336 | 3337 | from downstream modules.
|
3337 | 3338 |
|
3338 | 3339 | </p><p>
|
|
4175 | 4176 | outside of the current API level.
|
4176 | 4177 |
|
4177 | 4178 | </p>
|
4178 |
| -<a class="target" name="howdoicheckoutthecurrentlintsourcecode?"> </a><a class="target" name="frequentlyaskedquestions//howdoicheckoutthecurrentlintsourcecode?"> </a><a class="target" name="toc8.0.16"> </a><h3>How do I check out the current lint source code?</h3> |
| 4179 | +<a class="target" name="canimakemylintcheck%E2%80%9Cnotsuppressible?%E2%80%9D"> </a><a class="target" name="frequentlyaskedquestions//canimakemylintcheck%E2%80%9Cnotsuppressible?%E2%80%9D"> </a><a class="target" name="toc8.0.16"> </a><h3>Can I make my lint check “not suppressible?”</h3> |
| 4180 | +<p> |
| 4181 | + |
| 4182 | + |
| 4183 | +In some (hopefully rare) cases, you may want your lint checks to not be |
| 4184 | +suppressible using the normal mechanisms — suppress annotations, |
| 4185 | +comments, lint.xml files, baselines, and so on. The usecase for this is |
| 4186 | +typically strict company guidelines around compliance or security and |
| 4187 | +you want to remove the easy possibility of just silencing the check. |
| 4188 | + |
| 4189 | +</p><p> |
| 4190 | + |
| 4191 | +This is possible as part of the issue registration. After creating your |
| 4192 | +<code>Issue</code>, set the <code>suppressNames</code> property to an <strong class="asterisk">empty</strong> collection. |
| 4193 | + |
| 4194 | +</p> |
| 4195 | +<a class="target" name="howdoicheckoutthecurrentlintsourcecode?"> </a><a class="target" name="frequentlyaskedquestions//howdoicheckoutthecurrentlintsourcecode?"> </a><a class="target" name="toc8.0.17"> </a><h3>How do I check out the current lint source code?</h3> |
4179 | 4196 | <pre class="listing backtick"><code><span class="line"><span class="hljs-meta">$</span><span class="bash"> git <span class="hljs-built_in">clone</span> --branch=mirror-goog-studio-master-dev --single-branch \</span>
|
4180 | 4197 | <span class="line"> https://android.googlesource.com/platform/tools/base</span></span>
|
4181 | 4198 | <span class="line">Cloning into 'base'...</span>
|
|
4192 | 4209 | <span class="line">.gitignore MODULE_LICENSE_APACHE2 cli/</span>
|
4193 | 4210 | <span class="line"><span class="hljs-meta">$</span><span class="bash"> ls libs/</span></span>
|
4194 | 4211 | <span class="line">intellij-core/ kotlin-compiler/ lint-api/ lint-checks/ lint-gradle/ lint-model/ lint-tests/ uast/</span></code></pre>
|
4195 |
| -<a class="target" name="wheredoifindexamplesoflintchecks?"> </a><a class="target" name="frequentlyaskedquestions//wheredoifindexamplesoflintchecks?"> </a><a class="target" name="toc8.0.17"> </a><h3>Where do I find examples of lint checks?</h3> |
| 4212 | +<a class="target" name="wheredoifindexamplesoflintchecks?"> </a><a class="target" name="frequentlyaskedquestions//wheredoifindexamplesoflintchecks?"> </a><a class="target" name="toc8.0.18"> </a><h3>Where do I find examples of lint checks?</h3> |
4196 | 4213 | <p>
|
4197 | 4214 |
|
4198 | 4215 |
|
|
4330 | 4347 |
|
4331 | 4348 | <p></p><p>
|
4332 | 4349 |
|
| 4350 | +</p></li> |
| 4351 | +<li class="asterisk">UAST for Kotlin is now based on Kotlin 1.5. |
| 4352 | + |
| 4353 | +<p></p><p> |
| 4354 | + |
4333 | 4355 | </p></li>
|
4334 | 4356 | <li class="asterisk">Certain Kotlin PSI elements have new implementations known as <em class="underscore">ultra
|
4335 | 4357 | light classes</em>. Ultra light classes improve performance by answering
|
|
0 commit comments