-
Notifications
You must be signed in to change notification settings - Fork 454
/
php.coffee
74 lines (68 loc) · 1.94 KB
/
php.coffee
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
module.exports = {
name: "PHP"
namespace: "php"
###
Supported Grammars
###
grammars: [
"PHP"
]
###
Supported extensions
###
extensions: [
"php"
"module"
"inc"
]
defaultBeautifier: "PHP-CS-Fixer"
options:
cs_fixer_path:
title: "PHP-CS-Fixer Path"
type: 'string'
default: ""
description: "Absolute path to the `php-cs-fixer` CLI executable"
cs_fixer_version:
title: "PHP-CS-Fixer Version"
type: 'integer'
default: 2
enum: [1, 2]
cs_fixer_config_file:
title: "PHP-CS-Fixer Config File"
type: 'string'
default: ""
description: "Path to php-cs-fixer config file. Will use local `.php_cs` or `.php_cs.dist` if found in the working directory or project root."
fixers:
type: 'string'
default: ""
description: "Add fixer(s). i.e. linefeed,-short_tag,indentation (PHP-CS-Fixer 1 only)"
level:
type: 'string'
default: ""
description: "By default, all PSR-2 fixers and some additional ones are run. (PHP-CS-Fixer 1 only)"
rules:
type: 'string'
default: ""
description: "Add rule(s). i.e. line_ending,-full_opening_tag,@PSR2 (PHP-CS-Fixer 2 only)"
allow_risky:
title: "Allow risky rules"
type: 'string'
default: "no"
enum: ["no", "yes"]
description: "Allow risky rules to be applied (PHP-CS-Fixer 2 only)"
phpcbf_path:
title: "PHPCBF Path"
type: 'string'
default: ""
description: "Path to the `phpcbf` CLI executable",
phpcbf_version:
title: "PHPCBF Version"
type: 'integer'
default: 2
enum: [1, 2, 3]
standard:
title: "PHPCBF Standard"
type: 'string'
default: "PEAR",
description: "Standard name Squiz, PSR2, PSR1, PHPCS, PEAR, Zend, MySource... or path to CS rules. Will use local `phpcs.xml`, `phpcs.xml.dist`, `phpcs.ruleset.xml` or `ruleset.xml` if found in the project root."
}