Skip to content

Files

Latest commit

 

History

History
22 lines (13 loc) · 787 Bytes

var-naming.md

File metadata and controls

22 lines (13 loc) · 787 Bytes

Pattern: Inconsistent var name

Issue: -

Description

This rule warns when initialism, variable or package naming conventions are not followed.

Configuration

This rule accepts two slices of strings, a whitelist and a blacklist of initialisms. By default, the rule behaves exactly as the alternative in golint but optionally, you can relax it (see golint/lint/issues/89).

Example:

[rule.var-naming]
  arguments = [["ID"], ["VM"]]

Further Reading