From 8f2fd2afed10038c98a5dfd7e34244eab5e27e21 Mon Sep 17 00:00:00 2001 From: DavHau Date: Wed, 23 Feb 2022 15:29:53 +0700 Subject: [PATCH] rename: compatiblePaths -> compatible --- src/templates/translators/impure.nix | 5 ++--- src/templates/translators/pure.nix | 5 ++--- src/translators/default.nix | 2 +- src/translators/go/impure/gomod2nix/default.nix | 5 ++--- src/translators/nodejs/impure/package-json/default.nix | 5 ++--- src/translators/nodejs/pure/package-lock/default.nix | 2 +- src/translators/nodejs/pure/yarn-lock/default.nix | 5 ++--- src/translators/python/impure/pip/default.nix | 3 +-- src/translators/rust/pure/cargo-lock/default.nix | 5 ++--- 9 files changed, 15 insertions(+), 22 deletions(-) diff --git a/src/templates/translators/impure.nix b/src/templates/translators/impure.nix index 3cd75f6f..2c60b0dd 100644 --- a/src/templates/translators/impure.nix +++ b/src/templates/translators/impure.nix @@ -48,10 +48,9 @@ ''; - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: diff --git a/src/templates/translators/pure.nix b/src/templates/translators/pure.nix index 1c121e02..dd3fae2a 100644 --- a/src/templates/translators/pure.nix +++ b/src/templates/translators/pure.nix @@ -129,10 +129,9 @@ }); - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/default.nix b/src/translators/default.nix index 20eccef2..d3da0ec2 100644 --- a/src/translators/default.nix +++ b/src/translators/default.nix @@ -144,7 +144,7 @@ let subsystem type ; - compatible = t.compatiblePaths { inherit source; }; + compatible = t.compatible { inherit source; }; }); # also includes subdirectories of the given paths up to a certain depth diff --git a/src/translators/go/impure/gomod2nix/default.nix b/src/translators/go/impure/gomod2nix/default.nix index 27a00d02..0a34aae9 100644 --- a/src/translators/go/impure/gomod2nix/default.nix +++ b/src/translators/go/impure/gomod2nix/default.nix @@ -46,10 +46,9 @@ ''; - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/nodejs/impure/package-json/default.nix b/src/translators/nodejs/impure/package-json/default.nix index 43bb551d..f72490d8 100644 --- a/src/translators/nodejs/impure/package-json/default.nix +++ b/src/translators/nodejs/impure/package-json/default.nix @@ -61,10 +61,9 @@ ''; - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/nodejs/pure/package-lock/default.nix b/src/translators/nodejs/pure/package-lock/default.nix index 6c618825..25385338 100644 --- a/src/translators/nodejs/pure/package-lock/default.nix +++ b/src/translators/nodejs/pure/package-lock/default.nix @@ -210,7 +210,7 @@ in }); - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/nodejs/pure/yarn-lock/default.nix b/src/translators/nodejs/pure/yarn-lock/default.nix index 837dc6f2..a2bff578 100644 --- a/src/translators/nodejs/pure/yarn-lock/default.nix +++ b/src/translators/nodejs/pure/yarn-lock/default.nix @@ -275,10 +275,9 @@ }); - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/python/impure/pip/default.nix b/src/translators/python/impure/pip/default.nix index 95637b3d..70ac8092 100644 --- a/src/translators/python/impure/pip/default.nix +++ b/src/translators/python/impure/pip/default.nix @@ -107,8 +107,7 @@ in ''; - # from a given list of paths, this function returns all paths which can be processed by this translator - compatiblePaths = + compatible = { source, }: diff --git a/src/translators/rust/pure/cargo-lock/default.nix b/src/translators/rust/pure/cargo-lock/default.nix index 9ba7c53d..870ca868 100644 --- a/src/translators/rust/pure/cargo-lock/default.nix +++ b/src/translators/rust/pure/cargo-lock/default.nix @@ -242,10 +242,9 @@ }); - # From a given list of paths, this function returns all paths which can be processed by this translator. - # This allows the framework to detect if the translator is compatible with the given inputs + # This allows the framework to detect if the translator is compatible with the given input # to automatically select the right translator. - compatiblePaths = + compatible = { source, }: