Skip to content

Commit

Permalink
chore(vscode): 🔧 Add VSCode compile task and maven problem matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-s-betke authored and mistmist committed Aug 26, 2021
1 parent d779732 commit d8ffea8
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 19 deletions.
22 changes: 21 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
9 changes: 8 additions & 1 deletion .vscode/cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@
"language": "en",
"dictionaries": [],
"words": [
"configfile",
"filterfile",
"ODFDOM",
"odffiles",
"odfvalidator",
"subcomponents"
"outputfile",
"rngfile",
"schemafile",
"subcomponents",
"xsdfile"
],
"ignoreRegExpList": []
}
58 changes: 41 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit d8ffea8

Please sign in to comment.