Questions tagged [plato]

Plato is a Javascript code complexity analyzer.

Plato is a Javascript code complexity analyzer.

18 questions
10
votes
2 answers

Are there any code complexity metering tools that work well with ES6?

My project is ES6 (webpack + babel). Plato is great, but doesn't work with ES6 yet. I took a look at escomplex and the series of related packages, but it looks like the author is no longer maintaining this and it seems like it doesn't support ES6…
sak_to
  • 399
  • 4
  • 13
4
votes
2 answers

FORTRAN 95: OPTIONAL statement does not work (using FTN95 and Plato)

I am having a problem with the OPTIONAL statement in functions and subroutines with Fortran 95. Currently I am using Silverfrost's Plato and their FTN95 compiler (in "Release Win32" mode). After trying to implement the OPTIONAL statement in a more…
gilbertohasnofb
  • 1,984
  • 16
  • 28
3
votes
1 answer

Is there a way to run Plato on coffeescript

I've written all my server side code and Coffeescript and I'm wondering if there is a way to run Plato on it?
jwerre
  • 9,179
  • 9
  • 60
  • 69
2
votes
1 answer

QR decomposition Fortran error

I have a problem with QR decomposition method. I use dgeqrf subroutine for decomposition but there is no error in the compiler but it gives a problem after that. I haven't found where is the mistake. Another question is, A=Q*R=> if A matrix has…
2
votes
0 answers

Disable Lint error in Plato tool

I am using Plato to analyse java script code, But I want to disable lint error for my code during analyse. How can I do that with out touching code is there way or do I have to dig in code.
user5843174
  • 151
  • 1
  • 10
2
votes
1 answer

JavaScript code analysis - maintainability rating with Plato

I've been working with JavaScript for a while now and just started analyzing my code with Plato. I'm not sure how it calculates maintainability but the code bellow returns maintainability score of 69.3. What am i missing? Tried adding comments and…
prototype
  • 3,303
  • 2
  • 27
  • 42
2
votes
2 answers

pass function as argument to subroutine using interface doesn't work in Plato Fortran 90

I created a fortran 90 program that I used on a linux machine and compiled using gfortran. It worked fine on the linux machine with gfortran but provides the error error 327 - In the INTERFACE to SECANTMETHOD (from MODULE SECMETH), the ninth dummy…
ryanDavid
  • 21
  • 4
1
vote
1 answer

Why are my C++ and Fortran programs not running on Plato IDE downloaded from Silverfrost?

I am using Plato IDE from Silverfrost FTN95 to run programs on Fortran as well as C++. But for the last 2-3 months, I was busy and could not use them. So, yesterday when I opened the IDE and viewed some earlier written programs, I saw that the…
SchrodingersCat
  • 1,529
  • 2
  • 12
  • 15
1
vote
1 answer

How to improve the Maintainability Index of the Plato report

I have generated the Plato report for the AngularJS code and now I want to know how I can improve the Maintainability Index. Lint errors improvement does not improve the Maintainability Index. Any refernce links, very much appreciated. Thanks.
Sahana
  • 11
  • 3
1
vote
1 answer

Terminal error with passing parameters

Plato is a JS code complexity analyzer. The documentation can be found at that link. I cannot get it to run however. It must be a dumb mistake but here is what I have tried. plato fileX.js -d somename "~/Desktop/" plato addNewDocPopup.js -d…
Mike Fielden
  • 10,055
  • 14
  • 59
  • 99
0
votes
0 answers

how to extract code metrics from a JavaScript code?

I would like to get for each file: the number of methods the number of classes the number of functions And for each function: the cyclomatic complexity the number of lines of that function I have already developed a script that calculates these…
0
votes
1 answer

Can I tell node to use a bigger heap?

I'm not sure how to fix this. What does it all mean? Can I somehow tell node to use a bigger heap? plato -r -d report project-ui <--- Last few GCs ---> 30399 ms: Scavenge 1400.3 (1472.6) -> 1400.3 (1472.6) MB, 0.5 / 0 ms (+ 2.7 ms in 1 steps since…
Andrew Bucknell
  • 1,880
  • 3
  • 21
  • 32
0
votes
1 answer

Plato software error

I am getting this error while using plato for one of my project to find maintainability index for angular.js application: plato -r -d report "angular" angular-master C:\Users\pritesh\AppData\Roaming\npm\node_modules\plato\lib\util.js:15 var…
user5843174
  • 151
  • 1
  • 10
0
votes
2 answers

In AngularJS application can we have multiple services files

In AngularJS application, for one module say "login" functionality can we create multiple services files like logincheck-svc.js and logingo-svc.js And reference both the files in login-ctrl.js file I am asking this question because the services…
Sahana
  • 11
  • 3
0
votes
1 answer

Exclude subdirectories from plato metric tool

I'm using the Plato tool to analyze my web app. I'm currently running a command like plato -r -d plato_report server public -x "public/|vendor|js" -t "My App" to generate the report. The idea is that while I want to include the server and public…
davewy
  • 1,781
  • 1
  • 16
  • 27
1
2