From d8ffea8db2fb600ecb8294e8b899e929377bc83a Mon Sep 17 00:00:00 2001 From: "Sergey S. Betke" Date: Sun, 15 Aug 2021 02:41:13 +0300 Subject: [PATCH] chore(vscode): :wrench: Add VSCode compile task and maven problem matcher --- .editorconfig | 22 ++++++++++++++++- .vscode/cSpell.json | 9 ++++++- .vscode/tasks.json | 58 ++++++++++++++++++++++++++++++++------------- 3 files changed, 70 insertions(+), 19 deletions(-) diff --git a/.editorconfig b/.editorconfig index c93ca22571..a7af3854a2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,7 @@ # Fix format via command line: 'mvn editorconfig:format' root=true -[*.{groovy,java,kt,xml,mdtext}] +[*.{groovy,kt,xml,mdtext}] end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true @@ -11,3 +11,23 @@ tab_width = 4 indent_size = 4 max_line_length = off charset = utf-8 + +[*.java] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +tab_width = 2 +indent_size = 2 +max_line_length = off +charset = utf-8 + +[*.json] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab +tab_width = 4 +indent_size = 4 +max_line_length = off +charset = utf-8 diff --git a/.vscode/cSpell.json b/.vscode/cSpell.json index c7c6f5aa05..f003396af3 100644 --- a/.vscode/cSpell.json +++ b/.vscode/cSpell.json @@ -8,9 +8,16 @@ "language": "en", "dictionaries": [], "words": [ + "configfile", + "filterfile", "ODFDOM", + "odffiles", "odfvalidator", - "subcomponents" + "outputfile", + "rngfile", + "schemafile", + "subcomponents", + "xsdfile" ], "ignoreRegExpList": [] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fabd5c4169..d78237b6ca 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,19 +1,43 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "verify", - "type": "shell", - "command": "mvn -B verify", - "group": "build" - }, - { - "label": "test", - "type": "shell", - "command": "mvn -B test", - "group": "test" - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "problemMatcher": { + "owner": "custom", + "fileLocation": "absolute", + "pattern": [ + { + "regexp": "^\\[(WARNING|ERROR)\\] /(.+?\\.java):\\[(\\d+),(\\d+)\\] (.*);$", + "severity": 1, + "file": 2, + "line": 3, + "column": 4, + "message": 5 + }, + { + "regexp": "^\\[(WARNING|ERROR)\\] (.*)$", + "message": 2, + "loop": true + } + ] + }, + "tasks": [ + { + "label": "verify", + "type": "shell", + "command": "mvn -B verify" + }, + { + "label": "compile", + "type": "shell", + "command": "mvn -B compile", + "group": "build" + }, + { + "label": "test", + "type": "shell", + "command": "mvn -B test", + "group": "test" + } + ] }