Debian Codegraph @

src/tools/pgindent/exclude_file_patterns

raw
1 # List of filename patterns to exclude from pgindent runs
2 #
3 # These contain assembly code that pgindent tends to mess up.
4 src/include/storage/s_lock\.h$
5 src/include/port/atomics/
6 #
7 # These contain C++ constructs that confuse pgindent.
8 src/include/jit/llvmjit\.h$
9 src/include/jit/SectionMemoryManager\.h$
10 #
11 # These are generated files with incomplete code fragments that
12 # confuse pgindent.
13 src/backend/nodes/\w+\.funcs\.c$
14 src/backend/nodes/\w+\.switch\.c$
15 #
16 # These are generated by generate-wait_event_types.pl, whose format
17 # looks worse with pgindent.
18 src/backend/utils/activity/pgstat_wait_event\.c$
19 src/backend/utils/activity/wait_event_funcs_data\.c$
20 src/backend/utils/activity/wait_event_types\.h$
21 #
22 # This confuses pgindent, and it's a derived file anyway.
23 src/backend/utils/fmgrtab\.c$
24 #
25 # pgindent might mangle entries in this that match typedef names.
26 # Since it's a derived file anyway, just exclude it.
27 src/backend/utils/fmgrprotos\.h$
28 #
29 # kwlist_d files are made by gen_keywordlist.pl. While we could insist that
30 # they match pgindent style, they'd look worse not better, so exclude them.
31 kwlist_d\.h$
32 #
33 # These are generated by the scripts from src/common/unicode/. They use
34 # hash functions generated by PerfectHash.pm whose format looks worse with
35 # pgindent.
36 src/include/common/unicode_norm_hashfunc\.h$
37 src/include/common/unicode_normprops_table\.h$
38 #
39 # Exclude ecpg test files to avoid breaking the ecpg regression tests
40 # (but include files at the top level of the ecpg/test/ directory).
41 src/interfaces/ecpg/test/.*/
42 #
43 # src/include/snowball/libstemmer/ and src/backend/snowball/libstemmer/
44 # are excluded because those files are imported from an external project,
45 # rather than maintained locally, and they are machine-generated anyway.
46 /snowball/libstemmer/
47 #
48 # These files are machine-generated by code not under our control,
49 # so we shouldn't expect them to conform to our style.
50 # (Some versions of dtrace build probes.h files that confuse pgindent, too.)
51 src/backend/utils/probes\.h$
52 src/include/pg_config\.h$
53 src/pl/plperl/ppport\.h$
54 src/pl/plperl/SPI\.c$
55 src/pl/plperl/Util\.c$
56 #
57 # pg_bsd_indent has its own, idiosyncratic indentation style.
58 # We'll stick to that to permit comparison with the FreeBSD upstream.
59 src/tools/pg_bsd_indent/.*
60 #
61 # Exclude any temporary installations that may be in the tree.
62 /tmp_check/
63 /tmp_install/
64 # ... and for paranoia's sake, don't touch git stuff.
65 /\.git/