Skip to content

Commit c2e1731

Browse files
Add three more pre-commit checks (#7083)
Co-authored-by: dahn <daan@onecht.net>
1 parent 1d0762e commit c2e1731

File tree

654 files changed

+629
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

654 files changed

+629
-668
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ repos:
2626
- id: identity
2727
- id: check-hooks-apply
2828
- repo: https://github.com/pre-commit/pre-commit-hooks
29-
rev: v4.1.0
29+
rev: v4.4.0
3030
hooks:
3131
#- id: check-added-large-files
32-
#- id: check-case-conflict
32+
- id: check-case-conflict
3333
#- id: check-executables-have-shebangs
3434
#- id: check-merge-conflict
35-
#- id: check-vcs-permalinks
35+
- id: check-vcs-permalinks
3636
#- id: check-yaml
3737
#- id: detect-private-key
38-
#- id: end-of-file-fixer
38+
- id: end-of-file-fixer
39+
files: \.(java|md|py|txt|yaml|yml)$
3940
#- id: fix-byte-order-marker
4041
- id: mixed-line-ending
41-
files: \.(java|py)$
42+
files: \.(java|md|py|txt|yaml|yml)$
4243
# - id: trailing-whitespace

agent/src/main/java/com/cloud/agent/direct/download/HttpDirectTemplateDownloader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ protected Pair<Boolean, String> performDownload() {
107107
}
108108
return new Pair<>(true, getDownloadedFilePath());
109109
}
110-
}
110+
}

api/src/main/java/com/cloud/agent/api/Answer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ public int hashCode() {
8181
result1 = 31 * result1 + (details != null ? details.hashCode() : 0);
8282
return result1;
8383
}
84-
}
84+
}

api/src/main/java/com/cloud/agent/api/to/DatadiskTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ public int getDiskNumber() {
110110
public String getConfiguration() {
111111
return configuration;
112112
}
113-
}
113+
}

api/src/main/java/com/cloud/agent/api/to/DpdkTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ public String getPort() {
4242
public String getMode() {
4343
return mode;
4444
}
45-
}
45+
}

api/src/main/java/com/cloud/agent/api/to/deployasis/OVFConfigurationTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ public List<OVFVirtualHardwareItemTO> getHardwareItems() {
6161
public int getIndex() {
6262
return index;
6363
}
64-
}
64+
}

api/src/main/java/com/cloud/agent/api/to/deployasis/OVFNetworkTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ public String getNetworkDescription() {
121121
public void setNetworkDescription(String networkDescription) {
122122
this.networkDescription = networkDescription;
123123
}
124-
}
124+
}

api/src/main/java/com/cloud/agent/api/to/deployasis/OVFVirtualHardwareItemTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,4 +368,4 @@ public int getWeight() {
368368
public void setWeight(int weight) {
369369
this.weight = weight;
370370
}
371-
}
371+
}

api/src/main/java/com/cloud/agent/api/to/deployasis/OVFVirtualHardwareSectionTO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ public List<OVFVirtualHardwareItemTO> getCommonHardwareItems() {
4747
public String getMinimiumHardwareVersion() {
4848
return minimiumHardwareVersion;
4949
}
50-
}
50+
}

api/src/main/java/com/cloud/deploy/HAPlanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919

2020
public interface HAPlanner extends DeploymentPlanner {
21-
}
21+
}

0 commit comments

Comments
 (0)