Skip to content

Commit c997a08

Browse files
authored
move all settings to devcontainer.json to have control via cli (#24)
1 parent 25d92c2 commit c997a08

File tree

2 files changed

+114
-14
lines changed

2 files changed

+114
-14
lines changed

setup/src/cpp/common/devcontainer.json

Lines changed: 68 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"editor.defaultFormatter": "xaver.clang-format"
2424
},
2525
"editor.formatOnSave": true,
26+
"json.format.keepLines": true,
27+
"cmake.configureOnEdit": false,
28+
"cmake.configureOnOpen": false,
2629
"clang-tidy.fixOnSave": true,
2730
"clang-tidy.lintOnSave": true,
2831
"clang-tidy.blacklist": [
@@ -34,26 +37,82 @@
3437
"clang-tidy.compilerArgs": [
3538
"-std=c++17"
3639
],
40+
"terminal.integrated.defaultProfile.linux": "zsh",
41+
"terminal.integrated.profiles.linux": {
42+
"zsh": {
43+
"path": "/usr/bin/zsh"
44+
}
45+
},
3746
"vsmqtt.brokerProfiles": [
3847
{
39-
"name": "k3d",
48+
"name": "mosquitto (local)",
49+
"host": "localhost",
50+
"port": 1883,
51+
"clientId": "vsmqtt_client"
52+
},
53+
{
54+
"name": "mosquitto (k3d)",
4055
"host": "localhost",
4156
"port": 31883,
4257
"clientId": "vsmqtt_client"
4358
},
4459
{
45-
"name": "local",
60+
"name": "mosquitto (kanto)",
4661
"host": "localhost",
4762
"port": 1883,
4863
"clientId": "vsmqtt_client"
4964
}
5065
],
51-
"json.format.keepLines": true,
52-
"terminal.integrated.defaultProfile.linux": "zsh",
53-
"terminal.integrated.profiles.linux": {
54-
"zsh": {
55-
"path": "/usr/bin/zsh"
56-
}
66+
"files.associations": {
67+
"array": "cpp",
68+
"atomic": "cpp",
69+
"bit": "cpp",
70+
"*.tcc": "cpp",
71+
"cctype": "cpp",
72+
"chrono": "cpp",
73+
"clocale": "cpp",
74+
"cmath": "cpp",
75+
"compare": "cpp",
76+
"concepts": "cpp",
77+
"condition_variable": "cpp",
78+
"csignal": "cpp",
79+
"cstdint": "cpp",
80+
"cstdio": "cpp",
81+
"cstdlib": "cpp",
82+
"cstring": "cpp",
83+
"ctime": "cpp",
84+
"cwchar": "cpp",
85+
"cwctype": "cpp",
86+
"deque": "cpp",
87+
"list": "cpp",
88+
"map": "cpp",
89+
"unordered_map": "cpp",
90+
"vector": "cpp",
91+
"exception": "cpp",
92+
"functional": "cpp",
93+
"initializer_list": "cpp",
94+
"iosfwd": "cpp",
95+
"iostream": "cpp",
96+
"istream": "cpp",
97+
"limits": "cpp",
98+
"memory": "cpp",
99+
"mutex": "cpp",
100+
"new": "cpp",
101+
"numbers": "cpp",
102+
"ostream": "cpp",
103+
"ratio": "cpp",
104+
"semaphore": "cpp",
105+
"stdexcept": "cpp",
106+
"stop_token": "cpp",
107+
"streambuf": "cpp",
108+
"string": "cpp",
109+
"string_view": "cpp",
110+
"system_error": "cpp",
111+
"thread": "cpp",
112+
"tuple": "cpp",
113+
"type_traits": "cpp",
114+
"typeinfo": "cpp",
115+
"utility": "cpp"
57116
}
58117
},
59118
// Add the IDs of extensions you want installed when the container is created.
@@ -66,7 +125,7 @@
66125
"bierner.markdown-mermaid",
67126
"cschlosser.doxdocgen",
68127
"xaver.clang-format",
69-
"notskm.clang-tidy",
128+
"cs128.cs128-clang-tidy",
70129
"matepek.vscode-catch2-test-adapter",
71130
"sanaajani.taskrunnercode",
72131
"augustocdias.tasks-shell-input"

setup/src/python/common/devcontainer.json

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,63 @@
1414
"vscode": {
1515
// Set *default* container specific settings.json values on container create.
1616
"settings": {
17-
"python.pythonPath": "/usr/bin/python3",
1817
"python.defaultInterpreterPath": "/usr/bin/python3",
18+
"python.analysis.typeCheckingMode": "basic",
19+
// Strong Type Checker
20+
"python.linting.mypyEnabled": true,
21+
"mypy.runUsingActiveInterpreter": true,
22+
"python.linting.mypyArgs": [],
23+
"mypy.targets": [
24+
"app"
25+
],
26+
// Security Linter
27+
"python.linting.banditEnabled": true,
28+
"python.linting.banditArgs": [
29+
"-c setup.cfg"
30+
],
1931
// Only Flake8 is used as linter and static code analyzer, as faster tool
2032
"python.linting.enabled": true,
2133
"python.linting.flake8Enabled": true,
34+
// Style Checker for Python Docs
35+
"python.linting.pydocstyleEnabled": true,
36+
"python.analysis.extraPaths": [
37+
"./proto",
38+
"./src/vehicle_model"
39+
],
40+
"python.testing.unittestEnabled": false,
41+
"python.testing.pytestEnabled": true,
2242
// Style Formatter
2343
"python.formatting.provider": "black",
24-
// Security Linter
25-
"python.linting.banditEnabled": true,
26-
"python.disableInstallationCheck": true,
44+
"vs-kubernetes": {
45+
"vscode-kubernetes.kubectl-path.linux": "/usr/bin/kubectl",
46+
"vscode-kubernetes.helm-path.linux": "/usr/local/bin/helm"
47+
},
2748
"terminal.integrated.defaultProfile.linux": "zsh",
2849
"terminal.integrated.profiles.linux": {
2950
"zsh": {
3051
"path": "/usr/bin/zsh"
3152
}
32-
}
53+
},
54+
"vsmqtt.brokerProfiles": [
55+
{
56+
"name": "mosquitto (local)",
57+
"host": "localhost",
58+
"port": 1883,
59+
"clientId": "vsmqtt_client"
60+
},
61+
{
62+
"name": "mosquitto (k3d)",
63+
"host": "localhost",
64+
"port": 31883,
65+
"clientId": "vsmqtt_client"
66+
},
67+
{
68+
"name": "mosquitto (kanto)",
69+
"host": "localhost",
70+
"port": 1883,
71+
"clientId": "vsmqtt_client"
72+
}
73+
]
3374
},
3475
// Add the IDs of extensions you want installed when the container is created.
3576
"extensions": [

0 commit comments

Comments
 (0)