Skip to content

Commit

Permalink
Moved lint checker setting into config file
Browse files Browse the repository at this point in the history
  • Loading branch information
HU90m authored and marnovandermaas committed Sep 3, 2024
1 parent 8263e67 commit 2a82a3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
15 changes: 2 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@
};
};

lint-markdown = pkgs.writeShellApplication {
name = "lint-markdown";
text = ''
${getExe pkgs.lychee} --offline --include-fragments --no-progress . \
--exclude-path ./vendor \
--exclude-path ./build \
--exclude-path './sw/cheri/build' \
--exclude-path './sw/legacy/build'
'';
};

lint-python = pkgs.writeShellApplication {
name = "lint-python";
runtimeInputs = [pythonEnv];
Expand All @@ -83,7 +72,7 @@
lint-all = pkgs.writers.writeBashBin "lint-all" ''
set -e
${getExe pkgs.reuse} --suppress-deprecation lint
${getExe lint-markdown}
${getExe pkgs.lychee} --offline --no-progress .
${getExe lint-python}
'';

Expand Down Expand Up @@ -261,7 +250,7 @@
type = "app";
program = getExe program;
};
}) [lint-all lint-markdown lint-python tests-fpga]);
}) [lint-all lint-python tests-fpga]);
};
in
flake-utils.lib.eachDefaultSystem system_outputs;
Expand Down
10 changes: 10 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright lowRISC Contributors.
# SPDX-License-Identifier: Apache-2.0

include_fragments = true
exclude_path = [
"./vendor",
"./build",
"./sw/cheri/build",
"./sw/legacy/build",
]

0 comments on commit 2a82a3c

Please sign in to comment.