Skip to content

Commit cf64e0e

Browse files
committed
Ruby: trap_compression -> trap.compression
Change the trap_compression extractor option to be an object `trap` with a nested option `compression`. This means that on the command line you would supply the option as follows: codeql database create --extractor-option trap.compression=gzip This is a little less jarring than the previous design, which would use underscores amonst the hyphens: codeql database create --extractor-option trap_compression=gzip
1 parent 7649772 commit cf64e0e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

ruby/codeql-extractor.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ file_types:
1717
extensions:
1818
- .erb
1919
options:
20-
trap_compression:
21-
title: Controls compression for the TRAP files written by the extractor.
22-
description: >
23-
This option is only intended for use in debugging the extractor. Accepted
24-
values are 'gzip' (the default, to write gzip-compressed TRAP) and 'none'
25-
(to write uncompressed TRAP).
26-
type: string
27-
pattern: "^(none|gzip)$"
20+
trap:
21+
title: Options related to TRAP output.
22+
type: object
23+
properties:
24+
compression:
25+
title: Controls compression for the TRAP files written by the extractor.
26+
description: >
27+
This option is only intended for use in debugging the extractor. Accepted
28+
values are 'gzip' (the default, to write gzip-compressed TRAP) and 'none'
29+
(to write uncompressed TRAP).
30+
type: string
31+
pattern: "^(none|gzip)$"

0 commit comments

Comments
 (0)