Michael Schaffner | 388f5d5 | 2020-01-15 12:04:40 -0800 | [diff] [blame] | 1 | #!/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 | |
| 11 | NUM_PROCS=8 |
| 12 | REPORT_FILE="verible-style-lint.rpt" |
| 13 | EXCLUDED_RULES="-macro-name-style" |
| 14 | |
| 15 | # get all system verilog files and pipe through style linter |
| 16 | find 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 |