remove stale backend tooling

Stop invoking the unavailable formatter and remove factory usage for the missing user factory. Give PHPStan workers the same memory allowance as the development shell.
This commit is contained in:
Yisroel Baum 2026-07-31 07:38:22 +03:00
parent ff95e2d2ee
commit 334e8d1792
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 4 additions and 27 deletions

View file

@ -102,7 +102,6 @@ pattern.
- Run the focused test during development.
- Run `php artisan test` before completion.
- Run the Composer lint and static-analysis scripts when their dependencies
are available.
- Run the Composer static-analysis scripts.
- Fix failures caused by the change. Report unrelated baseline failures
precisely rather than hiding them or expanding scope without authorization.

View file

@ -156,11 +156,9 @@ gate affected by the change.
### Backend
- Run tests from `backend/` with `php artisan test`.
- Run the Composer checks defined by `backend/composer.json` when their
dependencies are available:
- Run the Composer checks defined by `backend/composer.json`:
```sh
composer lint:check
composer types:check
composer test
```

View file

@ -3,10 +3,8 @@
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Database\Factories\UserFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Hidden;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Carbon;
@ -25,8 +23,7 @@ use Illuminate\Support\Carbon;
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable
{
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
use Notifiable;
/**
* Get the attributes that should be cast.

View file

@ -46,12 +46,6 @@
"Composer\\Config::disableProcessTimeout",
"@php artisan dev"
],
"lint": [
"pint --parallel"
],
"lint:check": [
"pint --parallel --test"
],
"ci:check": [
"Composer\\Config::disableProcessTimeout",
"npm run lint:check",
@ -60,11 +54,10 @@
"@test"
],
"types:check": [
"phpstan analyse"
"phpstan analyse --memory-limit=1G"
],
"test": [
"@php artisan config:clear --ansi",
"@lint:check",
"@types:check",
"@php artisan test"
],

View file

@ -2,24 +2,14 @@
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
use WithoutModelEvents;
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
}
}