定制 jumptwentyfour/project-analysers 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-02