jumptwentyfour/project-analysers
最新稳定版本:V1.1.0
Composer 安装命令:
composer require jumptwentyfour/project-analysers
包简介
A base set of analysers extending upon Laravel Enlightn to enforce consistency, security and reliability
README 文档
README
A base set of analysers extending upon Laravel Enlightn to enforce consistency, security and reliability.
Setup
Add the following to your composer.json file.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/JumpTwentyFour/project-analysers"
}
],
Then run the following commands:-
composer require jumptwentyfour/project-analysers
php artisan vendor:publish --tag=enlightn
Inside of config/enlightn.php add the following path to the analyzer_paths key.
JumpTwentyFour\\ProjectAnalyzers\\Analyzers' => base_path('vendor/jumptwentyfour/project-analysers/src/Analyzers')
Custom Analysers
Reliability
Node Version Analyser
An analyser to check whether an .nvmrc file exists within the project to enforce consistency of node versions.
Invokable Controllers Analyser
An analyser to check whether all controllers adhere to being single action invokable controllers.
In order to ignore controllers for this rule add to config/enlightn.php
'invokable' => [
'ignore_controllers' => [
<Your-Controller>::class
]
]
Security
Tinker Analyzer
An analyser to check if Laravel Tinker is installed. We should ideally remove this due to the risk of it being installed in production by mistake, even when present in dev-dependencies.
统计信息
- 总下载量: 27.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-02