-
Notifications
You must be signed in to change notification settings - Fork 0
/
.devcontainer.json
144 lines (144 loc) · 5.13 KB
/
.devcontainer.json
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "TripalDocker",
"build": {
"dockerfile": "Dockerfile",
"args": {
"drupalversion": "11.1.x-dev",
"phpversion": "8.3",
"pgsqlversion": "16"
}
},
"initializeCommand": "docker pull knowpulse/tripalcultivate-base:drupal11.1.x-dev-php8.3-pgsql16",
"workspaceMount": "source=${localWorkspaceFolder},target=/var/www/drupal/web/modules/contrib/TripalCultivate-Phenotypes,type=bind",
"workspaceFolder": "/var/www/drupal/web/modules/contrib/TripalCultivate-Phenotypes",
"customizations": {
"vscode": {
"extensions": [
"neilbrayfield.php-docblocker",
"bmewburn.vscode-intelephense-client",
"recca0120.vscode-phpunit",
"swordev.phpstan",
"andrewdavidblum.drupal-smart-snippets",
"DEVSENSE.composer-php-vscode",
"mblode.twig-language-2",
"redhat.vscode-yaml",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"valeryanm.vscode-phpsab"
],
"settings": {
// This turns off basic PHP suggestions provided by Visual Studio Code (in lieu of Intelephense's).
"php.suggest.basic": false,
/* Coding Standards */
"css.validate": true,
"diffEditor.ignoreTrimWhitespace": false,
"editor.tabSize": 2,
"editor.autoIndent": "full",
"editor.insertSpaces": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": false,
"editor.renderWhitespace": "boundary",
"editor.wordWrapColumn": 80,
"editor.wordWrap": "on",
"editor.detectIndentation": true,
"editor.rulers": [
80
],
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"html.format.enable": true,
"html.format.wrapLineLength": 80,
/* Chosing which language a file is; Drupal-focused */
"files.associations": {
"*.inc": "php",
"*.module": "php",
"*.install": "php",
"*.theme": "php",
"*.profile": "php",
"*.tpl.php": "php",
"*.test": "php",
"*.php": "php",
"*.info": "ini",
"*.html": "twig"
},
"emmet.includeLanguages": {
"twig": "html"
},
/* Performance Related. Exludes from indexing */
/*files.exclude and files.watcherExclude settings via https://github.com/microsoft/vscode/issues/11963#issuecomment-317830768 */
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/tmp": true,
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/bower_components/**": true,
"**/dist/**": true
},
/* PHP Linting */
"php.validate.enable": true,
"php.validate.executablePath": "/usr/local/bin/php",
"php.validate.run": "onType",
"[php]": {
"editor.defaultFormatter": "valeryanm.vscode-phpsab"
},
/* PHP DocBlocker */
"php-docblocker.gap": true,
"php-docblocker.useShortNames": true,
/* PHP Intelephense */
// Intelephense and Drupal >8 only. This should be set to the path to web/index.php.
"intelephense.environment.documentRoot": "/var/www/drupal/web/index.php",
// Intelephense only: For Drupal compliant braces formatting use:
"intelephense.format.braces": "k&r",
// Indicate where to find additional classes.
"intelephense.environment.includePaths": [
"/var/www/drupal/web/core/",
"/var/www/drupal/vendor/",
"/var/www/drupal/web/modules/"
],
"intelephense.diagnostics.enable": false,
/* PHPUnit Test Explorer */
"phpunit.phpunit": "/var/www/drupal/vendor/bin/phpunit",
/* Drupal Smart Snippets */
// Use this to prioritize Drupal Smart Snippets in the UI.
"editor.snippetSuggestions": "top",
/* Composer */
"composer.bin": "/usr/local/bin/composer",
"tws.trimOnSave": true,
"tws.highlightTrailingWhiteSpace": true,
/* PHP Sniffer & Beautifier */
"phpsab.snifferEnable": true,
"phpsab.executablePathCS": "/var/www/drupal/vendor/bin/phpcs",
"phpsab.fixerEnable": true,
"phpsab.executablePathCBF": "/var/www/drupal/vendor/bin/phpcbf",
"phpsab.standard": "/var/www/drupal/web/modules/contrib/TripalCultivate/.codingstandards.xml",
"phpsab.snifferMode": "onType",
"phpsab.debug": false,
"phpsab.fixerArguments": [
"--extensions=inc,theme,install,module,profile,php,phtml"
],
"phpsab.snifferArguments": [
"--extensions=inc,theme,install,module,profile,php,phtml"
]
}
}
},
"forwardPorts": [
80,
5432,
9003
],
"postCreateCommand": "init.sh"
}