Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
ee3eb518
Commit
ee3eb518
authored
Jun 25, 2021
by
aniket-engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
toggele analysis count update
parent
d002f963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
remix-ui-static-analyser.tsx
...x-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
+4
-0
No files found.
libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
View file @
ee3eb518
...
@@ -133,13 +133,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
...
@@ -133,13 +133,17 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
}
}
const
showWarningsByModule
=
(
showOnlyModule
:
string
)
=>
{
const
showWarningsByModule
=
(
showOnlyModule
:
string
)
=>
{
let
count
=
0
if
(
allWarnings
[
showOnlyModule
])
{
if
(
allWarnings
[
showOnlyModule
])
{
const
newWarningState
=
{}
const
newWarningState
=
{}
newWarningState
[
showOnlyModule
]
=
allWarnings
[
showOnlyModule
]
newWarningState
[
showOnlyModule
]
=
allWarnings
[
showOnlyModule
]
setWarningState
({[
showOnlyModule
]:
allWarnings
[
showOnlyModule
]})
setWarningState
({[
showOnlyModule
]:
allWarnings
[
showOnlyModule
]})
count
=
allWarnings
[
showOnlyModule
].
length
}
else
if
(
showOnlyModule
===
'all'
)
{
}
else
if
(
showOnlyModule
===
'all'
)
{
setWarningState
(
allWarnings
)
setWarningState
(
allWarnings
)
for
(
const
e
in
allWarnings
)
count
+=
allWarnings
[
e
].
length
}
}
props
.
event
.
trigger
(
'staticAnaysisWarning'
,
[
count
])
}
}
const
run
=
(
lastCompilationResult
,
lastCompilationSource
,
currentFile
)
=>
{
const
run
=
(
lastCompilationResult
,
lastCompilationSource
,
currentFile
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment