Open gogowitsch opened 5 years ago
I checked the code, and we can add a special exclusion here: https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/e6919b9b8a035b3e96bb3ee0fc7aec472455876f/src/main/java/fr/adrienbrault/idea/symfony2plugin/intentions/yaml/YamlServiceArgumentInspection.java#L52-L56
if(file.getOriginalFile().getName().equals(".lando.yml")) {
return;
}
But where does it end. Somebody else will come along and also wants to exclude a special file.
@Haehnchen wdyt?
Symfony Service definitions should only match to config/**services**.yml
(including folders like config/services/a.yml
)
Does that exclude .lando.yml
? Where is that located?
Maybe we could exclude .*.yml
and .*.yaml
(ie. files starting with .
) ?
@King2500 The .lando.yml
is never within a folder called config
, but typically located at the root of the repository.
Contrary to your observation, there is not always a config
directory. See for example the automated_cron.services.yml from Drupal 8.
This plugin is confused because
.lando.yml
files may contain a top-level keyservices:
. It says "Missing argument", when in fact all is fine.These files are not meant for Symfony at all. For example, in the Drupal 8 ecosystem, both Lando and Symfony can coexist without any problems.
For documentation, see https://docs.devwithlando.io.