Repository navigation
Expand file tree
/
Copy pathgobject-linter.toml
More file actions
139 lines (118 loc) · 2.79 KB
/
Copy pathgobject-linter.toml
File metadata and controls
139 lines (118 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
min_glib_version = "2.84"
msvc_compatible = true
default_level = "error"
[rules.g_error_leak]
extra_propagation_functions = [
"gdk_content_deserializer_return_error",
"gdk_content_serializer_return_error",
# gtk/gtkbuilderprecompile.c
"propagate_error",
# gtk/gtkfilechooserwidget.c
"error_creating_folder_dialog",
"error_building_filename_dialog",
"error_changing_folder_dialog",
"error_deleting_file",
"error_dialog",
"error_selecting_dragged_file_dialog",
"error_trashing_file",
]
[rules.g_source_id_not_stored]
check_once_functions = false
[rules.gi_missing_since]
level = "error"
[rules.gi_not_bindings_friendly]
level = "error"
ignore = [
"gdk/deprecated/**",
"gtk/deprecated/**",
]
[rules.include_order]
level = "ignore"
[rules.matching_declare_define]
level = "ignore"
[rules.missing_autoptr_cleanup]
ignore = [
# We don't use autoptrs ourselves, so private
# headers and source files don't need it.
"**/*.c",
"**/*private.h",
# weird naming convention for private headers in the backend
"gdk/broadway/*-broadway.h",
"gdk/wayland/*-wayland.h",
"gdk/win32/*-win32.h",
"gdk/win32/gdkdevice-virtual.h",
"gdk/win32/gdkdevice-winpointer.h",
"gdk/win32/gdkdevice-wintab.h",
"gdk/x11/*-x11.h",
# directories that don't install anything
"gtk/inspector/**",
"demos/**",
"examples/**",
"tests/**",
"testutils/**",
"testsuite/**",
]
[rules.missing_implementation]
ignore = [
# gobject-linter can't deal with Objective-C
"gdk/macos/**",
# Autogenerated using macros
"gtk/gtkcssstyleprivate.h",
"gtk/svg/gtksvgenumprivate.h",
]
[rules.no_g_auto_macros]
ignore = ["demos/icon-editor/**"]
[rules.property_enum_convention]
level = "ignore"
style = "legacy"
[rules.property_switch_exhaustiveness]
style = "legacy"
[rules.type_style]
level = "ignore"
style = "c"
[rules.untranslated_string]
ignore = [
"demos/**",
"examples/**",
"tests/**",
"testutils/**",
"testsuite/**",
]
[rules.use_g_ascii_functions]
ignore = [
# external sources should stay unmodified
"testutils/diff/diffreg.c",
]
[rules.use_g_object_notify_by_pspec]
ignore = [
# GdkDevice
"gdk/wayland/gdkseat-wayland.c",
"gdk/win32/gdkkeys-win32.c",
"gdk/x11/gdkkeys-x11.c",
# GdkToplevel
"gdk/wayland/gdktoplevel-wayland.c",
"gdk/x11/gdksurface-x11.c",
# GtkEditable
"gtk/gtktext.c",
# GtkFileChooser
"gtk/gtkfilechooserwidget.c",
# GtkFontChooser
"gtk/deprecated/gtkfontbutton.c",
"gtk/gtkfontchooserwidget.c",
]
[rules.use_g_set_object]
level = "ignore"
[rules.use_g_set_str]
level = "ignore"
[rules.use_g_steal_pointer]
level = "ignore"
[rules.use_g_strcmp0]
level = "ignore"
[rules.use_g_string_free_and_steal]
level = "ignore"
[rules.use_pragma_once]
ignore = [
# external sources should stay unmodified
"gdk/win32/wintab.h",
"gtk/roaring/roaring.h",
]