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: LICENSE.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Copyright (c) 2016 Jorge Antonio Diaz-Benito Soriano
1
+
Copyright (c) 2017 Desmistificaláxia lda.
2
2
3
3
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
This plugin is available in<!--- [the Gradle Plugin Portal](https://plugins.gradle.org/plugin/org.stoyicker.android-check) and --> jCenter. It attaches itself to the `check` task if it finds it (that is, you don't use the `plugins` block and you apply either the application or library Android plugins first) - otherwise you'll need to execute the corresponding tasks manually when desired: `androidCheckstyle` for CheckStyle, `androidFindbugs` for FindBugs and `androidPmd` for PMD.
17
+
This plugin is available in jCenter. It attaches itself to the `check` task if it finds it (that is, you don't use the `plugins` block and you apply either the application or library Android plugins first) - otherwise you'll need to execute the corresponding tasks manually when desired: `androidCheckstyle` for [CheckStyle][3], `androidFindbugs` for [FindBugs][4], `CPDTask` for [CPD][5] and `androidPmd` for [PMD][6].
21
18
22
19
Configuration
23
20
-------------
24
21
22
+
### Install
23
+
24
+
##### Add to main build.gradle:
25
+
```gradle
26
+
buildscript {
27
+
...
28
+
dependencies {
29
+
...
30
+
classpath 'pt.simdea.verifier:verifier:3.5.9'
31
+
...
32
+
}
33
+
...
34
+
}
35
+
```
36
+
37
+
##### add to app build.gradle:
38
+
```gradle
39
+
apply plugin: 'pt.simdea.verifier'
40
+
```
25
41
### Recommended
26
42
27
43
The default one.
28
44
29
45
### Customized
30
46
31
-
```
47
+
```js
32
48
// Configuration is completely optional, defaults will be used if not present
33
49
check {
34
50
// Do absolutely nothing, default: false
35
51
skip true/false
36
52
// Fails build if a violation is found, default: true
37
-
abortOnError true/false. Ignored if all per-tool confs are set to abortOnError false (see below)
53
+
abortOnError true/false//Ignored if all per-tool confs are set to abortOnError false (see below)
54
+
38
55
// Checkstyle configuration
39
56
checkstyle {
40
57
// Completely skip CheckStyle, default: false
@@ -52,37 +69,26 @@ check {
52
69
// Output file for HTML reports, default: not generated
// Same options as Checkstyle, except for a couple of defaults:
58
-
59
-
// Configuration file for CheckStyle, default: <project_path>/config/findbugs.xml, if non-existent then <project_path>/<module_path>/config/findbugs.xml, if non-existent then plugin/src/main/resources/findbugs/conf-default.xml
60
-
config 'path/to/findbugs.xml'
61
-
62
-
// Output file for XML reports, default: new File(project.buildDir, 'outputs/findbugs/findbugs.xml')
63
-
reportXML new File(project.buildDir, 'path/where/you/want/findbugs.xml')
80
+
// Same options as Checkstyle
64
81
}
82
+
65
83
// PMD configuration
66
84
pmd {
67
-
// Same options as Checkstyle and FindBugs, except for a couple of defaults:
68
-
69
-
// Configuration file for CheckStyle, default: <project_path>/config/pmd.xml, if non-existent then <project_path>/<module_path>/config/pmd.xml, if non-existent then plugin/src/main/resources/pmd/conf-default.xml
70
-
config 'path/to/pmd.xml'
71
-
72
-
// Output file for XML reports, default: new File(project.buildDir, 'outputs/pmd/pmd.xml')
73
-
reportXML new File(project.buildDir, 'path/where/you/want/pmd.xml')
85
+
// Same options as Checkstyle
74
86
}
75
87
76
88
// Lint configuration
77
-
alint {
78
-
// Same options as Checkstyle and FindBugs, except for a couple of defaults:
79
-
80
-
// Configuration file for CheckStyle, default: <project_path>/config/pmd.xml, if non-existent then <project_path>/<module_path>/config/pmd.xml, if non-existent then plugin/src/main/resources/pmd/conf-default.xml
81
-
config 'path/to/pmd.xml'
82
-
83
-
// Output file for XML reports, default: new File(project.buildDir, 'outputs/pmd/pmd.xml')
84
-
reportXML new File(project.buildDir, 'path/where/you/want/pmd.xml')
85
-
}
89
+
lint {
90
+
// Same vars of android lint options
91
+
}
86
92
}
87
93
```
88
94
@@ -91,16 +97,31 @@ Developed By
91
97
92
98
The original version of this plugin was developed by:
93
99
94
-
-[Jorge Antonio Diaz-Benito Soriano](https://www.linkedin.com/in/jorgediazbenitosoriano)
100
+
-[Jorge Antonio Diaz-Benito Soriano][9]
95
101
96
102
This fork is owned and maintained by [Simdea][2].
97
103
98
104
License
99
105
=======
100
106
101
-
See [LICENSE.txt](LICENSE.txt).
107
+
See [LICENSE.txt][7].
102
108
103
-
Original work licensed under [MIT license](https://github.com/noveogroup/android-check/blob/master/LICENSE.txt).
0 commit comments