Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mica
mica
提交
bf32e2e7
mica
项目概览
mica
/
mica
通知
10
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
mica
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bf32e2e7
编写于
8月 07, 2020
作者:
如梦技术
🐛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
切换到 sonar cloud。
上级
c38719a2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
50 deletion
+18
-50
.github/workflows/test-and-build.yml
.github/workflows/test-and-build.yml
+3
-1
build.gradle
build.gradle
+8
-0
gradle.properties
gradle.properties
+1
-0
gradle/quality.gradle
gradle/quality.gradle
+6
-19
gradle/quality/findbugs/excludeFilter.xml
gradle/quality/findbugs/excludeFilter.xml
+0
-30
未找到文件。
.github/workflows/test-and-build.yml
浏览文件 @
bf32e2e7
...
...
@@ -14,7 +14,9 @@ jobs:
-
name
:
Grant execute permission for gradlew
run
:
chmod +x gradlew
-
name
:
Build with Gradle
run
:
./gradlew build
run
:
./gradlew build sonarqube
env
:
SONAR_TOKEN
:
${{ secrets.SONAR_TOKEN }}
buildOnJava11
:
name
:
build on java11
runs-on
:
ubuntu-latest
...
...
build.gradle
浏览文件 @
bf32e2e7
plugins
{
id
"org.sonarqube"
version
"3.0"
}
ext
{
javaVersion
=
JavaVersion
.
VERSION_1_8
springBootVersion
=
"2.3.2.RELEASE"
...
...
@@ -69,6 +73,10 @@ configure(subprojects - project(":mica-bom")) {
compileJava
.
dependsOn
(
processResources
)
}
def
getSonarToken
()
{
return
System
.
getenv
(
'SONAR_TOKEN'
)
?:
SONAR_TOKEN
}
def
getRepositoryUsername
()
{
return
System
.
getenv
(
'NEXUS_OSS_USER_NAME'
)
?:
NEXUS_OSS_USER_NAME
}
...
...
gradle.properties
浏览文件 @
bf32e2e7
VERSION
=
2.0.5-SNAPSHOT
GROUPID
=
net.dreamlu
SONAR_TOKEN
=
***
NEXUS_OSS_USER_NAME
=
***
NEXUS_OSS_PASS_WORD
=
***
...
...
gradle/quality.gradle
浏览文件 @
bf32e2e7
// TODO L.cm spotbugs 目前不能输出 html,跟 lombok 插件有冲突
apply
plugin:
"findbugs"
findbugs
{
toolVersion
=
'3.0.1'
findbugsTest
.
enabled
=
false
sourceSets
=
[
sourceSets
.
main
]
ignoreFailures
=
true
reportsDir
=
file
(
"$project.buildDir/findbugsReports"
)
effort
=
"max"
showProgress
=
true
reportLevel
=
"high"
excludeFilter
=
file
(
"$rootProject.projectDir/gradle/quality/findbugs/excludeFilter.xml"
)
}
tasks
.
withType
(
FindBugs
)
{
reports
{
xml
.
enabled
=
false
html
.
enabled
=
true
sonarqube
{
properties
{
property
"sonar.projectKey"
,
"lets-mica_mica-example"
property
"sonar.organization"
,
"lets-mica"
property
"sonar.host.url"
,
"https://sonarcloud.io"
property
"sonar.login"
,
getSonarToken
()
}
}
gradle/quality/findbugs/excludeFilter.xml
已删除
100644 → 0
浏览文件 @
c38719a2
<FindBugsFilter>
<!--
Allow a class to hold or return mutable objects. While this has obvious risks, it is much too
common a pattern to treat as a bug.
-->
<Match>
<Bug
code=
"EI, EI2"
/>
</Match>
<!-- Ignore "UrF: Unread public/protected field (URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD)" since it is mostly false positives -->
<Match>
<Bug
code=
"UrF"
/>
</Match>
<!-- Ignore "NM_SAME_SIMPLE_NAME_AS_SUPERCLASS: shadows the simple name of the superclass" -->
<!--<Match>-->
<!--<Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS" />-->
<!--</Match>-->
<!--<!– Ignore "NM_SAME_SIMPLE_NAME_AS_INTERFACE: shadows the simple name of implemented interface" –>-->
<!--<Match>-->
<!--<Bug pattern="NM_SAME_SIMPLE_NAME_AS_INTERFACE" />-->
<!--</Match>-->
<Match>
<Class
name=
"~net\.dreamlu\.mica\.config\.SpringUtils.*"
/>
<Bug
pattern=
"ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"
/>
</Match>
<Match>
<Class
name=
"~net\.dreamlu\.mica\.log\.LogPrintStream.*"
/>
<Bug
pattern=
"DM_DEFAULT_ENCODING"
/>
</Match>
</FindBugsFilter>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录