- Notifications
You must be signed in to change notification settings - Fork1
Gradle Plugin for integration of code quality tools with Gitlab CI
License
NotificationsYou must be signed in to change notification settings
MobileUpLLC/CodeQuality-Android
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Gradle Plugin for integration of code quality tools with Gitlab CI.It converts Detekt and Lint reports to compatible withGitlab Code Quality format.
- Add dependency
buildscript { repositories { ... mavenCentral() } dependencies { ... classpath 'ru.mobileup:code-quality-android:1.2.0' }}
- Setup plugin
apply plugin: 'ru.mobileup.code-quality-android'codeQuality { reportsDirectory = file('build/reports') issuesFile = rootProject.file('code_quality_issues.json') collectInformationIssues = false}
Run your Detekt and Lint checks. Report file names for Detekt have to match "detekt*.xml", and for Lint - "lint*.xml".
Run
gradlew collectCodeQualityIssues
.Generated file (code_quality_issues.json) can be uploaded asGitlab Code Quality artifact.
MIT LicenseCopyright (c) 2020 MobileUpPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
About
Gradle Plugin for integration of code quality tools with Gitlab CI
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published