Skip to content

Commit f2223b4

Browse files
committed
Prevent Claude from asking permissions for running Composer scripts
1 parent 0012e20 commit f2223b4

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

.claude/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(symfony composer run *)"
5+
]
6+
}
7+
}

AGENTS.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,30 +57,30 @@ tests/
5757

5858
```shell
5959
# Run all linting jobs
60-
symfony composer lint
60+
symfony composer run lint
6161

6262
# Individual linters
63-
symfony composer lint:refactor # Rector (automatically applies changes)
64-
symfony composer lint:coding-style # PHP-CS-Fixer (automatically applies changes)
65-
symfony composer lint:static-analysis # PHPStan level 5
66-
symfony composer lint:container # Symfony container validation
67-
symfony composer lint:templates # Twig template validation
63+
symfony composer run lint:refactor # Rector (automatically applies changes)
64+
symfony composer run lint:coding-style # PHP-CS-Fixer (automatically applies changes)
65+
symfony composer run lint:static-analysis # PHPStan level 5
66+
symfony composer run lint:container # Symfony container validation
67+
symfony composer run lint:templates # Twig template validation
6868
```
6969

7070
### Testing
7171

7272
```shell
7373
# Prepare the Symfony test environment for tests (if the database schema changed)
74-
symfony composer tests:setup
74+
symfony composer run tests:setup
7575

7676
# Run all tests
77-
symfony composer tests
77+
symfony composer run tests
7878

7979
# Run only PHP tests
80-
symfony composer tests:php
81-
symfony composer tests:php:unit
82-
symfony composer tests:php:functional
80+
symfony composer run tests:php
81+
symfony composer run tests:php:unit
82+
symfony composer run tests:php:functional
8383

8484
# Run tests for Docker images
85-
symfony composer tests:docker
85+
symfony composer run tests:docker
8686
```

0 commit comments

Comments
 (0)