Esempio 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)
Esempio 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)