|
|
@ -43,32 +43,34 @@ staticAnalysisView.prototype.render = function () { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
var view = yo` |
|
|
|
var view = yo` |
|
|
|
<div class="${css.analysis}"> |
|
|
|
<div class="${css.analysis}"> |
|
|
|
<div id="staticanalysismodules" class="list-group list-group-flush"> |
|
|
|
|
|
|
|
${this.modulesView} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="${css.buttons}"> |
|
|
|
<div class="${css.buttons}"> |
|
|
|
<div class="${css.buttonsInner}"> |
|
|
|
<div class="${css.buttonsInner}"> |
|
|
|
<button class="${css.buttonRun} btn btn-sm btn-primary" onclick="${function () { self.run() }}" >Run</button> |
|
|
|
<button class="${css.buttonRun} btn btn-sm btn-primary" onclick="${function () { self.run() }}" >Run</button> |
|
|
|
<label class="${css.label}" for="autorunstaticanalysis"> |
|
|
|
<label class="${css.label}" for="autorunstaticanalysis"> |
|
|
|
<input id="autorunstaticanalysis" |
|
|
|
<input id="autorunstaticanalysis" |
|
|
|
type="checkbox" |
|
|
|
type="checkbox" |
|
|
|
style="vertical-align:bottom" |
|
|
|
style="vertical-align:bottom" |
|
|
|
checked="true" |
|
|
|
checked="true" |
|
|
|
> |
|
|
|
> |
|
|
|
Auto run |
|
|
|
Auto run |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
<label class="${css.label}" for="checkAllEntries"> |
|
|
|
<label class="${css.label}" for="checkAllEntries"> |
|
|
|
<input id="checkAllEntries" |
|
|
|
<input id="checkAllEntries" |
|
|
|
type="checkbox" |
|
|
|
type="checkbox" |
|
|
|
onclick="${function (event) { self.checkAll(event) }}" |
|
|
|
onclick="${function (event) { self.checkAll(event) }}" |
|
|
|
style="vertical-align:bottom" |
|
|
|
style="vertical-align:bottom" |
|
|
|
checked="true" |
|
|
|
checked="true" |
|
|
|
> |
|
|
|
> |
|
|
|
Check/Uncheck all |
|
|
|
Check/Uncheck all |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div id="staticanalysismodules" class="list-group list-group-flush ${css.container}"> |
|
|
|
<div class="${css.result}" "id='staticanalysisresult'></div> |
|
|
|
${this.modulesView} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<hr> |
|
|
|
|
|
|
|
<div><h6>Results:</h6></div> |
|
|
|
|
|
|
|
<div class="${css.result}" id='staticanalysisresult'></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
` |
|
|
|
if (!this.view) { |
|
|
|
if (!this.view) { |
|
|
@ -96,8 +98,8 @@ staticAnalysisView.prototype.run = function () { |
|
|
|
var selected = this.selectedModules() |
|
|
|
var selected = this.selectedModules() |
|
|
|
var warningContainer = $('#staticanalysisresult') |
|
|
|
var warningContainer = $('#staticanalysisresult') |
|
|
|
warningContainer.empty() |
|
|
|
warningContainer.empty() |
|
|
|
|
|
|
|
var self = this |
|
|
|
if (this.lastCompilationResult) { |
|
|
|
if (this.lastCompilationResult) { |
|
|
|
var self = this |
|
|
|
|
|
|
|
var warningCount = 0 |
|
|
|
var warningCount = 0 |
|
|
|
this.runner.run(this.lastCompilationResult, selected, function (results) { |
|
|
|
this.runner.run(this.lastCompilationResult, selected, function (results) { |
|
|
|
results.map(function (result, i) { |
|
|
|
results.map(function (result, i) { |
|
|
|