-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSON_IO_example.txt
More file actions
34 lines (30 loc) · 862 Bytes
/
Copy pathJSON_IO_example.txt
File metadata and controls
34 lines (30 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Input example:
{
"filename": "file.txt",
"file": ["This is line1", "This is line2", "So on for all lines"],
"settings": {"a_setting": "value", "another_setting": "value"}
}
The values of the settings must be interpreted by you (cast them to numbers, etc)
Output example:
{
"results": [{
"message": "Line contains following spacing inconsistencies - Spaces used instead of tabs.",
"origin": "SpaceConsistencyBear",
"affected_code": [{
"end": {
"column": "null",
"file": "file.txt",
"line": 4
},
"file": "file.txt",
"start": {
"column": "null",
"file": "file.txt",
"line": 4
}
}],
"debug_msg": "",
"severity": 1,
"additional_info": ""
}]
}