mirror of https://github.com/pulumi/pulumi.git
7e2ccd8757
The latest version of golangci-lint (1.60.3) flags a bunch of new issues in our code base. This PR addresses part of them ahead of the upgrade. * A dynamic string passed to printf style functions as first argument, this can lead to bad `%` interpolations. The fix is typically to use `"%s"` as first argument and pass the dynamic string as 2nd argument. * Using `os.ModePerm` in tests instead of more restricted file permissions. The fix is to use 0o600 for files, or 0o700 for directories. * Int conversion overflows. The fix has to be done case by case, checking that no overflow can occur. |
||
---|---|---|
.. | ||
gen_program_test | ||
doc.go | ||
doc_test.go | ||
embeddedUtilities.go | ||
gen.go | ||
gen_program.go | ||
gen_program_expression_test.go | ||
gen_program_expressions.go | ||
gen_program_inline_invoke.go | ||
gen_program_json.go | ||
gen_program_optionals.go | ||
gen_program_read_dir.go | ||
gen_program_splat.go | ||
gen_program_ternaries.go | ||
gen_program_test.go | ||
gen_program_utils.go | ||
gen_spill.go | ||
gen_test.go | ||
importer.go | ||
test.go | ||
utilities.go | ||
utilities_test.go |