EditorReportsBuilder.kt

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move kotlin-dsl in a sub directory

  1. … 1579 more files in changeset.
Polish `EditorReportsBuilder`

- Keep function signatures under 120 columns

- Compose method

Favor warning reports instead of errors

keep errors and fatalities to TAPI failures

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 2 more files in changeset.
Put location aware hints editors behind an internal gradle property

and refine the 'runtime failure from current script' use case when

they are disabled, the default

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 5 more files in changeset.
Let valid line range calculation be leaner

Signed-off-by: Paul Merlin <paul@gradle.com>

Fix reports on last line without new line before eof

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 1 more file in changeset.
Refine EditorReportsBuilder

by extracting explaining functions

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 1 more file in changeset.
Simplify detection of errors not coming from the current script

Signed-off-by: Paul Merlin <paul@gradle.com>

Move editor messages out of tooling-models

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 5 more files in changeset.
Better message on location aware ide reports when cause has no message

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 2 more files in changeset.
Report file error on runtime failure in current script on out of range line number

See https://youtrack.jetbrains.com/issue/KT-9766

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 2 more files in changeset.
Report line error on runtime failure in currently edited script

if location aware

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 3 more files in changeset.
Do not report failures from currently edited script to the editor

because the IDE already provides user feedback for those.

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 1 more file in changeset.
Let the editor warning suggest running 'gradle tasks'

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 1 more file in changeset.
Move warning calculation to the tooling model builder

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +46
    ./EditorReportsBuilder.kt
  1. … 5 more files in changeset.