News for hackers. Stuff that matters.
Re:Amazon CodeGuru – Preview by dickjocke on Tuesday December 03, 2019 @03:48PM (#21696548)
I'd be very surprised if the service they've announced is a linter.

The announcement says it can even analyze parts your code that are more computationally expensive than they need to be. I'm not sure I understand the skepticism--surely they have among the largest code repositories in the world. Why couldn't they train models on it to look at best practices and even compare code practices to different metrics.

Re:Amazon CodeGuru – Preview by ShamelessC on Tuesday December 03, 2019 @04:03PM (#21696681)
Isn't this just calculating the cyclomatic complexity?
Re:Amazon CodeGuru – Preview by ralmeida on Tuesday December 03, 2019 @04:42PM (#21697040)
No - OP meant computationally expensive, not cognitively expensive. Two nested for-loops can be O(nˆ2) but can have a cyclomatic complexity as low as 1.