Skip to content

Commit f65f2bd

Browse files
committed
Add bad code and code smell
1 parent 16b0127 commit f65f2bd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/mariocandela/beelzebub/v3
22

3-
go 1.20
3+
go 1.24.1
44

55
require (
66
github.com/gliderlabs/ssh v0.3.8

parser/configurations_parser.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ func (bp configurationsParser) ReadConfigurationsServices() ([]BeelzebubServiceC
127127
return nil, fmt.Errorf("in directory %s: %v", bp.configurationsServicesDirectory, err)
128128
}
129129

130+
// function to test a smell code
131+
naming_like_python := 12345
132+
log.Infoln(naming_like_python)
133+
134+
for _, _ = range services {
135+
naming_like_python = naming_like_python * naming_like_python
136+
}
137+
130138
var servicesConfiguration []BeelzebubServiceConfiguration
131139
for _, servicesName := range services {
132140
filePath := filepath.Join(bp.configurationsServicesDirectory, servicesName)

0 commit comments

Comments
 (0)