I personally sometimes use
SonarQube. It's not the best one, but it's flexible. It can be taught project specific features, if there are any. Sometimes it does crazy things, but as with any tool you got to learn how to use it. And don't forget to be skeptical about its comments. Despite all of its drawbacks, it can marvelously find dead code, comments, cut-and-paste jobs, and other knickknacks such as lack of strict comparison.
The key difference between SonarQube from ESlint/TSLint/Prettier/etc. is that it inspects for code quality, finds duplication, complicated calculations, and recommends necessary modifications. Other alternatives simply check the code for mistakes, bad syntax or format.
I had some hands-on experience with
codacy, a decent service with free and paid subscriptions. It's useful if you have to check something elsewhere without deploying the heavyweight stuff. It has an intuitive interface, detailed instructions on what's wrong with the code and much more.
In this article I am not touching upon configuring builds, chunks, etc., since it all depends on a specific project and bundler installed. I may talk about it in my later articles.
So, the actions performed helped to speed-up the build in general and
building mobile application in particular. Great, but what's next? Since analyzers can search for duplicated code, it may be useful to move it to separate modules or components thus increasing code reuse.
There is only one section still uncovered, and that's the speed of the code itself. The mechanism for bringing its performance to life is called refactoring, a word everyone hates. Let's see, what is worth doing during refactoring, and what's not.
In this process, don't let yourself be governed by the general rule of thumb that says: 'If it works, don't touch it'. The first rule in IT: make a backup, you'll thank yourself later. On the front-end, do some tests before making any changes in order to keep up performance. Then ask yourself: how do you determine load time and leaks?
DevTools helps with this. Not only it shows memory leaks, page load time, and animation performance, it may also make an audit for you, but that's not 100% certain. DevTools also has a useful feature such as slowing down load speed, which helps you predict page load time in poor Internet performance conditions.
So, we have identified our problems, now let's solve them!