-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: phpstan to use config file (#1448)
* Test: phpstan to use config file * Use phpstan.neon to config the behaviour instead of using the CLI arguments. Much cleaner and more readable. * Define how to format a .neon file in .editorconfig to ensure consistancy. * Test: .htaccess to forbid access to .neon files
- Loading branch information
Showing
4 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ indent_size = 4 | |
|
||
[*.yml] | ||
indent_size = 2 | ||
|
||
[*.neon] | ||
indent_style = tab | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql)$"> | ||
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|sql|neon)$"> | ||
Order Allow,Deny | ||
Deny from all | ||
</FilesMatch> | ||
</FilesMatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
parameters: | ||
level: 0 | ||
paths: | ||
- src | ||
ignoreErrors: | ||
- '#Unsafe usage of new static\(\)#' | ||
scanFiles: | ||
- functions.php | ||
- modules/Activities/moduleFunctions.php | ||
- modules/Attendance/moduleFunctions.php | ||
- modules/Behaviour/moduleFunctions.php | ||
- modules/Crowd Assessment/moduleFunctions.php | ||
- modules/Data Updater/moduleFunctions.php | ||
- modules/Departments/moduleFunctions.php | ||
- modules/Finance/moduleFunctions.php | ||
- modules/Form Groups/moduleFunctions.php | ||
- modules/Formal Assessment/moduleFunctions.php | ||
- modules/Individual Needs/moduleFunctions.php | ||
- modules/Library/moduleFunctions.php | ||
- modules/Markbook/moduleFunctions.php | ||
- modules/Messenger/moduleFunctions.php | ||
- modules/Planner/moduleFunctions.php | ||
- modules/Reports/moduleFunctions.php | ||
- modules/Rubrics/moduleFunctions.php | ||
- modules/School Admin/moduleFunctions.php | ||
- modules/Staff/moduleFunctions.php | ||
- modules/Students/moduleFunctions.php | ||
- modules/System Admin/moduleFunctions.php | ||
- modules/Timetable Admin/moduleFunctions.php | ||
- modules/Timetable/moduleFunctions.php | ||
- modules/Tracking/moduleFunctions.php | ||
- modules/User Admin/moduleFunctions.php |