beyondcode / beyondcode/laravel-self-diagnosis

Request: validate composer, package.json

Open
#80 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
1.5k
Forks
107
PR merge metrics
No merged PRs in 30d

Description

Please add a test for `composer validate`
If package.json exists, run `npm audit`
Check that `roave/security-advisories: dev-master` is in composer.json
It should be the only package as dev-master, which can affect `composer validate`
Composer Validate should handle semver checking, but you may wish to roll your own, to accommodate user configurable checks for these prefix/suffixes:
* ^1.2.3
* ~1.2.3
* 1.2.*
Of course, Composer Validate does much more, including composer.lock checks.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the existing test structure, composer.json, and package.json to find how dependency checks are currently handled. Add coverage for composer validate, npm audit when package.json exists, the roave/security-advisories dev-master constraint, and the listed version patterns; done means these checks and configurable prefix/suffix cases are tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
security, testing, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.