| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ |
|
| |
| |
| |
| | |
Change-Id: Ie8ff6629a3e787587516f6fa88c70dfdb7a92d0d
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changeset adds support for a tools:locale attribute in
resource files where you can declare which language is actually
the default. This is used both by the missing translation
detector (such that it won't complain if for example values-en-rUS
is intended to supplement res/values/), as well as the typo
detector (to allow you to specify which language's dictionary
should be used to look for typos in the default resource file.)
This addresses 33845: lint is wrong about translation regions
Change-Id: Icb16cf11407c333845b56b6d105c99a8661430b0
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also fix suppress check for a couple of different detectors.
Also fix typo in TooManyViewsDetector (issue 40496).
Change-Id: Ia2e90ceea0dcae749581bd5704d169c5b2b3f1b6
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: I1ad6483a23728b0896d4824feba533e2f607e8c5
|
| | |
| | |
| | |
| | | |
Change-Id: I789e74b667afbaea4089a62060b7138dadd8da6b
|
| | |
| | |
| | |
| | | |
Change-Id: I5ba847838e0035ab8ad44967779fdf814d1901a6
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This CL adds a lint check which flags using unknown namespaces
on non custom views.
Change-Id: I5d53635e5e0ea7be774f90c07103f1defae97980
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I9cc31e8b3094f830e785b96b46f384206074703c
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I5321ba5a82c6ae2383412ecc01060f4b0d2a1c25
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I731dd46de5275911313c772e18fde530415391db
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ieae4098cc5ea65ef4a38ffb788b1755a62312da8
|
|\ \ \ \
| |/ / /
| | | /
| |_|/
|/| | |
|
| |/
| |
| |
| | |
Change-Id: I03d90622f0eedf8121c1a8c32600a5be6bfae1a4
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I4a2f9a0a2bb9eb0a3368b4595e040458fadf8e74
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I87d24b9d9435656957d32ac16fef06af592e85e5
|
|/
|
|
|
|
|
|
|
| |
Fix handling of escapes in the lint typo detector
This fixes 39599: LINT 21: Type flags incorrectly
Also fixes a description typo (issue 39554)
Change-Id: I48e651f8a314b025dc31063d517de57e0419351a
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I1b11d5e6650434fd5e57af05ff86b2d66a0a84db
|
|/
|
|
| |
Change-Id: I397dc73b9ab9f13b142b8e38dbb328fff14cc50e
|
|
|
|
| |
Change-Id: I8b22fbb29e014fb3efb434f33924d831003d41ee
|
|\ |
|
| |
| |
| |
| | |
Change-Id: If08b99370a32eaa256e9cb63939428480d563bfe
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ie71f8a4706b1b91a84903257aca1adda461c277f
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This updates the lint check to handle some additional scenarios around
missing commit() calls for SharedPreference.Edit; in particular when
using edit() on field references and in chained method calls.
Change-Id: I1b249ed81ca9d0b0e1c85466ccfa1ecdd6c53fad
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The missing class detector warns about classes declared in
the manifest, but not found on disk. In order not to warn
before you've built the project, it only does this if it has
seen at least one class.
However, it turned out that it would also look at library jars,
such that a not-built project using the support library would
be considered to have classes, and would therefore flag newly
added activities.
Change-Id: Iaf01fe3e3626bdb31d535c00aea584793d6f72b9
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Lint already has the concept of whether a project should report lint
warnings or not; a project can be included in analysis (e.g. for
unused resource checks), but can filter out any warnings local to that
project. This is useful when you are using a library, but don't want
to see errors from that library which may not be under your control.
The way this is handled from the command line is that lint will only
report errors for projects you've referenced; e.g. if you run "lint
/foo/bar" this will show errors in /foo/bar, but exclude errors found
in the library project /foo/bar/../library".
However, there were several lint checks which needed additional fixes
for this, because (like the unused error detector) they gather data
from multiple projects and process and report in the after-project
hook.
In addition, inside Eclipse, the UI would always automatically include
libraries. This is sometimes what you want, and sometimes not what you
want, so this CL adds a new toggle menu item to the lint action menu,
"Skip Library Project Dependencies", off by default, which you can
select to make lint runs from eclipse include or exclude library
projects in the report.
Change-Id: Idf3167e818931525e0dd7661f5cdf3a3e69b6522
|
|/
|
|
| |
Change-Id: I6c06889e26dc7c5e610069c71f58f81ffa6294a8
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I5c60ae929a70c3040dfff9e319aa5175580b86c7
|
|/
|
|
| |
Change-Id: I4b86001374285c9043f816af515ebf3ce2ff233c
|
|
|
|
| |
Change-Id: I21c88f01ef7ae2b846f67533900eea7e8161266a
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I93154fbe3c0d86b6767ef2283ecbc5038163c604
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ia00b9d6de3feb1b3dc99b8293c456e5b26e1b860
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When you have a field initialization like this:
private int foo = new ForbiddenClass();
the actual code to perform the initialization lives in a method named
<init> (or for a static field, <clinit>).
If you tried to suppress lint errors here by adding an annotation on
the field, it would not be found by lint, since lint looks at method
level annotations and it's sitting on the field node instead.
To fix this, the suppress check needs to identify the field scenario,
and in that case (when checking whether an error is suppressed) look
up the field in the class and check annotations there.
There was a second bug: The lint check which looks for invalid
suppress annotation sites (since they're not allowed on local
variables for class based lint checks) incorrectly concluded that
these types of initializations were local variables rather than field
initializations.
This fixes issue
38626: ADT: Misleading lint rule: SimpleDateFormat
Change-Id: I254f3fb5a6132d6cbe39bd425ffe6d67ed7b84ed
|