2 # Copyright (C) 2006 Libresoft
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU Library General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Authors : Gregorio Robles <grex@gsyc.escet.urjc.es>
18 # Authors : Germán Póo-Caamaño <gpoo@gnome.org>
20 # This QEMU version is a cut-down version of what originally shipped
21 # in the gitdm sample-config directory.
23 # This file contains associations parameters regarding filetypes
24 # (documentation, development, multimedia, images...)
27 # filetype <type> <regex> [<comment>]
30 # The list should keep an order, so filetypes can be counted properly.
31 # ie. we want ltmain.sh -> 'build' instead of 'code'.
33 # If there is an filetype which is not in order but has values, it will
34 # be added at the end.
36 order build,interface,tests,code,documentation,devel-doc,blobs
40 # Code files (headers and the like included
41 # (most common languages first
43 filetype code \.c$ # C
44 filetype code \.c.inc$ # C
45 filetype code \.C$ # C++
46 filetype code \.cpp$ # C++
47 filetype code \.c\+\+$ # C++
48 filetype code \.cxx$ # C++
49 filetype code \.cc$ # C++
50 filetype code \.h$ # C or C++ header
51 filetype code \.hh$ # C++ header
52 filetype code \.hpp$ # C++ header
53 filetype code \.hxx$ # C++ header
54 filetype code \.sh$ # Shell
55 filetype code \.pl$ # Perl
56 filetype code \.py$ # Python
57 filetype code \.s$ # Assembly
58 filetype code \.S$ # Assembly
59 filetype code \.asm$ # Assembly
60 filetype code \.awk$ # awk
61 filetype code ^common$ # script fragments
62 filetype code ^common.*$ # script fragments
63 filetype code (qom|qmp)-\w+$ # python script fragments
68 filetype interface \.json$ # json
69 filetype interface \.hx$ # documented options
72 # Test related blobs (unfortunately we can't filter out test code)
75 filetype tests \d{2,3}$ # test data 00-999
76 filetype tests ^[A-Z]{4}$ # ACPI test data
77 filetype tests ^[A-Z]{4}\.*$ # ACPI test data
79 filetype tests \.out\.nocache$
81 filetype tests \.exit$ # bad-if-FOO.exit etc
82 filetype tests \.decode$
83 filetype tests \.yml$ # travis/shippable config
86 # Development documentation files (for hacking generally)
88 filetype devel-doc ^readme.*$
89 filetype devel-doc ^changelog.*
90 filetype devel-doc ^hacking.*$
91 filetype devel-doc ^licen(s|c)e.*$
92 filetype devel-doc ^copying.*$
93 filetype devel-doc ^MAINTAINERS$
94 filetype devel-doc ^BSD-2-Clause$
95 filetype devel-doc ^BSD-3-Clause$
96 filetype devel-doc ^GPL-2.0$
97 filetype devel-doc \.txt$
98 filetype devel-doc \.rst$
99 filetype devel-doc \.texi$
100 filetype devel-doc \.pod$
103 # Building, compiling, and configuration admin files
105 filetype build configure.*$
106 filetype build Makefile$
107 filetype build Makefile\.*$
108 filetype build config$
110 filetype build \.cfg$
112 filetype build \.mak$
113 filetype build \.docker$
114 filetype build \.pre$
115 filetype build ^.gitignore$
116 filetype build ^.gitmodules$
117 filetype build ^.gitpublish$
118 filetype build ^.mailmap$
119 filetype build ^.dir-locals.el$
120 filetype build ^.editorconfig$
121 filetype build ^.exrc$
122 filetype build ^.gdbinit$
123 filetype build \.cocci$ # Coccinelle semantic patches
128 filetype blobs \.bin$
129 filetype blobs \.dtb$
130 filetype blobs \.dts$
131 filetype blobs \.rom$
132 filetype blobs \.img$
133 filetype blobs \.ndrv$
134 filetype blobs \.bmp$
135 filetype blobs \.svg$
136 filetype blobs ^pi_10.com$
140 # Documentation files
142 filetype documentation \.html$
143 filetype documentation \.txt$
144 filetype documentation \.texi$
145 filetype documentation \.po$ # translation files