Skip to content

Commit 9f1d8cd

Browse files
committed
Python: Convert indentation to spaces for VS Code snippets
1 parent 5200af5 commit 9f1d8cd

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

python/.vscode/ql.code-snippets

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
{
2-
// Place your python workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3-
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4-
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5-
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6-
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7-
// Placeholders with the same ids are connected.
8-
// Example:
9-
// "Print to console": {
10-
// "scope": "javascript,typescript",
11-
// "prefix": "log",
12-
// "body": [
13-
// "console.log('$1');",
14-
// "$2"
15-
// ],
16-
// "description": "Log output to console"
17-
// }
2+
// Place your python workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
1818

1919
"Has relative path": {
20-
"scope": "ql",
21-
"prefix": "has relative path",
20+
"scope": "ql",
21+
"prefix": "has relative path",
2222
"body": [
2323
"exists($1.getLocation().getFile().getRelativePath())"
2424
],
2525
"description": "has relative path",
2626
},
2727

2828
"Exists": {
29-
"scope": "ql",
30-
"prefix": "exists",
29+
"scope": "ql",
30+
"prefix": "exists",
3131
"body": [
3232
"exists(${1:DataFlow::Node node} |",
3333
" $2",
@@ -37,8 +37,8 @@
3737
},
3838

3939
"Predicate": {
40-
"scope": "ql",
41-
"prefix": "predicate",
40+
"scope": "ql",
41+
"prefix": "predicate",
4242
"body": [
4343
"predicate ${1:isFoo}(${2:DataFlow::Node node}) {",
4444
" ${3:any()}",
@@ -48,8 +48,8 @@
4848
},
4949

5050
"Class": {
51-
"scope": "ql",
52-
"prefix": "class",
51+
"scope": "ql",
52+
"prefix": "class",
5353
"body": [
5454
"class ${1:MyClass} extends ${2:DataFlow::MethodCallNode} {",
5555
" $1() { ${3:getMethodName() = \"foo\"} }",
@@ -61,8 +61,8 @@
6161
},
6262

6363
"Abstract class": {
64-
"scope": "ql",
65-
"prefix": "abstract class",
64+
"scope": "ql",
65+
"prefix": "abstract class",
6666
"body": [
6767
"abstract class ${1:AdditionalThing} extends ${2:DataFlow::Node} {",
6868
" abstract ${3:DataFlow::Node} ${4:getThing}($5);",
@@ -72,8 +72,8 @@
7272
},
7373

7474
"Class::Range": {
75-
"scope": "ql",
76-
"prefix": "range class",
75+
"scope": "ql",
76+
"prefix": "range class",
7777
"body": [
7878
"class ${1:MyClass} extends ${2:DataFlow::Node} {",
7979
" $1::Range range;",
@@ -93,17 +93,17 @@
9393
},
9494

9595
"Class::Range delegate": {
96-
"scope": "ql",
97-
"prefix": "range delegate",
96+
"scope": "ql",
97+
"prefix": "range delegate",
9898
"body": [
9999
"${1:DataFlow::Node} ${2:getThing}() { result = range.$2() }"
100100
],
101101
"description": "Predicate that delegates to range class",
102102
},
103103

104104
"Type tracking predicate": {
105-
"scope": "ql",
106-
"prefix": "type tracking",
105+
"scope": "ql",
106+
"prefix": "type tracking",
107107
"body": [
108108
"/** Gets a reference to a ${3:thing}. */",
109109
"private DataFlow::Node ${1:myType}(DataFlow::TypeTracker t) {",
@@ -124,8 +124,8 @@
124124
},
125125

126126
"Type tracking module": {
127-
"scope": "ql",
128-
"prefix": "type tracking module",
127+
"scope": "ql",
128+
"prefix": "type tracking module",
129129
"body": [
130130
"// ---------------------------------------------------------------------------",
131131
"// ${1:modulename}",
@@ -189,8 +189,8 @@
189189
},
190190

191191
"Type tracking module member": {
192-
"scope": "ql",
193-
"prefix": "type tracking module member",
192+
"scope": "ql",
193+
"prefix": "type tracking module member",
194194
"body": [
195195
"/** Gets a reference to the `${1:module}.${2:member}` ${3:object/class}. */",
196196
"private DataFlow::Node ${4:$2}(DataFlow::TypeTracker t) {",
@@ -210,8 +210,8 @@
210210
},
211211

212212
"Taint tracking configuration": {
213-
"scope": "ql",
214-
"prefix": "taint tracking",
213+
"scope": "ql",
214+
"prefix": "taint tracking",
215215
"body": [
216216
"/** @kind path-problem */",
217217
"import python",
@@ -239,8 +239,8 @@
239239
},
240240

241241
"Type tracking submodule": {
242-
"scope": "ql",
243-
"prefix": "type tracking submodule",
242+
"scope": "ql",
243+
"prefix": "type tracking submodule",
244244
"body": [
245245
" // -------------------------------------------------------------------------",
246246
" // ${1:parent}.${2:submodule}",
@@ -295,8 +295,8 @@
295295
},
296296

297297
"Type tracking class": {
298-
"scope": "ql",
299-
"prefix": "type tracking class",
298+
"scope": "ql",
299+
"prefix": "type tracking class",
300300
"body": [
301301
" /**",
302302
" * Provides models for the `${1:module}.${2:classname}` class",

0 commit comments

Comments
 (0)