Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refac(back): #1378 deprecate lint clojure #1398

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,6 @@ jobs:
- name: /lintBash
run: nix-env -if . && m . /lintBash

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

linux_lintGitCommitMsg:
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 @@ -325,26 +325,6 @@ jobs:
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

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

linux_lintGitCommitMsg:
runs-on: ubuntu-latest
steps:
Expand Down
35 changes: 0 additions & 35 deletions docs/src/api/builtins/lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,41 +37,6 @@ Example:
m . /lintBash
```

## lintClojure

Lints clojure code with [clj-kondo](https://github.com/clj-kondo/clj-kondo).

Types:

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

Defaults to `{ }`.

Example:

=== "makes.nix"

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

=== "Invocation"

```bash
m . /lintClojure/example1`
```

## lintGitCommitMsg

It creates a commit diff
Expand Down
1 change: 0 additions & 1 deletion makes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,4 @@
};
};
};
lintClojure = { test = [ "/test" ]; };
}
1 change: 0 additions & 1 deletion src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ let
inherit (__nixpkgs__.stdenv) isDarwin;
inherit (__nixpkgs__.stdenv) isLinux;
libGit = import ./lib-git/default.nix self;
lintClojure = import ./lint-clojure/default.nix self;
lintGitCommitMsg = import ./lint-git-commit-msg/default.nix self;
lintGitMailMap = import ./lint-git-mailmap/default.nix self;
lintNix = import ./lint-nix/default.nix self;
Expand Down
13 changes: 0 additions & 13 deletions src/args/lint-clojure/builder.sh

This file was deleted.

14 changes: 0 additions & 14 deletions src/args/lint-clojure/default.nix

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 @@ -21,7 +21,6 @@
(import ./hello-world/default.nix args)
(import ./inputs/default.nix)
(import ./lint-bash/default.nix args)
(import ./lint-clojure/default.nix args)
(import ./lint-git-commit-msg/default.nix args)
(import ./lint-git-mailmap/default.nix args)
(import ./lint-nix/default.nix args)
Expand Down
19 changes: 0 additions & 19 deletions src/evaluator/modules/lint-clojure/default.nix

This file was deleted.

Empty file removed test/clojure/test.clj
Empty file.
Loading