77
77
78
78
(defcustom phpstan-flycheck-auto-set-executable t
79
79
" Set flycheck phpstan-executable automatically."
80
- :type 'boolean
81
- :group 'phpstan )
80
+ :type 'boolean )
82
81
83
82
(defcustom phpstan-enable-on-no-config-file t
84
83
" If T, activate config from composer even when `phpstan.neon' is not found."
85
- :type 'boolean
86
- :group 'phpstan )
84
+ :type 'boolean )
87
85
88
86
(defcustom phpstan-memory-limit nil
89
87
" Set --memory-limit option."
92
90
:link '(url-link :tag " PHP Manual"
93
91
" https://www.php.net/manual/ini.core.php#ini.memory-limit" )
94
92
:safe (lambda (v ) (or (null v) (stringp v)))
95
- :group 'phpstan )
93
+ :local t )
96
94
97
95
(defcustom phpstan-docker-image " ghcr.io/phpstan/phpstan"
98
96
" Docker image URL or Docker Hub image name or NIL."
104
102
:link '(url-link :tag " GitHub Container Registry"
105
103
" https://github.com/orgs/phpstan/packages/container/package/phpstan" )
106
104
:safe (lambda (v ) (or (null v) (stringp v)))
107
- :group 'phpstan )
105
+ :local t )
108
106
109
107
(defcustom phpstan-use-xdebug-option nil
110
108
" Set --xdebug option."
111
109
:type '(choice (const :tag " Set --xdebug option dynamically" auto)
112
110
(const :tag " Add --xdebug option" t )
113
111
(const :tag " No --xdebug option" nil ))
114
112
:safe #'symbolp
115
- :group 'phpstan )
113
+ :local t )
116
114
117
115
(defcustom phpstan-generate-baseline-options '(" --generate-baseline" " --allow-empty-baseline" )
118
116
" Command line options for generating PHPStan baseline."
119
117
:type '(repeat string)
120
118
:safe #'listp
121
- :group 'phpstan )
119
+ :local t )
122
120
123
121
(defcustom phpstan-baseline-file " phpstan-baseline.neon"
124
122
" File name of PHPStan baseline file."
125
123
:type 'string
126
124
:safe #'stringp
127
- :group 'phpstan )
125
+ :local t )
128
126
129
127
(defcustom phpstan-tip-message-prefix " 💡 "
130
128
" Prefix of PHPStan tip message."
131
129
:type 'string
132
130
:safe #'stringp
133
- :group 'phpstan )
131
+ :local t )
134
132
135
133
(defcustom phpstan-identifier-prefix " 🪪 "
136
134
" Prefix of PHPStan error identifier."
137
135
:type 'string
138
136
:safe #'stringp
139
- :group 'phpstan )
137
+ :local t )
140
138
141
139
(defcustom phpstan-enable-remote-experimental nil
142
140
" Enable PHPStan analysis remotely by TRAMP.
@@ -146,32 +144,31 @@ This feature is experimental and should be used with caution as it may
146
144
have unexpected behaviors or performance implications."
147
145
:type 'boolean
148
146
:safe #'booleanp
149
- :group 'phpstan )
147
+ :local t )
150
148
151
149
(defconst phpstan-template-dump-type " \\ PHPStan\\ dumpType();" )
152
150
(defconst phpstan-template-dump-phpdoc-type " \\ PHPStan\\ dumpPhpDocType();" )
153
151
154
152
(defcustom phpstan-intert-dump-type-templates (cons phpstan-template-dump-type
155
153
phpstan-template-dump-phpdoc-type)
156
154
" Default template of PHPStan dumpType insertion."
157
- :type '(cons string string)
158
- :group 'phpstan )
155
+ :type '(cons string string))
159
156
160
157
(defcustom phpstan-disable-buffer-errors nil
161
158
" If non-NIL, don't keep errors per buffer to save memory."
162
- :type 'boolean
163
- :group 'phpstan )
159
+ :type 'boolean )
164
160
165
161
(defcustom phpstan-not-ignorable-identifiers '(" ignore.parseError" )
166
162
" Lists identifiers prohibited from being added to @phpstan-ignore tags."
167
163
:type '(repeat string))
168
164
169
165
(defcustom phpstan-activate-editor-mode nil
170
166
" Controls how PHPStan's editor mode is activated."
171
- :local t
172
167
:type '(choice (const :tag " Automatic (based on version)" nil )
173
- (const :tag " Editor mode will be actively enabled, regardless of the PHPStan version." 'enabled )
174
- (const :tag " Editor mode will be explicitly disabled." 'disabled )))
168
+ (const :tag " Editor mode will be actively enabled, regardless of the PHPStan version." enabled)
169
+ (const :tag " Editor mode will be explicitly disabled." disabled))
170
+ :safe (lambda (v ) (memq v '(nil enabled disabled)))
171
+ :local t )
175
172
176
173
(defvar-local phpstan--use-xdebug-option nil )
177
174
@@ -573,7 +570,7 @@ it returns the value of `SOURCE' as it is."
573
570
574
571
If a cached result for EXECUTABLE exists, it is returned directly.
575
572
Otherwise, this function attempts to determine support by retrieving
576
- the PHPStan version using ' phpstan --version' command."
573
+ the PHPStan version using ` phpstan --version' command."
577
574
(pcase phpstan-activate-editor-mode
578
575
('enabled t )
579
576
('disabled nil )
0 commit comments