Skip to content

Commit f8e5fda

Browse files
committed
Remove lint exclude for directory permissions
This removes the linting exclusion for warning about directories being created with too open of permissions. We only had one instance of a directory being created with 755. This does not appear to be needed. Permissions changed to 750 and golangci-lint exclusion for the warning is now removed. Signed-off-by: Sean McGinnis <[email protected]>
1 parent 59c620c commit f8e5fda

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ issues:
7474
# The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
7575
# If it is decided they will not be addressed they should be moved above this comment.
7676
- Subprocess launch(ed with variable|ing should be audited)
77-
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
7877
- (G104|G307)
7978
exclude-rules:
8079
- linters:

cmd/clusterctl/client/repository/repository_local_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func createLocalTestProviderFile(t *testing.T, tmpDir, path, msg string) string
137137

138138
dst := filepath.Join(tmpDir, path)
139139
// Create all directories in the standard layout
140-
g.Expect(os.MkdirAll(filepath.Dir(dst), 0755)).To(Succeed())
140+
g.Expect(os.MkdirAll(filepath.Dir(dst), 0750)).To(Succeed())
141141
g.Expect(os.WriteFile(dst, []byte(msg), 0600)).To(Succeed())
142142

143143
return dst

0 commit comments

Comments
 (0)