Skip to content

Commit 8a2144a

Browse files
committed
Adds license info to src file headers and formats comments.
1 parent 2bdbca8 commit 8a2144a

File tree

99 files changed

+1652
-337
lines changed

Some content is hidden

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

99 files changed

+1652
-337
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ linters:
1717
- revive
1818
- unused
1919
- staticcheck
20+
- godot
2021

2122
linters-settings:
2223
gofmt:

LICENSE.txt renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The QuickFIX Software License, Version 1.0
22

3-
Copyright (c) 2001-2010 quickfixengine.org All rights
3+
Copyright (c) 2001- quickfixengine.org All rights
44
reserved.
55

66
Redistribution and use in source and binary forms, with or without

accepter_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Copyright (c) quickfixengine.org All rights reserved.
2+
//
3+
// This file may be distributed under the terms of the quickfixengine.org
4+
// license as defined by quickfixengine.org and appearing in the file
5+
// LICENSE included in the packaging of this file.
6+
//
7+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
8+
// THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
9+
// PARTICULAR PURPOSE.
10+
//
11+
// See http://www.quickfixengine.org/LICENSE for licensing information.
12+
//
13+
// Contact [email protected] if any conditions of this licensing
14+
// are not clear to you.
15+
116
package quickfix
217

318
import (

acceptor.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// Copyright (c) quickfixengine.org All rights reserved.
2+
//
3+
// This file may be distributed under the terms of the quickfixengine.org
4+
// license as defined by quickfixengine.org and appearing in the file
5+
// LICENSE included in the packaging of this file.
6+
//
7+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
8+
// THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
9+
// PARTICULAR PURPOSE.
10+
//
11+
// See http://www.quickfixengine.org/LICENSE for licensing information.
12+
//
13+
// Contact [email protected] if any conditions of this licensing
14+
// are not clear to you.
15+
116
package quickfix
217

318
import (

application.go

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
1+
// Copyright (c) quickfixengine.org All rights reserved.
2+
//
3+
// This file may be distributed under the terms of the quickfixengine.org
4+
// license as defined by quickfixengine.org and appearing in the file
5+
// LICENSE included in the packaging of this file.
6+
//
7+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
8+
// THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
9+
// PARTICULAR PURPOSE.
10+
//
11+
// See http://www.quickfixengine.org/LICENSE for licensing information.
12+
//
13+
// Contact [email protected] if any conditions of this licensing
14+
// are not clear to you.
15+
116
package quickfix
217

318
// Application interface should be implemented by FIX Applications.
419
// This is the primary interface for processing messages from a FIX Session.
520
type Application interface {
6-
//OnCreate notification of a session begin created.
21+
// OnCreate notification of a session begin created.
722
OnCreate(sessionID SessionID)
823

9-
//OnLogon notification of a session successfully logging on.
24+
// OnLogon notification of a session successfully logging on.
1025
OnLogon(sessionID SessionID)
1126

12-
//OnLogout notification of a session logging off or disconnecting.
27+
// OnLogout notification of a session logging off or disconnecting.
1328
OnLogout(sessionID SessionID)
1429

15-
//ToAdmin notification of admin message being sent to target.
30+
// ToAdmin notification of admin message being sent to target.
1631
ToAdmin(message *Message, sessionID SessionID)
1732

18-
//ToApp notification of app message being sent to target.
33+
// ToApp notification of app message being sent to target.
1934
ToApp(message *Message, sessionID SessionID) error
2035

21-
//FromAdmin notification of admin message being received from target.
36+
// FromAdmin notification of admin message being received from target.
2237
FromAdmin(message *Message, sessionID SessionID) MessageRejectError
2338

24-
//FromApp notification of app message being received from target.
39+
// FromApp notification of app message being received from target.
2540
FromApp(message *Message, sessionID SessionID) MessageRejectError
2641
}

begin_string.go

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
// Copyright (c) quickfixengine.org All rights reserved.
2+
//
3+
// This file may be distributed under the terms of the quickfixengine.org
4+
// license as defined by quickfixengine.org and appearing in the file
5+
// LICENSE included in the packaging of this file.
6+
//
7+
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
8+
// THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
9+
// PARTICULAR PURPOSE.
10+
//
11+
// See http://www.quickfixengine.org/LICENSE for licensing information.
12+
//
13+
// Contact [email protected] if any conditions of this licensing
14+
// are not clear to you.
15+
116
package quickfix
217

3-
// FIX BeginString string values
18+
// FIX BeginString string values.
419
const (
520
BeginStringFIX40 = "FIX.4.0"
621
BeginStringFIX41 = "FIX.4.1"

cmd/generate-fix/generate-fix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func main() {
164164
}
165165

166166
switch pkg {
167-
//uses fixt11 header/trailer
167+
// Uses fixt11 header/trailer.
168168
case "fix50", "fix50sp1", "fix50sp2":
169169
default:
170170
waitGroup.Add(1)

cmd/generate-fix/internal/globals.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var (
1414
GlobalFieldTypes []*datadictionary.FieldType
1515
)
1616

17-
//sort fieldtypes by name
17+
// Sort fieldtypes by name.
1818
type byFieldName []*datadictionary.FieldType
1919

2020
func (n byFieldName) Len() int { return len(n) }
@@ -36,14 +36,14 @@ func BuildGlobalFieldTypes(specs []*datadictionary.DataDictionary) {
3636
for _, spec := range specs {
3737
for _, field := range spec.FieldTypeByTag {
3838
if oldField, ok := globalFieldTypesLookup[field.Name()]; ok {
39-
//merge old enums with new
39+
// Merge old enums with new.
4040
if len(oldField.Enums) > 0 && field.Enums == nil {
4141
field.Enums = make(map[string]datadictionary.Enum)
4242
}
4343

4444
for enumVal, enum := range oldField.Enums {
4545
if _, ok := field.Enums[enumVal]; !ok {
46-
//Verify an existing enum doesn't have the same description. Keep newer enum
46+
// Verify an existing enum doesn't have the same description. Keep newer enum.
4747
okToKeepEnum := true
4848
for _, newEnum := range field.Enums {
4949
if newEnum.Description == enum.Description {

cmd/generate-fix/internal/template_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func routerBeginString(spec *datadictionary.DataDictionary) (routerBeginString s
306306
routerBeginString = "FIXT.1.1"
307307
case spec.Major != 5 && spec.ServicePack == 0:
308308
routerBeginString = fmt.Sprintf("FIX.%v.%v", spec.Major, spec.Minor)
309-
//ApplVerID enums
309+
// ApplVerID enums.
310310
case spec.Major == 2:
311311
routerBeginString = "0"
312312
case spec.Major == 3:

config/configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package config
22

3-
//NOTE: Additions to this file should be made to both config/doc.go and http://www.quickfixgo.org/docs/
3+
// NOTE: Additions to this file should be made to both config/doc.go and http://www.quickfixgo.org/docs/
44

5-
// Const configuration settings
5+
// Const configuration settings.
66
const (
77
BeginString string = "BeginString"
88
SenderCompID string = "SenderCompID"

0 commit comments

Comments
 (0)