-
Notifications
You must be signed in to change notification settings - Fork 158
/
doc.go
47 lines (30 loc) · 1.62 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
Package actionlint is the implementation of actionlint linter. It's a static checker for GitHub
Actions workflow files.
https://github.com/rhysd/actionlint
actionlint is a command line tool but it also provides Go API for Go programs. It includes a
workflow file parser built on top of go-yaml/yaml, lexer/parser/checker for expressions embedded by
${{ }} placeholder, popular actions data, available contexts information, etc.
To run the linter, Linter is the struct which manages the entire linter lifecycle. Please see the
first example.
actionlint also provides the flexibility to add your own rules by implementing Rule interface.
Please read the YourOwnRule example.
# Library versioning
The version is for the command line tool. So it does not represent the version of the library. It
means that the library does not follow semantic versioning and any patch version bump may introduce
some breaking changes.
# Go version compatibility
Minimum supported Go version is written in go.mod file in this library. That said, older Go versions
are actually not tested on CI. Last two major Go versions are recommended because they're tested on
CI. For example, when the latest Go version is v1.22, v1.21 and v1.22 are nice to use.
https://github.com/rhysd/actionlint/blob/main/go.mod
# Other documentations
All documentations for actionlint can be found in the following page.
https://github.com/rhysd/actionlint/tree/main/docs
# License
This library is provided under the MIT license.
> Copyright (c) 2021 rhysd
Full text can be found in the following page.
https://github.com/rhysd/actionlint/blob/main/LICENSE.txt
*/
package actionlint