frextrite / coala-jetbrains

coala plugin for JetBrains IDEs - coala provides a unified interface for linting and fixing code with a single configuration file, regardless of the programming languages used.
https://coala.io
GNU Affero General Public License v3.0
2 stars 1 forks source link

Parse and Deserialize logs from JSON and Print to Console #22

Closed frextrite closed 5 years ago

frextrite commented 5 years ago

Parse and deserialize logs when coala is run with --log-json

Extension: print these logs to console.

frextrite commented 5 years ago

A big PR with 13 commits.

Changes:

  1. Parsing JSON - Created classes CodeAnalysisLog (modelling log objects), DeserializeLogFromJson (class used to parse JSON and get log objects, helper of gsonbuilder), CodeAnalysisLogDeserializer (the main abstraction) and updated corresponding test class CodeAnalysisLogDeserializerTest
  2. Printing to console - CodeAnalysisLogPrinter responsible for printing log objects to the console. Other affected classes: CodeAnalysisRunner (print the cmd run statement), CodeAnalysisTask is the main calling class for the project, responsible for calling the printer class to print logs.
  3. Other changes - CodeAnalysisConsoleView Add verbose severity print methods, and create custom colors for DEBUG tag (IntelliJ uses blue, coala used Green)
frextrite commented 5 years ago

Here's a nice screenshot for the same: coala_console