File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55information about user visible changes to lint, see the User
66Guide.
77
8+ **8.9**
9+
10+ * Lint's testing infrastructure support for testing quickfixes
11+ (`expectFixDiffs()`) now also validates that the modified
12+ source file is valid Kotlin, Java or XML. You can control
13+ this using the `lint().verifyFixedFileSyntax()` option.
14+
815**8.8**
916
1017* For the string-replacement quickfix, you can now specify
371378 Previously only `visitMethodCall()` was triggered.
372379
373380* Quickfixes can now create and delete new files; see
374- `LintFix#newFile` and `LintFix#deleteFile`..
381+ `LintFix#newFile` and `LintFix#deleteFile`.
375382
376383* For quickfixes, the `independent` property had inverted logic;
377384 this has now been reversed to follow the meaning of the name.
Original file line number Diff line number Diff line change 297297)
298298~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
299299
300+ ## Verifying Quickfixes
301+
302+ Lint's test support will also attempt to verify that your quickfixes
303+ still produces a valid Kotlin, Java or XML source file. It does this
304+ by parsing these files after testing the quickfixes using
305+ `expectFixDiffs()`. It will only complain if the fixed source file didn't
306+ already have parsing errors *before* applying the fix.
307+
308+ You can control this behavior using the `.verifyFixedFileSyntax()` method
309+ on the `lint()` task.
310+
300311## Emitting quick fix XML to apply on CI
301312
302313Note that the `lint` has an option (`--describe-suggestions`) to emit
Original file line number Diff line number Diff line change 44For information about internal improvements and API changes affecting
55lint check authors, see the API Guide.
66
7+ **8.10**
8+
9+ * New built-in lint checks:
10+
11+ Issue ID | Summary
12+ ----------------------------|-------------------------------------------
13+ `Aligned16KB` | Native library dependency not 16 KB aligned
14+ `TrimLambda` | Unnecessary lambda with `trim()`
15+ `UnnecessaryArrayInit` | Unnecessary array initialization
16+
717**8.9**
818
919* New built-in lint checks:
1424 `PrivacySandboxBlockedCall` | Call is blocked in the Privacy Sandbox
1525 `UseRequiresApi` | Use `@RequiresApi` instead of `@TargetApi`
1626 `WrongSdkInt` | Mismatched SDK_INT or SDK_INT_FULL
27+ `UseKtx` | Use KTX extension function
1728
1829* The `ImplicitSamInstance` check is now turned on by default, and covers
1930 a broader set of scenarios.
You can’t perform that action at this time.
0 commit comments