|
142 | 142 | os.path.join('Tools', 'DumpRenderTree', 'TestNetscapePlugIn')],
|
143 | 143 | ["-build/include",
|
144 | 144 | "-readability/naming"]),
|
145 |
| - ([# There is no clean way to avoid "yy_*" names used by flex. |
| 145 | + ([ # There is no clean way to avoid "yy_*" names used by flex. |
146 | 146 | os.path.join('Source', 'WebCore', 'css', 'CSSParser.cpp'),
|
147 | 147 | # TestWebKitAPI uses funny macros like EXPECT_WK_STREQ.
|
148 | 148 | os.path.join('Tools', 'TestWebKitAPI')],
|
149 | 149 | ["-readability/naming"]),
|
150 | 150 |
|
151 |
| - ([# The GTK+ and WPE APIs use upper case, underscore separated, words in |
| 151 | + ([ |
| 152 | + # The GTK+ and WPE APIs use upper case, underscore separated, words in |
152 | 153 | # certain types of enums (e.g. signals, properties).
|
153 | 154 | os.path.join('Source', 'WebKit', 'Shared', 'API', 'glib'),
|
154 | 155 | os.path.join('Source', 'WebKit', 'UIProcess', 'API', 'glib'),
|
|
159 | 160 | os.path.join('Source', 'WebKit', 'WebProcess', 'InjectedBundle', 'API', 'wpe')],
|
160 | 161 | ["-readability/enum_casing"]),
|
161 | 162 |
|
162 |
| - ([# To use GStreamer GL without conflicts of GL symbols, |
| 163 | + ([ |
| 164 | + # To use GStreamer GL without conflicts of GL symbols, |
163 | 165 | # we should include gst/gl/gl.h before including OpenGL[ES]Shims
|
164 | 166 | os.path.join('Source', 'WebCore', 'platform', 'graphics', 'gstreamer', 'MediaPlayerPrivateGStreamerBase.cpp')],
|
165 | 167 | ["-build/include_order"]),
|
166 | 168 |
|
167 |
| - ([# Header files in ForwardingHeaders have no header guards or |
| 169 | + ([ |
| 170 | + # Header files in ForwardingHeaders have no header guards or |
168 | 171 | # exceptional header guards (e.g., WebCore_FWD_Debugger_h).
|
169 | 172 | os.path.join(os.path.sep, 'ForwardingHeaders')],
|
170 | 173 | ["-build/header_guard"]),
|
171 |
| - ([# assembler has lots of opcodes that use underscores, so |
| 174 | + ([ |
| 175 | + # Assembler has lots of opcodes that use underscores, so |
172 | 176 | # we don't check for underscores in that directory.
|
173 | 177 | os.path.join('Source', 'JavaScriptCore', 'assembler'),
|
174 | 178 | os.path.join('Source', 'JavaScriptCore', 'jit', 'JIT')],
|
175 | 179 | ["-readability/naming/underscores"]),
|
176 |
| - ([# JITStubs has an usual syntax which causes false alarms for a few checks. |
| 180 | + ([ # JITStubs has an usual syntax which causes false alarms for a few checks. |
177 | 181 | os.path.join('JavaScriptCore', 'jit', 'JITStubs.cpp')],
|
178 | 182 | ["-readability/parameter_name",
|
179 | 183 | "-whitespace/parens"]),
|
180 | 184 |
|
181 | 185 | # WebKit rules:
|
182 | 186 | # WebKit and certain directories have idiosyncracies.
|
183 |
| - ([# NPAPI has function names with underscores. |
| 187 | + ([ # NPAPI has function names with underscores. |
184 | 188 | os.path.join('Source', 'WebKit', 'WebProcess', 'Plugins', 'Netscape')],
|
185 | 189 | ["-readability/naming"]),
|
186 |
| - ([# The WebKit C API has names with underscores and whitespace-aligned |
| 190 | + ([ |
| 191 | + # The WebKit C API has names with underscores and whitespace-aligned |
187 | 192 | # struct members. Also, we allow unnecessary parameter names in
|
188 | 193 | # WebKit APIs because we're matching CF's header style.
|
189 | 194 | # Additionally, we use word which starts with non-capital letter 'k'
|
|
195 | 200 | "-readability/naming",
|
196 | 201 | "-readability/parameter_name",
|
197 | 202 | "-whitespace/declaration"]),
|
198 |
| - ([# These files define GObjects, which implies some definitions of |
| 203 | + ([ |
| 204 | + # These files define GObjects, which implies some definitions of |
199 | 205 | # variables and functions containing underscores.
|
200 | 206 | os.path.join('Source', 'WebCore', 'platform', 'graphics', 'gstreamer', 'VideoSinkGStreamer.cpp'),
|
201 | 207 | os.path.join('Source', 'WebCore', 'platform', 'graphics', 'gstreamer', 'WebKitWebSourceGStreamer.cpp'),
|
|
220 | 226 | "+pep8/W291", # Trailing white space
|
221 | 227 | "+whitespace/carriage_return"]),
|
222 | 228 |
|
223 |
| - ([# Source/JavaScriptCore/disassembler/udis86/ is generated code. |
| 229 | + ([ # Source/JavaScriptCore/disassembler/udis86/ is generated code. |
224 | 230 | os.path.join('Source', 'JavaScriptCore', 'disassembler', 'udis86')],
|
225 | 231 | ["-readability/naming/underscores",
|
226 | 232 | "-whitespace/declaration",
|
227 | 233 | "-whitespace/indent"]),
|
228 | 234 |
|
229 |
| - ([# There is no way to avoid the symbols __jit_debug_register_code |
| 235 | + ([ |
| 236 | + # There is no way to avoid the symbols __jit_debug_register_code |
230 | 237 | # and __jit_debug_descriptor when integrating with gdb.
|
231 | 238 | os.path.join('Source', 'JavaScriptCore', 'jit', 'GDBInterface.cpp')],
|
232 | 239 | ["-readability/naming"]),
|
233 | 240 |
|
234 |
| - ([# On some systems the trailing CR is causing parser failure. |
| 241 | + ([ # On some systems the trailing CR is causing parser failure. |
235 | 242 | os.path.join('Source', 'JavaScriptCore', 'parser', 'Keywords.table')],
|
236 | 243 | ["+whitespace/carriage_return"]),
|
237 | 244 |
|
238 |
| - ([# DataDetectorsCoreSPI.h declares enum bitfields as CFIndex. |
| 245 | + ([ # DataDetectorsCoreSPI.h declares enum bitfields as CFIndex. |
239 | 246 | os.path.join('Source', 'WebCore', 'PAL', 'pal', 'spi', 'cocoa', 'DataDetectorsCoreSPI.h')],
|
240 | 247 | ["-runtime/enum_bitfields"]),
|
241 | 248 |
|
242 |
| - ([# PassKitSPI.h imports "PassKit.h" at two lines depending on the build configuration, |
| 249 | + ([ |
| 250 | + # PassKitSPI.h imports "PassKit.h" at two lines depending on the build configuration, |
243 | 251 | # which causes a false positive error.
|
244 | 252 | os.path.join('Source', 'WebCore', 'PAL', 'pal', 'spi', 'cocoa', 'PassKitSPI.h')],
|
245 | 253 | ["-build/include"]),
|
246 | 254 |
|
247 |
| - ([# Some SPI headers have identifier names with underscores. |
| 255 | + ([ # Some SPI headers have identifier names with underscores. |
248 | 256 | os.path.join('Source', 'WebCore', 'PAL', 'pal', 'spi')],
|
249 | 257 | ["-readability/naming/underscores"]),
|
250 | 258 | ]
|
|
0 commit comments