Skip to content

Commit

Permalink
refac(back): fluidattacks#1378 deprecate lizard
Browse files Browse the repository at this point in the history
- Deprecate lizard as ruff replaces it
- Remove documentation
- Remove CI jobs

Signed-off-by: Daniel Salazar <[email protected]>
  • Loading branch information
dsalaza4 committed Dec 12, 2024
1 parent c269afe commit fed5fbd
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 170 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,22 +333,6 @@ jobs:
with:
args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /lintWithAjv/test"

linux_lintWithLizard_all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: docker://docker.io/nixos/nix@sha256:c3db4c484f6b1ee6c9bb8ca90307cfbeca8ef88156840911356a677eeaff4845
name: /lintWithLizard/all
with:
args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /lintWithLizard/all"
macos_lintWithLizard_all:
runs-on: macos-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
- name: /lintWithLizard/all
run: nix-env -if . && m . /lintWithLizard/all

linux_secretsForEnvFromSops_example:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,26 +491,6 @@ jobs:
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

linux_lintWithLizard_all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: docker://docker.io/nixos/nix@sha256:c3db4c484f6b1ee6c9bb8ca90307cfbeca8ef88156840911356a677eeaff4845
name: /lintWithLizard/all
with:
args: sh -c "chown -R root:root /github/workspace && nix-env -if . && m . /lintWithLizard/all"
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
macos_lintWithLizard_all:
runs-on: macos-latest
steps:
- uses: actions/checkout@f095bcc56b7c2baf48f3ac70d6d6782f4f553222
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
- name: /lintWithLizard/all
run: nix-env -if . && m . /lintWithLizard/all
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

linux_secretsForEnvFromSops_example:
runs-on: ubuntu-latest
steps:
Expand Down
37 changes: 0 additions & 37 deletions docs/src/api/builtins/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,40 +356,3 @@ Example:
```bash
m . /lintWithAjv/users
```

## lintWithLizard

Using [Lizard](https://github.com/terryyin/lizard) to check
Ciclomatic Complexity and functions length
in all supported languages

Types:

- lintWithLizard (`attrsOf (listOf str)`): Optional.
Mapping of custom names to lists of paths (relative to the project) to lint.

Defaults to `{ }`.

Example:

=== "makes.nix"

```nix
{
lintWithLizard = {
example1 = [
"/" # Entire project
"/file.py" # A file
];
example2 = [
"/directory" # A directory within the project
];
};
}
```

=== "Invocation"

```bash
$ m . /lintWithLizard/example1
```
1 change: 0 additions & 1 deletion makes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
};
};
};
lintWithLizard = { all = [ "/" ]; };
lintWithAjv = {
"test" = {
schema = "/test/lint-with-ajv/schema.json";
Expand Down
4 changes: 0 additions & 4 deletions makes/utils/makePythonLock/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ function main {
"${PWD}/src/args/lint-python-imports/pypi-deps.yaml" \
"${PWD}/src/args/lint-python-imports/pypi-sources.yaml"

"${cmd[@]}" 3.12 \
"${PWD}/src/args/lint-with-lizard/dependencies.yaml" \
"${PWD}/src/args/lint-with-lizard/sources.yaml"

: && "${cmd[@]}" 3.9 \
"${PWD}/src/args/make-python-pypi-environment/sources/numpy-1.24.0/dependencies.yaml" \
"${PWD}/src/args/make-python-pypi-environment/sources/numpy-1.24.0/sources-39.yaml" \
Expand Down
1 change: 0 additions & 1 deletion src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ let
lintPythonImports = import ./lint-python-imports/default.nix self;
lintTerraform = import ./lint-terraform/default.nix self;
lintWithAjv = import ./lint-with-ajv/default.nix self;
lintWithLizard = import ./lint-with-lizard/default.nix self;
inherit (__nixpkgs__.lib.filesystem) listFilesRecursive;
makeContainerImage = import ./make-container-image/default.nix self;
makeDerivation = import ./make-derivation/default.nix self;
Expand Down
18 changes: 0 additions & 18 deletions src/args/lint-with-lizard/builder.sh

This file was deleted.

21 changes: 0 additions & 21 deletions src/args/lint-with-lizard/default.nix

This file was deleted.

17 changes: 0 additions & 17 deletions src/args/lint-with-lizard/poetry.lock

This file was deleted.

15 changes: 0 additions & 15 deletions src/args/lint-with-lizard/pyproject.toml

This file was deleted.

1 change: 0 additions & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
(import ./lint-python/default.nix args)
(import ./lint-terraform/default.nix args)
(import ./lint-with-ajv/default.nix args)
(import ./lint-with-lizard/default.nix args)
(import ./pipelines/default.nix args)
(import ./secrets-for-aws-from-env/default.nix args)
(import ./secrets-for-aws-from-gitlab/default.nix args)
Expand Down
19 changes: 0 additions & 19 deletions src/evaluator/modules/lint-with-lizard/default.nix

This file was deleted.

0 comments on commit fed5fbd

Please sign in to comment.