@@ -25,13 +25,13 @@ func TestXDGConfigDirIsPreferredFirst(t *testing.T) {
2525
2626 xdgDirPath := filepath .FromSlash ("/tmp-iofs/xdg/config" )
2727 homeDirPath := filepath .FromSlash ("/tmp-iofs/home/tester" )
28- AppFs .MkdirAll (xdgDirPath , 0755 )
29- AppFs .MkdirAll (homeDirPath , 0755 )
28+ AppFs .MkdirAll (xdgDirPath , 0o755 )
29+ AppFs .MkdirAll (homeDirPath , 0o755 )
3030
31- afero .WriteFile (AppFs , filepath .Join (xdgDirPath , "revive.toml" ), []byte ("\n " ), 0644 )
31+ afero .WriteFile (AppFs , filepath .Join (xdgDirPath , "revive.toml" ), []byte ("\n " ), 0o644 )
3232 t .Setenv ("XDG_CONFIG_HOME" , xdgDirPath )
3333
34- afero .WriteFile (AppFs , filepath .Join (homeDirPath , "revive.toml" ), []byte ("\n " ), 0644 )
34+ afero .WriteFile (AppFs , filepath .Join (homeDirPath , "revive.toml" ), []byte ("\n " ), 0o644 )
3535 setHome (t , homeDirPath )
3636
3737 got := buildDefaultConfigPath ()
@@ -45,9 +45,9 @@ func TestXDGConfigDirIsPreferredFirst(t *testing.T) {
4545func TestHomeConfigDir (t * testing.T ) {
4646 t .Cleanup (func () { AppFs = afero .NewMemMapFs () })
4747 homeDirPath := filepath .FromSlash ("/tmp-iofs/home/tester" )
48- AppFs .MkdirAll (homeDirPath , 0755 )
48+ AppFs .MkdirAll (homeDirPath , 0o755 )
4949
50- afero .WriteFile (AppFs , filepath .Join (homeDirPath , "revive.toml" ), []byte ("\n " ), 0644 )
50+ afero .WriteFile (AppFs , filepath .Join (homeDirPath , "revive.toml" ), []byte ("\n " ), 0o644 )
5151 setHome (t , homeDirPath )
5252
5353 got := buildDefaultConfigPath ()
@@ -69,9 +69,9 @@ func setHome(t *testing.T, dir string) {
6969func TestXDGConfigDir (t * testing.T ) {
7070 t .Cleanup (func () { AppFs = afero .NewMemMapFs () })
7171 xdgDirPath := filepath .FromSlash ("/tmp-iofs/xdg/config" )
72- AppFs .MkdirAll (xdgDirPath , 0755 )
72+ AppFs .MkdirAll (xdgDirPath , 0o755 )
7373
74- afero .WriteFile (AppFs , filepath .Join (xdgDirPath , "revive.toml" ), []byte ("\n " ), 0644 )
74+ afero .WriteFile (AppFs , filepath .Join (xdgDirPath , "revive.toml" ), []byte ("\n " ), 0o644 )
7575 t .Setenv ("XDG_CONFIG_HOME" , xdgDirPath )
7676
7777 got := buildDefaultConfigPath ()
0 commit comments