mirror of
https://github.com/actiontech/dble.git
synced 2026-01-06 04:40:17 -06:00
223 lines
6.7 KiB
XML
223 lines
6.7 KiB
XML
<FindBugsFilter>
|
|
|
|
<!-- protocol:ignore -->
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta$ColumnMeta"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta$IndexMeta"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta$TableMeta"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta$ColumnMeta$Builder"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.meta.protocol.StructureMeta$IndexMeta$Builder"/>
|
|
</Match>
|
|
|
|
<!-- protocol:ignore -->
|
|
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Class name="io.mycat.sqlengine.mpp.UnsafeRowGrouper"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.sqlengine.mpp.RowDataPacketGrouper"/>
|
|
</Match>
|
|
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Package name="io.mycat.util.dataMigrator"/>
|
|
</Match>
|
|
<Match>
|
|
<Package name="io.mycat.util.dataMigrator.dataIOImpl"/>
|
|
</Match>
|
|
<!--MALICIOUS_CODE ,need refactor? -->
|
|
<Match>
|
|
<Bug category="MALICIOUS_CODE"/>
|
|
</Match>
|
|
|
|
|
|
<!-- I18N new String(byte[]) UTF-8 OR EVENT SET? -->
|
|
<Match>
|
|
<Bug category="I18N"/>
|
|
<Bug pattern="DM_DEFAULT_ENCODING"/>
|
|
</Match>
|
|
|
|
<!-- subquery need to refactor -->
|
|
<Match>
|
|
<Class name="io.mycat.plan.common.item.subquery.ItemSinglerowSubselect"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.plan.common.item.subquery.ItemAllanySubselect"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.plan.common.item.subquery.ItemExistsSubselect"/>
|
|
</Match>
|
|
<Match>
|
|
<Class name="io.mycat.plan.common.item.subquery.ItemMaxminSubselect"/>
|
|
</Match>
|
|
<!-- subquery need to refactor end -->
|
|
|
|
<!-- need remove??? -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
|
|
<Class name="io.mycat.plan.common.item.function.timefunc.ItemTemporalHybridFunc"/>
|
|
</Match>
|
|
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.plan.common.time.MySQLTimeStatus"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
|
|
<Class name="io.mycat.plan.common.time.MyTime"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.route.sequence.handler.SequenceVal"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.plan.common.typelib.TYPELIB"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.plan.common.locale.MYLOCALEERRMSGS"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.plan.common.locale.MYLOCALE"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.backend.mysql.BindValue"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
|
|
<Class name="io.mycat.net.mysql.ExecutePacket"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
|
|
<Class name="io.mycat.server.parser.ServerParseSelect"/>
|
|
</Match>
|
|
<!-- need refactor -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
|
|
<Class name="io.mycat.server.response.CharacterSet"/>
|
|
</Match>
|
|
|
|
<!-- use enum? -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
|
|
<Class name="io.mycat.backend.heartbeat.MySQLHeartbeat"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="SF_SWITCH_NO_DEFAULT"/>
|
|
<Class name="io.mycat.server.response.SessionIsolation"/>
|
|
</Match>
|
|
<!-- always throw new exception-->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="REC_CATCH_EXCEPTION"/>
|
|
</Match>
|
|
<!-- feature -->
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Bug pattern="DB_DUPLICATE_BRANCHES"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Class name="io.mycat.plan.common.time.MyTime"/>
|
|
<Method name="extract_date_time"/>
|
|
<Bug pattern="SF_SWITCH_FALLTHROUGH"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Class name="io.mycat.memory.unsafe.utils.sort.TimSort"/>
|
|
<Method name="binarySort"/>
|
|
<Bug pattern="SF_SWITCH_FALLTHROUGH"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="STYLE"/>
|
|
<Class name="io.mycat.net.mysql.BinaryRowDataPacket"/>
|
|
<Method name="read"/>
|
|
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
|
|
</Match>
|
|
<!-- STYLE end -->
|
|
|
|
<!-- PERFORMANCE system.gc() is needed? -->
|
|
<Match>
|
|
<Bug category="PERFORMANCE"/>
|
|
<Bug pattern="DM_GC"/>
|
|
</Match>
|
|
<!-- PERFORMANCE end -->
|
|
|
|
<!-- CORRECTNESS start -->
|
|
<Match>
|
|
<Bug category="CORRECTNESS"/>
|
|
<Class name="io.mycat.plan.node.JoinNode"/>
|
|
<Method name="setRightNode"/>
|
|
<Bug pattern="NP_NULL_PARAM_DEREF_ALL_TARGETS_DANGEROUS"/>
|
|
</Match>
|
|
<!-- CORRECTNESS end -->
|
|
|
|
<!-- MT_CORRECTNESS start num:7 -->
|
|
<Match>
|
|
<Bug category="MT_CORRECTNESS"/>
|
|
<Class name="io.mycat.MycatServer"/>
|
|
<Method name="genXATXID"/>
|
|
<Bug pattern="JLM_JSR166_UTILCONCURRENT_MONITORENTER"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="MT_CORRECTNESS"/>
|
|
<Class name="io.mycat.backend.mysql.xa.recovery.impl.FileSystemRepository"/>
|
|
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="MT_CORRECTNESS"/>
|
|
<Class name="io.mycat.server.handler.ServerLoadDataInfileHandler"/>
|
|
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
|
|
</Match>
|
|
<Match>
|
|
<Bug category="MT_CORRECTNESS"/>
|
|
<Class name="io.mycat.memory.unsafe.map.BytesToBytesMap$MapIterator"/>
|
|
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
|
|
</Match>
|
|
<!-- MT_CORRECTNESS end -->
|
|
|
|
<!-- BAD_PRACTICE start ,num:9-->
|
|
<Match>
|
|
<Bug category="BAD_PRACTICE"/>
|
|
<Bug pattern="RR_NOT_CHECKED,RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
|
|
</Match>
|
|
<!-- BAD_PRACTICE end-->
|
|
|
|
</FindBugsFilter> |