You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,25 @@ Custom Checkstyle checks for Android projects.
8
8
9
9
## Checks
10
10
11
-
| Check | Description | Level |
12
-
| --- | --- | --- |
13
-
|`AndroidViewFieldNameCheck`| Check Android view field name (example: for `TextView` variable's name must be starts with `tv`) |`Error`|
14
-
|`ContextFirstParameterCheck`| Check Context as first parameter in a class constructor or in an arguments list |`Error`|
15
-
|`MethodObjectReturnAnnotationCheck`| Check annotation for a method with return values (by default it is `@NonNull` and `@Nullable`) |`Error`|
16
-
|`MethodParametersAnnotationCheck`| Check annotation for an argument in a class constructor or a method (by default it is `@NonNull` and `@Nullable`) |`Error`|
11
+
| Check | Description |
12
+
| --- | --- |
13
+
|`AndroidViewFieldNameCheck`| Check Android view field name (example: for `TextView` variable's name must be starts with `tv`) |
14
+
|`ContextFirstParameterCheck`| Check Context as first parameter in a class constructor or in an arguments list |
15
+
|`MethodObjectReturnAnnotationCheck`| Check annotation for a method with return values (by default it is `@NonNull` and `@Nullable`) |
16
+
|`MethodParametersAnnotationCheck`| Check annotation for an argument in a class constructor or a method (by default it is `@NonNull` and `@Nullable`) |
17
17
18
18
## Installation
19
19
20
20
### Gradle
21
21
22
+
Add `https://jitpack.io` as Maven repository to `build.gradle` (needs for downloading dependencies from GitHub):
23
+
24
+
```groovy
25
+
repositories {
26
+
maven { url "https://jitpack.io" }
27
+
}
28
+
```
29
+
22
30
If you are using [Checkstyle plugin](https://docs.gradle.org/current/userguide/checkstyle_plugin.html) for Gradle, add
23
31
checks project as dependency in the `dependencies` section in the `build.gradle`:
0 commit comments