| OLD | NEW |
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 argument-rgx=[a-z_][a-z0-9_]{1,30}$ | 196 argument-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 197 | 197 |
| 198 # Regular expression which should only match correct variable names. | 198 # Regular expression which should only match correct variable names. |
| 199 variable-rgx=[a-z_][a-z0-9_]{1,30}$ | 199 variable-rgx=[a-z_][a-z0-9_]{1,30}$ |
| 200 | 200 |
| 201 # Regular expression which should only match correct list comprehension or | 201 # Regular expression which should only match correct list comprehension or |
| 202 # generator expression variable names. | 202 # generator expression variable names. |
| 203 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ | 203 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 204 | 204 |
| 205 # Good variable names which should always be accepted, separated by a comma. | 205 # Good variable names which should always be accepted, separated by a comma. |
| 206 good-names=i,j,k,ex,Run,_,_log | 206 # These short names are acceptable in the following cases: |
| 207 # _ - unused value |
| 208 # i/j/k - for XXX in range(): |
| 209 # k/v - for k, v in x.items(): |
| 210 # x/y/z - coordinates |
| 211 # e - except XXXError as e: |
| 212 # f/fd - with open('blah') as f: |
| 213 # _log/Run - webkitpy functions |
| 214 good-names=_,i,j,k,v,x,y,z,e,f,fd,_log,Run |
| 207 | 215 |
| 208 # Bad variable names which should always be refused, separated by a comma. | 216 # Bad variable names which should always be refused, separated by a comma. |
| 209 bad-names=foo,bar,baz,toto,tutu,tata | 217 bad-names=foo,bar,baz,toto,tutu,tata |
| 210 | 218 |
| 211 # Regular expression which should only match functions or classes name which do | 219 # Regular expression which should only match functions or classes name which do |
| 212 # not require a docstring. | 220 # not require a docstring. |
| 213 no-docstring-rgx=__.*__ | 221 no-docstring-rgx=__.*__ |
| 214 | 222 |
| 215 | 223 |
| 216 [DESIGN] | 224 [DESIGN] |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 # Create a graph of internal dependencies in the given file (report RP0402 must | 284 # Create a graph of internal dependencies in the given file (report RP0402 must |
| 277 # not be disabled). | 285 # not be disabled). |
| 278 int-import-graph= | 286 int-import-graph= |
| 279 | 287 |
| 280 | 288 |
| 281 [EXCEPTIONS] | 289 [EXCEPTIONS] |
| 282 | 290 |
| 283 # Exceptions that will emit a warning when being caught. Defaults to | 291 # Exceptions that will emit a warning when being caught. Defaults to |
| 284 # "Exception". | 292 # "Exception". |
| 285 overgeneral-exceptions=Exception | 293 overgeneral-exceptions=Exception |
| OLD | NEW |