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
6a9632e8
Commit
6a9632e8
authored
May 11, 2020
by
LianaHus
Committed by
Liana Husikyan
May 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed overwriteing of location for warnings
parent
6296675a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
staticAnalysisView.js
src/app/tabs/staticanalysis/staticAnalysisView.js
+4
-4
renderer.js
src/app/ui/renderer.js
+2
-2
No files found.
src/app/tabs/staticanalysis/staticAnalysisView.js
View file @
6a9632e8
...
...
@@ -152,9 +152,9 @@ staticAnalysisView.prototype.run = function () {
self
.
lastCompilationSource
.
sources
,
self
.
lastCompilationResult
.
sources
)
row
=
location
.
start
.
line
+
1
column
=
location
.
start
.
column
+
1
locationString
=
row
+
':'
+
column
+
':'
row
=
location
.
start
.
line
column
=
location
.
start
.
column
locationString
=
(
row
+
1
)
+
':'
+
column
+
':'
fileName
=
Object
.
keys
(
self
.
lastCompilationResult
.
contracts
)[
file
]
}
warningCount
++
...
...
@@ -169,7 +169,7 @@ staticAnalysisView.prototype.run = function () {
msg
,
this
.
view
.
querySelector
(
`[id="staticAnalysisModule
${
moduleName
}
"]`
),
{
type
:
'
staticAnalysisWarning mx-2 alert alert-
warning'
,
type
:
'warning'
,
useSpan
:
true
,
errFile
:
fileName
,
errLine
:
row
,
...
...
src/app/ui/renderer.js
View file @
6a9632e8
...
...
@@ -71,7 +71,7 @@ Renderer.prototype.error = function (message, container, opt) {
}
var
errLocation
=
text
.
match
(
/^
([^
:
]
*
)
:
([
0-9
]
*
)
:
(([
0-9
]
*
)
:
)?
/
)
if
(
errLocation
)
{
if
(
(
!
opt
.
errFile
||
!
opt
.
errCol
||
!
opt
.
errLine
)
&&
errLocation
)
{
errLocation
=
parseRegExError
(
errLocation
)
opt
.
errFile
=
errLocation
.
errFile
opt
.
errLine
=
errLocation
.
errLine
...
...
@@ -94,7 +94,7 @@ Renderer.prototype.error = function (message, container, opt) {
$
(
container
).
append
(
$error
)
$error
.
click
((
ev
)
=>
{
if
(
opt
.
errFile
&&
opt
.
errLine
)
{
if
(
opt
.
errFile
&&
opt
.
errLine
&&
opt
.
errCol
)
{
this
.
_errorClick
(
opt
.
errFile
,
opt
.
errLine
,
opt
.
errCol
)
}
else
if
(
opt
.
click
)
{
opt
.
click
(
message
)
...
...
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