Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit be672cd

Browse files
authored
Merge pull request #103 from googlesamples/updatedocs
A few more docs updates
2 parents 1ab59b0 + 5aae1de commit be672cd

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

‎docs/api-guide/changes.md.html‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
information about user visible changes to lint, see the User
66
Guide.
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
@@ -371,7 +378,7 @@
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.

‎docs/api-guide/quickfixes.md.html‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,17 @@
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

302313
Note that the `lint` has an option (`--describe-suggestions`) to emit

‎docs/usage/changes.md.html‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
For information about internal improvements and API changes affecting
55
lint 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:
@@ -14,6 +24,7 @@
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.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /