Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 1 | # -*- coding:utf-8 -*- |
| 2 | # Copyright (C) 2006 Libresoft |
| 3 | # |
| 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 |
Philippe Mathieu-Daudé | 568c439 | 2019-01-11 16:55:55 +0100 | [diff] [blame] | 7 | # (at your option) any later version. |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 8 | # |
| 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. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
Khadija Kamran | 0c201cc | 2023-02-20 07:01:09 +0000 | [diff] [blame] | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 16 | # |
| 17 | # Authors : Gregorio Robles <grex@gsyc.escet.urjc.es> |
| 18 | # Authors : Germán Póo-Caamaño <gpoo@gnome.org> |
| 19 | # |
| 20 | # This QEMU version is a cut-down version of what originally shipped |
| 21 | # in the gitdm sample-config directory. |
| 22 | # |
| 23 | # This file contains associations parameters regarding filetypes |
zhaolichang | 639b090 | 2020-09-17 15:50:29 +0800 | [diff] [blame] | 24 | # (documentation, development, multimedia, images...) |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 25 | # |
| 26 | # format: |
| 27 | # filetype <type> <regex> [<comment>] |
| 28 | # |
| 29 | # Order: |
| 30 | # The list should keep an order, so filetypes can be counted properly. |
| 31 | # ie. we want ltmain.sh -> 'build' instead of 'code'. |
| 32 | # |
| 33 | # If there is an filetype which is not in order but has values, it will |
| 34 | # be added at the end. |
| 35 | # |
Markus Armbruster | 2f1b409 | 2019-08-22 14:23:49 +0200 | [diff] [blame] | 36 | order build,interface,tests,code,documentation,devel-doc,blobs |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 37 | |
| 38 | # |
| 39 | # |
| 40 | # Code files (headers and the like included |
| 41 | # (most common languages first |
| 42 | # |
| 43 | filetype code \.c$ # C |
Paolo Bonzini | 139c183 | 2020-02-04 12:41:01 +0100 | [diff] [blame] | 44 | filetype code \.c.inc$ # C |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 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 |
zhaolichang | 639b090 | 2020-09-17 15:50:29 +0800 | [diff] [blame] | 61 | filetype code ^common$ # script fragments |
| 62 | filetype code ^common.*$ # script fragments |
Alex Bennée | 2f28271 | 2018-12-14 20:54:33 +0000 | [diff] [blame] | 63 | filetype code (qom|qmp)-\w+$ # python script fragments |
| 64 | |
| 65 | # |
| 66 | # Interface/api files |
| 67 | # |
| 68 | filetype interface \.json$ # json |
| 69 | filetype interface \.hx$ # documented options |
| 70 | |
| 71 | # |
| 72 | # Test related blobs (unfortunately we can't filter out test code) |
| 73 | # |
| 74 | filetype tests \.hex$ |
| 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 |
| 78 | filetype tests \.out$ |
| 79 | filetype tests \.out\.nocache$ |
| 80 | filetype tests \.err$ |
| 81 | filetype tests \.exit$ # bad-if-FOO.exit etc |
| 82 | filetype tests \.decode$ |
| 83 | filetype tests \.yml$ # travis/shippable config |
| 84 | |
| 85 | # |
| 86 | # Development documentation files (for hacking generally) |
| 87 | # |
| 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$ |
| 101 | |
| 102 | # |
| 103 | # Building, compiling, and configuration admin files |
| 104 | # |
| 105 | filetype build configure.*$ |
| 106 | filetype build Makefile$ |
| 107 | filetype build Makefile\.*$ |
| 108 | filetype build config$ |
| 109 | filetype build conf$ |
| 110 | filetype build \.cfg$ |
| 111 | filetype build \.mk$ |
| 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 |
| 124 | |
| 125 | # |
| 126 | # Misc blobs |
| 127 | # |
| 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$ |
| 137 | |
| 138 | |
| 139 | # |
| 140 | # Documentation files |
| 141 | # |
| 142 | filetype documentation \.html$ |
| 143 | filetype documentation \.txt$ |
| 144 | filetype documentation \.texi$ |
| 145 | filetype documentation \.po$ # translation files |