Skip to content

Commit 57ec632

Browse files
author
akos
committed
update docs for composer insight
1 parent 36fe6f8 commit 57ec632

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/insights/architecture.md

+12
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ This insight checks if the `composer.json` is valid.
114114

115115
**Insight Class**: `NunoMaduro\PhpInsights\Domain\Insights\Composer\ComposerMustBeValid`
116116

117+
<details>
118+
<summary>Configuration</summary>
119+
120+
```php
121+
ComposerMustBeValid::class => [
122+
//optional configuration value for composer version 2 only
123+
//you can allow 'version' in your composer.json and disable the check of it so that you don't get an error
124+
'composerVersionCheck' => 0,
125+
]
126+
```
127+
</details>
128+
117129
## Composer.lock must be fresh <Badge text="^1.7"/> <Badge text="Architecture\Composer" type="warn"/>
118130

119131
This insight verifies that the `composer.lock` is not outdated.

0 commit comments

Comments
 (0)