Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
def defaultFindbugsArgs():
    args = ['-textui', '-low', '-maxRank', '15']
    if mx.is_interactive():
        args.append('-progress')
    return args
Ejemplo n.º 4
0
def defaultFindbugsArgs():
    args = ['-textui', '-low', '-maxRank', '15']
    if mx.is_interactive():
        args.append('-progress')
    return args