示例#1
0
def ruby_spotbugs(args):
    """Run SpotBugs with custom options to detect more issues"""
    filters = join(root, 'mx.truffleruby', 'spotbugs-filters.xml')
    spotbugsArgs = ['-textui', '-low', '-longBugCodes', '-include', filters]
    if mx.is_interactive():
        spotbugsArgs.append('-progress')
    mx_spotbugs.spotbugs(args, spotbugsArgs)
示例#2
0
def ruby_spotbugs(args):
    """Run SpotBugs with custom options to detect more issues"""
    mx.command_function('build')(
        ['--no-native'])  # SpotBugs needs all Java projects to be built

    filters = join(root, 'mx.truffleruby', 'spotbugs-filters.xml')
    spotbugsArgs = ['-textui', '-low', '-longBugCodes', '-include', filters]
    if mx.is_interactive():
        spotbugsArgs.append('-progress')
    mx_spotbugs.spotbugs(args, spotbugsArgs)
示例#3
0
def defaultFindbugsArgs():
    args = ['-textui', '-low', '-maxRank', '15']
    if mx.is_interactive():
        args.append('-progress')
    return args
示例#4
0
文件: mx_findbugs.py 项目: graalvm/mx
def defaultFindbugsArgs():
    args = ['-textui', '-low', '-maxRank', '15']
    if mx.is_interactive():
        args.append('-progress')
    return args