You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
- decorder # check declaration order and count of types, constants, variables and functions [fast: true, auto-fix: false]
13
7
- dogsled # Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()) [fast: true, auto-fix: false]
14
8
- durationcheck # check for two durations multiplied together [fast: false, auto-fix: false]
15
9
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false, auto-fix: false]
16
10
- errchkjson # Checks types passed to the json encoding functions. Reports unsupported types and optionally reports occasions, where the check for the returned error can be omitted. [fast: false, auto-fix: false]
17
11
- errname # Checks that sentinel errors are prefixed with the `Err` and error types are suffixed with the `Error`. [fast: false, auto-fix: false]
18
-
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds [fast: false, auto-fix: false]
19
-
- exportloopref # checks for pointers to enclosing loop variables [fast: false, auto-fix: false]
12
+
- copyloopvar # Checks for loop variables that are used in a closure [fast: true, auto-fix: false]
- gci # Gci controls golang package import order and makes it always deterministic. [fast: true, auto-fix: false]
22
-
- goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
23
15
- gocritic # Provides diagnostics that check for bugs, performance and style issues. [fast: false, auto-fix: false]
24
16
- gocyclo # Computes and checks the cyclomatic complexity of functions [fast: true, auto-fix: false]
25
17
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification [fast: true, auto-fix: true]
26
18
- goheader # Checks is file header matches to pattern [fast: true, auto-fix: false]
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt. [fast: true, auto-fix: true]
29
20
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod. [fast: true, auto-fix: false]
30
21
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations. [fast: true, auto-fix: false]
31
22
- goprintffuncname # Checks that printf-like functions are named with `f` at the end [fast: true, auto-fix: false]
- gosimple #(megacheck): Linter for Go source code that specializes in simplifying a code [fast: false, auto-fix: false]
34
25
- govet #(vet, vetshadow): Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string [fast: false, auto-fix: false]
35
26
- grouper # An analyzer to analyze expression groups. [fast: true, auto-fix: false]
36
-
- ifshort # Checks that your code uses short syntax for if-statements whenever possible [fast: true, auto-fix: false]
- whitespace # Tool for detection of leading and trailing whitespace [fast: true, auto-fix: true]
48
+
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
49
+
- nilnil # Checks that there is no simultaneous return of `nil` error and an invalid value. [fast: false, auto-fix: false]
50
+
- godot # Check if comments end in a period [fast: true, auto-fix: true]
51
+
- unused #(megacheck): Checks Go code for unused constants, variables, functions and types [fast: false, auto-fix: false]
52
+
- unparam # reports unused function parameters
53
+
- staticcheck #(megacheck): Staticcheck is a go vet on steroids, applying a ton of static analysis checks [fast: false, auto-fix: false]
54
+
- bodyclose # checks whether HTTP response body is closed successfully
55
+
- goconst # Finds repeated strings that could be replaced by a constant [fast: true, auto-fix: false]
61
56
62
57
disable:
63
-
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
- nakedret # Finds naked returns in functions greater than a specified function length [fast: true, auto-fix: false]
60
+
- depguard # Go linter that checks if package imports are in a list of acceptable packages [fast: true, auto-fix: false]
61
+
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt. [fast: true, auto-fix: true]
65
62
- containedctx # containedctx is a linter that detects struct contained context.Context field [fast: true, auto-fix: false]
66
63
- thelper # thelper detects golang test helpers without t.Helper() call and checks the consistency of test helpers [fast: false, auto-fix: false]
67
64
- cyclop # checks function and package cyclomatic complexity [fast: false, auto-fix: false]
68
-
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13. [fast: false, auto-fix: false]
Description: "The `value` must be contained in the VM name.",
34
+
},
35
+
{
36
+
Value: "STARTS_WITH",
37
+
Description: "The VM name must start with the `value`.",
38
+
},
39
+
{
40
+
Value: "ENDS_WITH",
41
+
Description: "The VM name must end with the `value`.",
42
+
},
43
+
{
44
+
Value: "EQUALS",
45
+
Description: "The VM name must be equal to the `value`.",
46
+
},
47
+
}
48
+
}()...),
49
+
},
50
+
},
51
+
```
52
+
53
+
## Description and Markdown description
54
+
55
+
* **Description:**
56
+
If the value of attribute <.type is "VM_NAME" the allowed values are : "CONTAINS" (The `value` must be contained in the VM name.), "STARTS_WITH" (The VM name must start with the `value`.), "ENDS_WITH" (The VM name must end with the `value`.), "EQUALS" (The VM name must be equal to the `value`.)
Copy file name to clipboardExpand all lines: docs/int64validator/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ import (
18
18
-[`NullIfAttributeIsOneOf`](../common/null_if_attribute_is_one_of.md) - This validator is used to verify the attribute value is null if another attribute is one of the given values.
19
19
-[`NullIfAttributeIsSet`](../common/null_if_attribute_is_set.md) - This validator is used to verify the attribute value is null if another attribute is set.
20
20
-[`OneOfWithDescription`](oneofwithdescription.md) - This validator is used to check if the string is one of the given values and format the description and the markdown description.
21
+
-[`OneOfWithDescriptionIfAttributeIsOneOf`](../common/oneofwithdescriptionifattributeisoneof.md) - This validator is used to check if the string is one of the given values if the attribute is one of and format the description and the markdown description.
21
22
-[`AttributeIsDivisibleByAnInteger`](attribute_is_divisible_by_an_integer.md) - This validator is used to validate that the attribute is divisible by an integer.
22
23
-[`ZeroRemainder`](zero_remainder.md) - This validator checks if the configured attribute is divisible by a specified integer X, and has zero remainder.
Copy file name to clipboardExpand all lines: docs/stringvalidator/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ import (
18
18
-[`NullIfAttributeIsOneOf`](../common/null_if_attribute_is_one_of.md) - This validator is used to verify the attribute value is null if another attribute is one of the given values.
19
19
-[`NullIfAttributeIsSet`](../common/null_if_attribute_is_set.md) - This validator is used to verify the attribute value is null if another attribute is set.
20
20
-[`OneOfWithDescription`](oneofwithdescription.md) - This validator is used to check if the string is one of the given values and format the description and the markdown description.
21
+
-[`OneOfWithDescriptionIfAttributeIsOneOf`](../common/oneofwithdescriptionifattributeisoneof.md) - This validator is used to check if the string is one of the given values if the attribute is one of and format the description and the markdown description.
0 commit comments