blob: 3d03ba7107da9ccfd08367b5b3ea0e5b7b4da454 [file] [log] [blame]
Michael Schaffner388f5d52020-01-15 12:04:40 -08001#!/bin/bash
2# Copyright lowRISC contributors.
3# Licensed under the Apache License, Version 2.0, see LICENSE for details.
4# SPDX-License-Identifier: Apache-2.0
5#
6# this script runs the verible style linte on all system verilog
7# files under hw/{ip,vendor,top_earlgrey}
8#
9# TODO: integrate this with Fusesoc and the other linting flows.
10
11NUM_PROCS=8
12REPORT_FILE="verible-style-lint.rpt"
13EXCLUDED_RULES="-macro-name-style"
14
15# get all system verilog files and pipe through style linter
16find hw/{ip,vendor,top_earlgrey} -type f -name "*.sv" -o -name "*.svh" | \
17 xargs -n 1 -P $NUM_PROCS /tools/verible/verilog_lint \
18 --rules=$EXCLUDED_RULES \
19 | tee $REPORT_FILE