Skip to content

Commit b519912

Browse files
robshakirwenovus
andauthored
Enable gofmt CI against new directories by default. (#793)
Co-authored-by: Wen Bo Li <[email protected]>
1 parent 0259101 commit b519912

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
175175
- name: Gofmt
176176
run: |
177-
for i in util ygot ygen ytypes ygot/pathtranslate testutil testcmp ypathgen; do
177+
for i in `find . -type d | egrep -v "exampleoc|demo|proto|uexampleoc"`; do
178178
diff -u <(echo -n) <(gofmt -d -s ./$i)
179179
done
180180

gnmidiff/json.go

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,31 @@ import (
3333
// Output path format is per gNMI's path conventions.
3434
//
3535
// e.g.
36-
// {
37-
// "openconfig-network-instance:config": {
38-
// "description": "VRF RED",
39-
// "enabled": true,
40-
// "enabled-address-families": [
41-
// "openconfig-types:IPV4",
42-
// "openconfig-types:IPV6"
43-
// ],
44-
// "name": "RED",
45-
// "type": "openconfig-network-instance-types:L3VRF"
46-
// },
47-
// "openconfig-network-instance:name": "RED"
48-
// }
36+
//
37+
// {
38+
// "openconfig-network-instance:config": {
39+
// "description": "VRF RED",
40+
// "enabled": true,
41+
// "enabled-address-families": [
42+
// "openconfig-types:IPV4",
43+
// "openconfig-types:IPV6"
44+
// ],
45+
// "name": "RED",
46+
// "type": "openconfig-network-instance-types:L3VRF"
47+
// },
48+
// "openconfig-network-instance:name": "RED"
49+
// }
4950
//
5051
// returns
51-
// {
52-
// "openconfig-network-instance:config/description": "VRF RED",
53-
// "openconfig-network-instance:config/enabled": true,
54-
// "openconfig-network-instance:config/enabled-address-families": ["openconfig-types:IPV4", "openconfig-types:IPV6"],
55-
// "openconfig-network-instance:config/name": "RED",
56-
// "openconfig-network-instance:config/type": "openconfig-network-instance-types:L3VRF",
57-
// "openconfig-network-instance:name": "RED",
58-
// }
52+
//
53+
// {
54+
// "openconfig-network-instance:config/description": "VRF RED",
55+
// "openconfig-network-instance:config/enabled": true,
56+
// "openconfig-network-instance:config/enabled-address-families": ["openconfig-types:IPV4", "openconfig-types:IPV6"],
57+
// "openconfig-network-instance:config/name": "RED",
58+
// "openconfig-network-instance:config/type": "openconfig-network-instance-types:L3VRF",
59+
// "openconfig-network-instance:name": "RED",
60+
// }
5961
//
6062
// When keepNamespace=false, then any namespace is removed from the flattened
6163
// *paths*, but still kept in any identity values.

0 commit comments

Comments
 (0)