Skip to content

Commit ca75cf1

Browse files
Added expected names in the comments
1 parent c9ccffb commit ca75cf1

File tree

1 file changed

+96
-76
lines changed

1 file changed

+96
-76
lines changed

.golangci.yml

Lines changed: 96 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -41,82 +41,102 @@ linters:
4141
tagliatelle:
4242
case:
4343
rules:
44-
json: goCamel
45-
yaml: goCamel
46-
ignored-fields:
47-
- APICABundle
48-
- AppliedPolicies
49-
- AppProtocol
50-
- BGPPolicyName
51-
- BrName
52-
- ContentLength
53-
- ClientCAFile
54-
- ClusterCIDRs
55-
- ClusterIDs
56-
- ClusterInfo
57-
- ClusterNetworkPolicy
58-
- ContentType
59-
- AppliedPolicies
60-
- ClusterMembershipPort
61-
- DatapathType
62-
- DestIP
63-
- DestPort
64-
- DefaultMTU
65-
- DisableTXChecksumOffload
66-
- DstMAC
67-
- EgressDstRules
68-
- EnableNodeIPAM
69-
- EventType
70-
- ExceptCIDRs
71-
- ExtensionID
72-
- Extensions
73-
- ExternalEntity
74-
- ExternalEntitySpec
75-
- ExternalIds
76-
- ExternalIDs
77-
- FlowID
78-
- FQDNs
79-
- IngressSrcRules
80-
- InInterface
81-
- IPPools
82-
- IPs
83-
- IPsec
84-
- IPsecCSRSignerConfig
85-
- IPv6Header
86-
- LastMeasuredRTTNanoseconds
87-
- ListMeta
88-
- LocalASN
89-
- MaxIPFIXMsgSize
90-
- McastSnoopingEnable
91-
- MemberASNs
92-
- Method
93-
- Nameservers
94-
- NodeCIDRMaskSizeIPv4
95-
- NodeCIDRMaskSizeIPv6
96-
- NodeIPAM
97-
- NodeResults
98-
- NoSNAT
99-
- ObjectMeta
100-
- OFPortRequest
101-
- PacketBytes
102-
- PodCIDRs
103-
- PodName
104-
- PolicyRef
105-
- Port
106-
- Protocol
107-
- RawPrevResult
108-
- RuleIndex
109-
- Search
110-
- SelfSignedCA
111-
- ServiceCIDR
112-
- ServiceCIDRv6
113-
- SrcIP
114-
- SrcPort
115-
- TransportInterfaceCIDRs
116-
- TransportHeader
117-
- TxID
118-
- UserAgent
119-
- WithIPFIXExporter
44+
# json: goCamel
45+
#yaml: goCamel
46+
extended-rules:
47+
json:
48+
case: goCamel
49+
extra-initialisms: true
50+
initialism-overrides:
51+
CIDR: true
52+
IPAM: true
53+
MTU: true
54+
SNAT: true
55+
yaml:
56+
case: goCamel
57+
extra-initialisms: true
58+
initialism-overrides:
59+
CIDR: true
60+
IPAM: true
61+
MTU: true
62+
SNAT: true
63+
64+
65+
66+
ignored-fields: # Current: Expected
67+
- APICABundle # apiCABundle : apicaBundle
68+
- AppliedPolicies # policies : appliedPolicies
69+
- AppProtocol # app_proto : appProtocol
70+
- BGPPolicyName # name' want 'bgpPolicyName
71+
- BrName #ovsBinding : brName
72+
- ClientCAFile # clientCAFile : clientCaFile
73+
- ClusterCIDRs # clusterCIDRs : clusterCidRs
74+
- ClusterIDs # clusterID : clusterIDs
75+
- ClusterInfo # clusterinfo : clusterInfo
76+
- ClusterNetworkPolicy # clusternetworkpolicy : clusterNetworkPolicy
77+
- ContentLength # length : contentLength
78+
- ContentType # http_content_type : contentType
79+
# - AppliedPolicies
80+
- ClusterMembershipPort # clusterPort : clusterMembershipPort
81+
- DatapathType # datapath_type : datapathType
82+
- DestIP # dest_ip : destIP
83+
- DestPort # dest_port : destPort
84+
- DefaultMTU # defaultMTU : defaultMtu
85+
- DisableTXChecksumOffload # disableTXChecksumOffload : disableTxChecksumOffload
86+
- DstMAC # dstMAC : dstMac
87+
- EgressDstRules # gressdstrules : egressDstRules
88+
- EnableNodeIPAM # enableNodeIPAM : enableNodeIpam
89+
- EventType # event_type : eventType
90+
- ExceptCIDRs # exceptCIDRs : exceptCidRs
91+
- ExtensionID # Id : extensionID
92+
- Extensions # Extensions : extensions
93+
- ExternalEntity # externalentity : externalEntity
94+
- ExternalEntitySpec # externalentityspec : externalEntitySpec
95+
- ExternalIds # external_ids : externalIds
96+
- ExternalIDs # external_ids : externalIDs
97+
- FlowID # flow_id : flowID
98+
- FQDNs # fqdns : fqdNs
99+
- IngressSrcRules # ingresssrcrules : ingressSrcRules
100+
- InInterface # in_iface : inInterface
101+
- IPPools # ippools : ipPools
102+
- IPs # ips : iPs
103+
- IPsec # ipsec : iPsec
104+
- IPsecCSRSignerConfig # ipsecCSRSigner : iPsecCsrSignerConfig
105+
- IPv6Header # 'ipv6Header : iPv6Header'
106+
- LastMeasuredRTTNanoseconds # lastMeasuredRTTNanoseconds : lastMeasuredRttNanoseconds
107+
- ListMeta # metadata : listMeta
108+
- LocalASN # localASN : localAsn
109+
- MaxIPFIXMsgSize # maxIPFIXMsgSize : maxIpfixMsgSize
110+
- McastSnoopingEnable # mcast_snooping_enable : mcastSnoopingEnable
111+
- MemberASNs # memberASNs : memberAsNs
112+
- Method # http_method : method
113+
- Nameservers # servers : nameservers
114+
- NodeCIDRMaskSizeIPv4 # nodeCIDRMaskSizeIPv4 : nodeCidrMaskSizeIPv4
115+
- NodeCIDRMaskSizeIPv6 # nodeCIDRMaskSizeIPv6 : nodeCidrMaskSizeIPv6
116+
- NodeIPAM # nodeIPAM : nodeIpam
117+
- NodeResults # results : nodeResults
118+
- NoSNAT # noSNAT : noSnat
119+
- ObjectMeta # metadata : objectMeta
120+
- OFPortRequest # ofport_request : ofPortRequest
121+
- PacketBytes # packet : packetBytes
122+
- PodCIDRs # podCIDRs : podCidRs
123+
- PodName # name' want 'podName
124+
- PolicyRef # policyref' want 'policyRef
125+
- Port # http_port : port
126+
- Protocol # proto : protocol
127+
- RawPrevResult # prevResult : rawPrevResult
128+
- RuleIndex # ruleindex : ruleIndex
129+
- Search # searches : search
130+
- SelfSignedCA # selfSignedCA : selfSignedCa
131+
- ServiceCIDR # serviceCIDR : serviceCidr
132+
- ServiceCIDRv6 # serviceCIDRv6 : serviceCidRv6
133+
- SrcIP # src_ip : srcIP
134+
- SrcPort # src_port : srcPort
135+
- TransportInterfaceCIDRs # transportInterfaceCIDRs : transportInterfaceCidR
136+
- TransportHeader # tranportHeader : transportHeader
137+
- TxID # tx_id : txID
138+
- UserAgent # http_user_agent : userAgent
139+
- WithIPFIXExporter # withIPFIXExporter : withIpfixExporter
120140

121141
use-field-name: true
122142
exclusions:

0 commit comments

Comments
 (0)