Skip to content

Commit

Permalink
Remove now-dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Dec 8, 2023
1 parent bdba40e commit 14c1310
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions scripts/lib/lactoserv/lint
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,6 @@ rest-arg --var=args args
process-args "$@" || exit "$?"


#
# Helper functions
#

# Finds a hopefully-unique file at the top level of the project whose name has
# the right prefix. Prints it.
function config-file-path {
local configFile

configFile=($(
lib ls-files --output=lines \
--cd="${srcDir}" --full-paths --depth=1 --include='^\.eslintrc'
)) \
|| return "$?"

if (( ${#configFile[@]} != 1 )); then
if (( ${#configFile[@]} == 0 )); then
error-msg 'Did not find a config file in the project!'
else
error-msg 'Did not find a _unique_ config file!'
fi
return 1
fi

echo "${configFile[0]}"
}

# Builds the linter if necessary, and then prints the path to it main binary.
function linter-path {
local toolModule=linter
local toolDir="${outDir}/${toolModule}"
local toolPath="${toolDir}/bin/eslint"

# Build the linter, if necessary.
if [[ ! -x ${toolPath} ]]; then
lib 1>&2 node-project build-main-module \
--out="${outDir}" --modules-dirs="${srcDir}" "${toolModule}" \
|| return "$?"
fi

echo "${toolPath}"
}


#
# Main script
#
Expand Down

0 comments on commit 14c1310

Please sign in to comment.