Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanheemstra authored Nov 10, 2024
1 parent d5ddbd8 commit b6d5504
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,21 @@ Getting your code up and running on your own system.

Note: PHPStan is a static analysis tool that finds bugs in your PHP code without running it. To run PHPStan in a Docker container:

On Unix/Linux/macOS:
```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```
On Unix/Linux/macOS:
```bash
$ cd threagile-builder
$ docker run --rm -v $(pwd):/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

On Windows:
```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

You can customize the analysis by:
- Setting rule levels (0-9): Add `--level 8`
- Using a config file: Add `-c phpstan.neon`
On Windows:
```bash
$ cd threagile-builder
$ docker run --rm -v %CD%:/app ghcr.io/phpstan/phpstan analyse /app/src --level 8 -c phpstan.neon
```

You can customize the analysis by:
- Setting rule levels (0-9): Add `--level 8`
- Using a config file: Add `-c phpstan.neon`

# API Documentation

Expand Down

0 comments on commit b6d5504

Please sign in to comment.