mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
R: Add frontend linter to script
This commit is contained in:
parent
aeb2b08412
commit
5682da5784
|
@ -1,11 +1,14 @@
|
|||
# Run coverage analysis
|
||||
# Run linters
|
||||
|
||||
$backend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\backend"
|
||||
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
|
||||
|
||||
function RunLinters() {
|
||||
BackendLint
|
||||
LintBackend
|
||||
LintFrontend
|
||||
}
|
||||
|
||||
function BackendLint() {
|
||||
function LintBackend() {
|
||||
$pylint = "$backend\venv\Scripts\pylint.exe"
|
||||
$mypy = "$backend\venv\Scripts\mypy.exe"
|
||||
|
||||
|
@ -15,4 +18,9 @@ function BackendLint() {
|
|||
& $mypy project apps
|
||||
}
|
||||
|
||||
function LintFrontend() {
|
||||
Set-Location $frontend
|
||||
& npm run lint
|
||||
}
|
||||
|
||||
RunLinters
|
Loading…
Reference in New Issue
Block a user