• Stars
    star
    121
  • Rank 293,924 (Top 6 %)
  • Language
    Java
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

When run "gradle assembleXX" or build your app,it will auto check the code quality with checkstyle,pmd,findbugs.

AndroidCodeQuality

When run "gradle assembleXX" or build your app,it will auto check the code quality with checkstyle,pmd,findbugs.

1.It will run checkstyle,pmd before your build task and run findbugs after your assemble task.

2.You can config 'ignoreFailures = false' to force stop your build task. This will force you to optimize your code.

中文:

1、在 build工程之前使用checkstyle,pmd自动检查代码。

2、 assemble task 执行完后自动跑一遍findbugs,从代码源头上检查代码。

3、可以设置'ignoreFailures = false',当检查到错误后会强制停止当前的 build task,需要改正后才能重新 build,这样就强制保证了代码质量。ignoreFailures 的配置在 'your_android_studio_project/app/doc/quality/quality.gradle' 这个文件里。

4、可以添加忽略文件(夹),在quality.gradle 文件里配置:

    exclude '**/gen/**', '**/test/**','**/LauncherActivity.java'

#Usage: 1、copy the /doc folder to your_android_studio_project/app/

2、input "apply from: './doc/quality/quality.gradle'" to your build.gradle in your_android_studio_project/app.

3、run your app or gradle assembleXX,this gradle script will auto check the code quality.

4、ignore file or folder in quality.gradle:

    exclude '**/gen/**', '**/test/**','**/LauncherActivity.java'

#To go further

This project is based on these two other projects, which are awesome. Consider take a look at them :

#Contact me:

Blog:http://blog.csdn.net/masonblog

Email:[email protected]

#License: Copyright 2013 MasonLiu, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

DecompileApk

output dex , jar , smali , xml , AndroidManifest.xml , res , sign info , umeng channel.
Java
317
star
2

AndroidUltimateEncrypt

AndroidUltimateEncrypt AndroidJNI Encrypt ,运用JNI读取公钥、包名、设备号,然后把结果进行自定义加密,得到一个密码,可以将该密码作为AES的密钥。
C++
207
star
3

BatchPackApk

[DEPRECATED] Batch package Android apk with channel string,Don't need keystrore. Only use a signed apk,Pack a large number apks in one second.
Java
65
star
4

AndroidLintPlus

custom your Lint rules
Java
58
star
5

MultipleTextView

MultipleTextView can automatically arrange a plurality of TextView,can overspread space or set column num.
Java
50
star
6

GradleDemo

Gradle插件开发极简教程
Groovy
41
star
7

GridViewPager

GridView in ViewPager
Java
35
star
8

WeexContainer-Android

一个Android平台上Weex容器,集成该SDK后,App可以看作是一个Weex的浏览器,只需传入一个打好的vue工程的js文件即可。实现MPA,Bundle缓存、验签等通用功能。
JavaScript
19
star
9

flutterw

flutterw is a shell script which downloads and executes the Flutter SDK with the exact version defined in itself flutterw 用来下载Flutter SDK,类似于gradlew。通过在脚本内配置特定版本号,使得同一工程的所有开发者或CI服务器(例如Jenkins)使用Flutter的版本一致。
Shell
19
star
10

ThinkFlutter

一个Flutter的工程模板,使用了flutterw、flutter web、dartserver、dio、serializable、retrofit、toast、cached_network_image、provider、eventbus、isolate、本地图片、iconfonts 并演示了package、plugin开发方式
Dart
17
star
11

TestOkhttpSSL

Java
15
star
12

DartServer

this start a http server for flutter web, it can also proxy api requests for Cross-Origin Request.为flutter web启动一个http服务器,并且可以代理api请求,解决跨域请求问题。
Dart
15
star
13

RapDockerImage

Docker Image for RAP https://github.com/thx/RAP
13
star
14

ResProguardInGradle

when run "gralde assembleXX" ,auto do resource proguard and sign.
Java
12
star
15

StatusBarColor

DrawerLayout can display over the ActionBar/Toolbar and under the status bar.Can set status bar color,Support Android 4.4+
Java
10
star
16

WeexMovie

[Deprecated] 本工程不再维护,并转移到更简洁强大的WeexTemplate https://github.com/MasonLiuChn/WeexTemplate Web端做SPA,Native端做多页应用并使用Vuex
Vue
9
star
17

Arrow

Arrow is a lightweight dependency injection library for Android.
Java
8
star
18

FundValuation

基金估值曲线
JavaScript
8
star
19

Dagger2Plus

A extension for Dagger2,auto generate injecter function for component interface,run inject function in a base Activity or Object
Java
8
star
20

GifView

Demo_GifView
Java
7
star
21

Demo_DownRefresh_LinearList

DownRefresh And ListView Made By LinearLayout
Java
6
star
22

WeexTemplate

一个开发Weex的极简模板工程,采用Vue v2.0、Webpack v3、Vue Loader v14,并默认配置了Vuex、VueRouter,没有多余依赖,适合作为初始工程进行扩展。所有依赖升级到最新版。 包含四种架构:webspa-nativempa、webspa-nativespa、nativempa、webspa
JavaScript
6
star
23

Android-Batch-Pack

Android-Batch-Pack can Batch-Pack and modify umeng‘s channel tag everytime
Java
6
star
24

ArouterModular

a demo about android modular with arouter
Java
5
star
25

AndroidJava8

Java
5
star
26

XRecyclerView

A extension for RecyclerView,add header、footer,load more
Java
5
star
27

Mason-Universal-image-loader

Java
5
star
28

Android-Onekey-Decompilation

Android-Onekey-Decompilation :decompile apk's dex,xml,jar and show you apk's signature info,umeng channel tag.
Shell
5
star
29

UmengUpdatePlus

[DEPRECATED] new repository in https://github.com/MasonLiuChn/BuglyPlus
Java
5
star
30

RNContainer-Android

此工程是基于react-native Android sdk封装的运行bundle的容器,使用redux和本人建议使用Weex来代替react-native,下面有weex和react-native开发时的差异点。
Java
5
star
31

BuglyPlus

Java
4
star
32

FullPlugin

Android全量插件化,用于中小App免发布升级
4
star
33

UpDownSlidingDrawer

SlidingDrawer top to bottom
Java
4
star
34

XDownload

multi-thread, broken-point-resume ,pause download library for Android
Java
4
star
35

OkHttpPlus

A extention for okhttp,json parser,callback with onStart() and onFinish()
Java
4
star
36

SyncXcodeFolder

Sync your Xcode iOS project Group to the folder in file system. Xcode中iOS工程的Group结构同步到文件系统,使得文件系统看到的目录结构和Xcode中看到的Group结构一致
Java
4
star
37

MockLoveProxy

基于AnyProxy的rule功能,在代理的后端增加一层mock。可以方便的配置某些接口的mock、可以依据场景切换mock。
JavaScript
3
star
38

GMaven

a gradle plugin to publish your code to github as maven repo
Groovy
3
star
39

MTAPlus

腾讯移动分析SDK Android Gradle配置
Java
2
star
40

SwiftDoubanFM

Swift iOS Project for Douban FM
Swift
2
star
41

DragButton

DragButton
Java
2
star
42

GsonPlus

A extention for gson,ignore annotation,parse Map or List
Java
2
star
43

UbuntuChn

Ubuntu中文无忧版
2
star
44

DebugMode

DebugMode is a library for android developer switch various API environment like testing or staging.
Java
2
star
45

DirectoryDownload

简单实现文件目录可在线下载
JavaScript
1
star
46

AutoBreakTextView

Java
1
star
47

WeexGuide

Weex入门向导
1
star
48

VuePressTemplate

使用VuePress搭建静态网站,可以做开源项目官方站点,并修改为绿色主题。
JavaScript
1
star
49

TestSocketIO1

针对SocketIO1.0 的Android版SDK。这是一个Eclipse Android工程直接运行。 在doc文件夹里有打包好的jar包。 如果想用纯java版的sdk,需要额外加入json包。
Java
1
star