コード例 #1
0
ファイル: export.py プロジェクト: aaudiber/rust-clippy
def main():
    lintlist, configs = parse_all()
    lints = {}
    for lint in lintlist:
        lints[lint.name] = parse_lint_def(lint)
        if lint.name in configs:
            lints[lint.name]['docs']['Configuration'] = \
                CONF_TEMPLATE % configs[lint.name]

    outfile = sys.argv[1] if len(sys.argv) > 1 else "util/gh-pages/lints.json"
    with open(outfile, "w") as fp:
        json.dump(list(lints.values()), fp, indent=2)
        log.info("wrote JSON for great justice")
コード例 #2
0
ファイル: export.py プロジェクト: zhujo01/rustkpi
def main():
    lintlist, configs = parse_all()
    lints = {}
    for lint in lintlist:
        lints[lint.name] = parse_lint_def(lint)
        if lint.name in configs:
            lints[lint.name]['docs']['Configuration'] = \
                CONF_TEMPLATE % configs[lint.name]

    outfile = sys.argv[1] if len(sys.argv) > 1 else "util/gh-pages/lints.json"
    with open(outfile, "w") as fp:
        json.dump(list(lints.values()), fp, indent=2)
        log.info("wrote JSON for great justice")
コード例 #3
0
ファイル: update_wiki.py プロジェクト: tomprince/rust-clippy
def main():
    lints, configs = parse_all()
    if "-c" in sys.argv:
        check_wiki_page(lints, configs, "../rust-clippy.wiki/Home.md")
    else:
        write_wiki_page(lints, configs, "../rust-clippy.wiki/Home.md")