File tree 1 file changed +13
-14
lines changed
1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Excluding functions
4
4
5
- Functions can be excluded from analysis by putting a ` # nocl` comment on the
6
- line above the start of the function, or at any line of the function header .
5
+ Functions can be excluded from analysis by putting a ` nocl ` comment
6
+ (case-insensitive) on the line of the name of function.
7
7
8
- For example, to ignore a function with a ` # nocl ` comment above the start of
9
- the function:
8
+ For example, to ignore a Python function:
10
9
11
10
``` python
12
- # nocl
13
- def some_function ():
11
+ def some_function (): # nocl
14
12
...
15
13
```
16
14
17
- Or you can ignore a function by putting a ` # nocl ` comment on any line of the
18
- header:
15
+ or to ignore this Python function:
19
16
20
17
``` python
21
- def some_function (): # nocl
18
+ def some_functions ( # nocl
19
+ some_numbers : list[int ]
20
+ ) -> int :
22
21
...
23
22
```
24
23
25
- ``` python
26
- def some_functions (
27
- some_numbers : list[ int ]
28
- ) -> int : # nocl
24
+ or to ignore this C function:
25
+
26
+ ``` c
27
+ void some_function ( int a, const char * b) { // nocl
29
28
...
30
29
```
31
30
@@ -71,4 +70,4 @@ The default exclusion list is:
71
70
" test" ,
72
71
" tests" ,
73
72
]
74
- ```
73
+ ```
You can’t perform that action at this time.
0 commit comments