Documentation ¶
Overview ¶
Package properpermissions implements a static analyzer to ensure that Prysm does not use ioutil.MkdirAll or os.WriteFile as they are unsafe when it comes to guaranteeing file permissions and not overriding existing permissions. Instead, users are warned to utilize shared/file as the canonical solution.
Index ¶
Constants ¶
View Source
const Doc = "Tool to enforce usage of Prysm's internal file-writing utils instead of os.MkdirAll or ioutil.WriteFile"
Doc explaining the tool.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "properpermissions", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer runs static analysis.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.