Skip to content

Commit

Permalink
bear-metadata.yaml: Regenerate
Browse files Browse the repository at this point in the history
Also update generate_bear_metadata.py to avoid including paths
from python3 dependencies, and sync with package_manager adding
new distribution class 'pkg'.

Fixes coala#2937
  • Loading branch information
jayvdb committed Aug 4, 2019
1 parent 4d2cf33 commit 4721ce3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .ci/generate_bear_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ def get_bear_requirement_metadata(bear_requirement_sets, storage=None,
if not requirements:
continue

if requirement_type == 'exe':
requirements = dict((key.partition('/', 1)[2], value) for
key, value in requirements.items())

label = settings['prefix']
if old_labels:
label += '_requirements'
Expand Down Expand Up @@ -318,11 +322,6 @@ def get_bear_tags(bear, metadata):
tags.remove('java')
tags.add('opam')

elif bear.name == 'CPDBear':
# Has no requirements defined yet
tags.remove('noreqs')
tags.add('java')

elif bear.name == 'LanguageToolBear':
# Has no requirements defined yet
tags.add('java')
Expand All @@ -334,6 +333,7 @@ def get_bear_tags(bear, metadata):

elif bear.name == 'CPDBear':
# Has no executable defined
tags.add('java')
tags.add('cpd')

elif bear.name == 'VHDLLintBear':
Expand Down
37 changes: 33 additions & 4 deletions bear-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ bear_metadata:
subdir: general
filename: CPDBear.py
requirements:
exe:
pmd:
run.sh:
languages:
- C#
- CPP
Expand All @@ -174,8 +177,11 @@ bear_metadata:
- Scala
- Swift
tags:
- exe
- general
- java
- pmd
- run.sh
CPPCheckBear:
name: CPPCheckBear
subdir: c_languages
Expand All @@ -188,6 +194,7 @@ bear_metadata:
brew: cppcheck
dnf: cppcheck
pacman: cppcheck
pkg: cppcheck
portage: cppcheck
xbps: cppcheck
yum: cppcheck
Expand All @@ -206,6 +213,7 @@ bear_metadata:
- dnf
- exe
- pacman
- pkg
- portage
- xbps
- yum
Expand Down Expand Up @@ -326,6 +334,7 @@ bear_metadata:
brew: flawfinder
dnf: flawfinder
pacman: flawfinder
pkg: flawfinder
portage: flawfinder
xbps: flawfinder
yum: flawfinder
Expand All @@ -344,6 +353,7 @@ bear_metadata:
- exe
- flawfinder
- pacman
- pkg
- portage
- xbps
- yum
Expand All @@ -360,6 +370,7 @@ bear_metadata:
brew: mono
dnf: mono
pacman: mono
pkg: mono
portage: dev-lang/mono
xbps: mono
yum: mono
Expand All @@ -378,6 +389,7 @@ bear_metadata:
- mcs
- mono
- pacman
- pkg
- portage
- xbps
- yum
Expand Down Expand Up @@ -725,6 +737,7 @@ bear_metadata:
brew: indent
dnf: indent
pacman: indent
pkg: indent
portage: indent
xbps: indent
yum: indent
Expand All @@ -743,6 +756,7 @@ bear_metadata:
- exe
- indent
- pacman
- pkg
- portage
- xbps
- yum
Expand All @@ -762,6 +776,7 @@ bear_metadata:
brew: ghc-mod
dnf: ghc-mod
pacman: ghc-mod
pkg: ghc-mod
portage: ghc-mod
xbps: ghc-mod
yum: ghc-mod
Expand All @@ -780,6 +795,7 @@ bear_metadata:
- ghc-mod
- haskell
- pacman
- pkg
- portage
- xbps
- yum
Expand Down Expand Up @@ -1000,7 +1016,7 @@ bear_metadata:
filename: HTMLLintBear.py
requirements:
exe:
/home/areebbeigh/virtualenvs/coala-venv/bin/python3:
python3:
pip:
html-linter:
version: ~=0.4.0
Expand All @@ -1009,7 +1025,7 @@ bear_metadata:
- Jinja2
- PHP
tags:
- /home/areebbeigh/virtualenvs/coala-venv/bin/python3
- python3
- exe
- hypertext
- pip
Expand Down Expand Up @@ -1194,13 +1210,16 @@ bear_metadata:
requirements:
exe:
bash:
pmd:
run.sh:
languages:
- Java
tags:
- bash
- exe
- java
- pmd
- run.sh
Jinja2Bear:
name: Jinja2Bear
subdir: jinja2
Expand Down Expand Up @@ -1263,6 +1282,7 @@ bear_metadata:
brew: chktex
dnf: chktex
pacman: chktex
pkg: chktex
portage: chktex
xbps: chktex
yum: chktex
Expand All @@ -1280,6 +1300,7 @@ bear_metadata:
- exe
- latex
- pacman
- pkg
- portage
- xbps
- yum
Expand Down Expand Up @@ -1411,7 +1432,7 @@ bear_metadata:
filename: MypyBear.py
requirements:
exe:
/home/areebbeigh/virtualenvs/coala-venv/bin/python3:
python3:
pip:
mypy:
version: ==0.590
Expand All @@ -1420,7 +1441,7 @@ bear_metadata:
- Python 2
- Python 3
tags:
- /home/areebbeigh/virtualenvs/coala-venv/bin/python3
- python3
- exe
- pip
- python
Expand Down Expand Up @@ -1990,6 +2011,7 @@ bear_metadata:
brew: ruby
dnf: ruby
pacman: ruby
pkg: ruby
portage: ruby
xbps: ruby
yum: ruby
Expand All @@ -2006,6 +2028,7 @@ bear_metadata:
- dnf
- exe
- pacman
- pkg
- portage
- ruby
- xbps
Expand Down Expand Up @@ -2114,6 +2137,7 @@ bear_metadata:
brew: shellcheck
dnf: shellcheck
pacman: shellcheck
pkg: shellcheck
portage: shellcheck
xbps: shellcheck
yum: shellcheck
Expand All @@ -2133,6 +2157,7 @@ bear_metadata:
- dnf
- exe
- pacman
- pkg
- portage
- shell
- shellcheck
Expand Down Expand Up @@ -2369,6 +2394,7 @@ bear_metadata:
brew: perl
dnf: perl
pacman: perl
pkg: perl
portage: perl
xbps: perl
yum: perl
Expand All @@ -2386,6 +2412,7 @@ bear_metadata:
- exe
- pacman
- perl
- pkg
- portage
- vhdl
- xbps
Expand Down Expand Up @@ -2480,6 +2507,7 @@ bear_metadata:
brew: libxml2
dnf: libxml2
pacman: libxml2
pkg: libxml2
portage: dev-libs/libxml2
xbps: libxml2
yum: libxml2
Expand All @@ -2496,6 +2524,7 @@ bear_metadata:
- exe
- libxml2
- pacman
- pkg
- portage
- xbps
- xml2
Expand Down
10 changes: 10 additions & 0 deletions bear-requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ distro_requirements:
xbps: chktex
yum: chktex
zypper: texlive-chktex
pkg: chktex
cppcheck:
packages:
apt_get: cppcheck
Expand All @@ -258,6 +259,7 @@ distro_requirements:
xbps: cppcheck
yum: cppcheck
zypper: cppcheck
pkg: cppcheck
dart:
packages:
brew: dart
Expand All @@ -280,6 +282,7 @@ distro_requirements:
xbps: flawfinder
yum: flawfinder
zypper: flawfinder
pkg: flawfinder
ghc-mod:
packages:
apt_get: ghc-mod
Expand All @@ -290,6 +293,7 @@ distro_requirements:
xbps: ghc-mod
yum: ghc-mod
zypper: ghc-mod
pkg: ghc-mod
hlint:
packages:
apt_get: hlint
Expand All @@ -303,6 +307,7 @@ distro_requirements:
xbps: indent
yum: indent
zypper: indent
pkg: indent
libperl-critic-perl:
packages:
apt_get: libperl-critic-perl
Expand All @@ -322,6 +327,7 @@ distro_requirements:
xbps: libxml2
yum: libxml2
zypper: libxml2
pkg: libxml2
mono:
packages:
apt_get: mono-mcs
Expand All @@ -332,6 +338,7 @@ distro_requirements:
xbps: mono
yum: mono
zypper: mono
pkg: mono
perl:
packages:
apt_get: perl
Expand All @@ -342,6 +349,7 @@ distro_requirements:
xbps: perl
yum: perl
zypper: perl
pkg: perl
php-cli:
packages:
apt_get: php-cli
Expand Down Expand Up @@ -371,6 +379,7 @@ distro_requirements:
xbps: ruby
yum: ruby
zypper: ruby
pkg: ruby
shellcheck:
packages:
apt_get: shellcheck
Expand All @@ -381,6 +390,7 @@ distro_requirements:
xbps: shellcheck
yum: shellcheck
zypper: shellcheck
pkg: shellcheck
verilator:
packages:
apt_get: verilator
Expand Down

0 comments on commit 4721ce3

Please sign in to comment.