Fix some codacy issues.
This commit is contained in:
parent
eb3979dc83
commit
17e2a7c6f0
8 changed files with 47 additions and 7 deletions
38
.markdownlint.yaml
Normal file
38
.markdownlint.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# See https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
|
||||||
|
|
||||||
|
# Default state for all rules
|
||||||
|
default: true
|
||||||
|
|
||||||
|
# MD007/ul-indent : Unordered list indentation :
|
||||||
|
# https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md007.md
|
||||||
|
MD007:
|
||||||
|
# Spaces for indent
|
||||||
|
indent: 2
|
||||||
|
# Whether to indent the first level of the list
|
||||||
|
start_indented: true
|
||||||
|
# Spaces for first level indent (when start_indented is set)
|
||||||
|
start_indent: 2
|
||||||
|
|
||||||
|
# MD025/single-title/single-h1 : Multiple top-level headings in the same document :
|
||||||
|
# https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md025.md
|
||||||
|
MD025:
|
||||||
|
# Heading level
|
||||||
|
level: 1
|
||||||
|
# RegExp for matching title in front matter (disable)
|
||||||
|
front_matter_title: ""
|
||||||
|
|
||||||
|
# MD036/no-emphasis-as-heading : Emphasis used instead of a heading :
|
||||||
|
# https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md036.md
|
||||||
|
MD036: false
|
||||||
|
|
||||||
|
# MD043/required-headings : Required heading structure :
|
||||||
|
# https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md043.md
|
||||||
|
MD043:
|
||||||
|
# List of headings
|
||||||
|
headings: [
|
||||||
|
"# Head",
|
||||||
|
"## Item",
|
||||||
|
"### Detail"
|
||||||
|
]
|
||||||
|
# Match case of headings
|
||||||
|
match_case: false
|
||||||
|
|
@ -14,7 +14,7 @@ spec:
|
||||||
# repository: ghcr.io
|
# repository: ghcr.io
|
||||||
# path: mnlipp/org.jdrupes.vmoperator.runner.qemu-alpine
|
# path: mnlipp/org.jdrupes.vmoperator.runner.qemu-alpine
|
||||||
# version: "3.0.0"
|
# version: "3.0.0"
|
||||||
source: registry.mnl.de/org/jdrupes/vm-operator/org.jdrupes.vmoperator.runner.qemu-arch:testing
|
source: registry.mnl.de/org/jdrupes/vm-operator/org.jdrupes.vmoperator.runner.qemu-arch:feature-auto-login
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,7 @@ public class VmAccess extends FreeMarkerConlet<VmAccess.ResourceModel> {
|
||||||
public void onConsoleConfigured(ConsoleConfigured event,
|
public void onConsoleConfigured(ConsoleConfigured event,
|
||||||
ConsoleConnection connection) throws InterruptedException,
|
ConsoleConnection connection) throws InterruptedException,
|
||||||
IOException {
|
IOException {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "PMD.PrematureDeclaration" })
|
||||||
final var rendered
|
final var rendered
|
||||||
= (Set<ResourceModel>) connection.session().get(RENDERED);
|
= (Set<ResourceModel>) connection.session().get(RENDERED);
|
||||||
connection.session().remove(RENDERED);
|
connection.session().remove(RENDERED);
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
span[role="button"].svg-icon {
|
span[role="button"].svg-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
|
||||||
/* Align with forkawesome */
|
/* Align with forkawesome */
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
fill: var(--primary);
|
fill: var(--primary);
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,7 @@
|
||||||
span[role="button"].svg-icon {
|
span[role="button"].svg-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
|
||||||
/* Align with forkawesome */
|
/* Align with forkawesome */
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
fill: var(--primary);
|
fill: var(--primary);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue