From 18d1facaf7e572a5192323108216e94c97e5ad04 Mon Sep 17 00:00:00 2001 From: donker <donker@astron.nl> Date: Wed, 22 Mar 2023 15:40:58 +0100 Subject: [PATCH] CWG-44, add linting for vhdl, test1 --- .gitlab-ci.yml | 43 ++++++++++++++++++++++++++++++++++++++----- vsg_config.yaml | 10 ++++++++++ 2 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 vsg_config.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e77dc05286..6cca5a80ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,19 +31,52 @@ stages: - synthesis - hardware -lint-vhdl-libraries: +lint-vhdl-lib-base: tags: - hdl stage: linting allow_failure: true before_script: - - DEBIAN_FRONTEND=noninteractive apt-get update - - DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-ipython + #- DEBIAN_FRONTEND=noninteractive apt-get update + #- DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-ipython - pip3 install vsg --use-pep517 script: - - cd libraries - - find . -name "*.vhd" -exec vsg -f {} \; + - cd libraries/base + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; +lint-vhdl-lib-dsp: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/dsp + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + +lint-vhdl-lib-io: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/io + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + +lint-vhdl-lib-technology: + tags: + - hdl + stage: linting + allow_failure: true + before_script: + - pip3 install vsg --use-pep517 + script: + - cd libraries/technology + - find . -name "*.vhd" -exec vsg --configuration ~/git/hdl/vsg_config.yaml -f {} \; + ############################################################################### # HDL simulation stage diff --git a/vsg_config.yaml b/vsg_config.yaml new file mode 100644 index 0000000000..3d4efc3202 --- /dev/null +++ b/vsg_config.yaml @@ -0,0 +1,10 @@ +rule: + global: + disable: True + length_001: + disable: False + length: 140 + group: + case::keyword: + disable: False + case: 'upper' -- GitLab