style.py (11828:36b064696175) | style.py (12771:75508af5d8dc) |
---|---|
1#! /usr/bin/env python2 2# Copyright (c) 2014, 2016 ARM Limited 3# All rights reserved 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 101 unchanged lines hidden (view full) --- 110# repository root (without a leading slash) as their argument. A file 111# is excluded if any function in the list returns true. 112style_ignores = [ 113 # Ignore external projects as they are unlikely to follow the gem5 114 # coding convention. 115 _re_ignore("^ext/"), 116 # Ignore test data, as they are not code 117 _re_ignore("^tests/(?:quick|long)/"), | 1#! /usr/bin/env python2 2# Copyright (c) 2014, 2016 ARM Limited 3# All rights reserved 4# 5# The license below extends only to copyright in the software and shall 6# not be construed as granting a license to any other intellectual 7# property including but not limited to intellectual property relating 8# to a hardware implementation of the functionality of the software --- 101 unchanged lines hidden (view full) --- 110# repository root (without a leading slash) as their argument. A file 111# is excluded if any function in the list returns true. 112style_ignores = [ 113 # Ignore external projects as they are unlikely to follow the gem5 114 # coding convention. 115 _re_ignore("^ext/"), 116 # Ignore test data, as they are not code 117 _re_ignore("^tests/(?:quick|long)/"), |
118 # Ignore RISC-V assembly tests as they are maintained in an external 119 # project that does not follow the gem5 coding convention 120 _re_ignore("tests/test-progs/asmtest/src/riscv/"), 121 # Ignore RISC-V assembly dump files 122 _re_ignore("tests/test-progs/asmtest/dump/riscv/") |
|
118] 119 120def check_ignores(fname): 121 """Check if a file name matches any of the ignore rules""" 122 123 for rule in style_ignores: 124 if rule(fname): 125 return True --- 26 unchanged lines hidden --- | 123] 124 125def check_ignores(fname): 126 """Check if a file name matches any of the ignore rules""" 127 128 for rule in style_ignores: 129 if rule(fname): 130 return True --- 26 unchanged lines hidden --- |