-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs.php.el
50 lines (38 loc) · 1.83 KB
/
.emacs.php.el
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
(setq current-dir (file-name-directory load-file-name))
(setq liblocs (concat current-dir
"lib:"
current-dir
"pear/php:"
current-dir
"horde-release/horde-webmail/pear"))
(setq logopts (concat " -d log_errors=1"
" -d error_log=\""
current-dir
"log/php-errors.log\" "))
(setq package_dir "framework")
(setq phplint_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/tools/test_lint --verbose"))
(setq phpcs_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/pear/phpcs"))
(setq phpcs_options (concat " --standard=PEAR --report=emacs"))
(setq pcp_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/pear/phpcpd"))
(setq pcp_options (concat " --min-lines 5 --min-tokens 40"))
(setq plc_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/pear/phploc"))
(setq plc_options (concat ""))
(setq pmd_pre "echo")
(setq pmd_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/pear/phpmd.php"))
(setq pmd_format "emacs")
(setq pmd_codestyle (concat current-dir "/pear/dev/PMD/rulesets/codesize_horde.xml"))
(setq pmd_options "")
(setq phpunit_pre "export XDEBUG_CONFIG=\"idekey=php_unit_run\"")
(setq phpunit_options "--verbose")
(setq phpunit_command (concat "php -d include_path=\".:" liblocs "\" " current-dir "/pear/phpunit"))
(setq phpunit_phpoptions "-d safe-mode=0 -d date.timezone=Europe/Berlin")
(setq phpunit_includes liblocs)
(setq phprun_pre "export XDEBUG_CONFIG=\"idekey=php_run\"")
(setq phprun_command (concat "php -d include_path=\".:" liblocs "\" -f"))
(setq phprun_phpoptions "")
;(setq phpunit_options (concat "--verbose --coverage-html=" current-dir "coverage"))
(setq phpoptions (concat liblocs
logopts
" -c \""
current-dir
"php.ini\" "))