forked from InvoicePlane/InvoicePlane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
32 lines (24 loc) · 1.79 KB
/
Copy pathphpstan.neon
File metadata and controls
32 lines (24 loc) · 1.79 KB
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
includes:
- phpstan-baseline.neon
parameters:
tmpDir: null
level: 0
paths:
- application/modules/
excludePaths:
analyse:
ignoreErrors:
# Ignore dynamic property false positives (CodeIgniter3 pattern)
- '#\bproperty\.notFound\b#'
# Ignore undefined function errors for helpers and common CI functions
- '#Call to undefined function (trans|_trans|htmlsc|_htmlsc|_htmle|auto_link|check_select|lang|get_instance|redirect|site_url|get_setting|get_req_fields_einvoice|show_404|json_errors|print_field|date_to_mysql|date_from_mysql|format_client|format_currency|format_date|format_gender|format_avs|format_xml|is_valid_xml_config_id|get_country_list|get_country_name|get_available_languages|get_xml_template_files|get_xml_full_name|anchor|pager|_csrf_field|_csrf_query|verify_get_csrf_token|_auto_link|log_message)\(#'
# Ignore all "Class X extends unknown class Y" errors for known base classes (CodeIgniter3 pattern)
- '#Class \\w+ extends unknown class (Admin_Controller|Response_Model|Validator|MY_Model|Base_Controller|Guest_Controller|CI_Model|MX_Controller|CI_Controller)\.#'
# Ignore all "Call to an undefined method" errors (for dynamic CodeIgniter models)
- '#Call to an undefined method [A-Za-z0-9_\\\\:]+::[A-Za-z0-9_]+\\(\\)\.#'
# Ignore "Class referenced with incorrect case" (CodeIgniter is case-insensitive)
- '#Class [A-Za-z0-9_\\\\]+ referenced with incorrect case: [A-Za-z0-9_\\\\]+\.#'
# Ignore "calls parent::method() but X does not extend any class" (common in CI3)
- '#[A-Za-z0-9_\\\\]+::[A-Za-z0-9_]+\\(\\) calls parent::[A-Za-z0-9_]+\\(\\) but [A-Za-z0-9_\\\\]+ does not extend any class\.#'
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false