R: Add frontend linter to script
This commit is contained in:
parent
3f398bd700
commit
a1bfa8a119
|
@ -1,11 +1,14 @@
|
||||||
# Run coverage analysis
|
# Run linters
|
||||||
|
|
||||||
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
||||||
|
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
|
||||||
|
|
||||||
function RunLinters() {
|
function RunLinters() {
|
||||||
BackendLint
|
LintBackend
|
||||||
|
LintFrontend
|
||||||
}
|
}
|
||||||
|
|
||||||
function BackendLint() {
|
function LintBackend() {
|
||||||
$pylint = "$backend\venv\Scripts\pylint.exe"
|
$pylint = "$backend\venv\Scripts\pylint.exe"
|
||||||
$mypy = "$backend\venv\Scripts\mypy.exe"
|
$mypy = "$backend\venv\Scripts\mypy.exe"
|
||||||
|
|
||||||
|
@ -15,4 +18,9 @@ function BackendLint() {
|
||||||
& $mypy project apps
|
& $mypy project apps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function LintFrontend() {
|
||||||
|
Set-Location $frontend
|
||||||
|
& npm run lint
|
||||||
|
}
|
||||||
|
|
||||||
RunLinters
|
RunLinters
|
Loading…
Reference in New Issue
Block a user