scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Support alternate names for composer files

Open pombredanne opened this issue 2 years ago • 0 comments

See for instance

  • https://raw.githubusercontent.com/petrknap/trunk/ae09c1f0b4aeb16685614657fb9cf0bde9dcce57/symfony.composer.json
  • https://raw.githubusercontent.com/xrowgmbh/xrowvagrant/70a3b29ecba5cf3781ce11962c2b4585ef009b13/ezcluster/templates/composer.symfony.json
  • https://github.com/petrknap/trunk/blob/ae09c1f0b4aeb16685614657fb9cf0bde9dcce57/php.composer.json

The same name pattern is likely there for the generated companion lockfile.

We should relax patterns and accept filename such as /[^/]*composer.json, /composer[^/]*.json, and the same for lockfiles.

pombredanne avatar Apr 29 '22 10:04 pombredanne