Skip to content

Commit

Permalink
add .ct in current working-directory as config directory (#479)
Browse files Browse the repository at this point in the history
* add .ct in working as config directory

Signed-off-by: Quan TRAN <[email protected]>

* Update README.md

Signed-off-by: Quan TRAN <[email protected]>

Signed-off-by: Quan TRAN <[email protected]>
  • Loading branch information
itscaro authored Oct 11, 2022
1 parent e2f053c commit 3469841
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The following order of precedence applies:
1. Config file

Note that linting requires config file for [yamllint](https://github.com/adrienverge/yamllint) and [yamale](https://github.com/23andMe/Yamale).
If not specified, these files are search in the current directory, `$HOME/.ct`, and `/etc/ct`, in that order.
If not specified, these files are search in the current directory, the `.ct` directory in current directory, `$HOME/.ct`, and `/etc/ct`, in that order.
Samples are provided in the [etc](etc) folder.

### Examples
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
homeDir, _ = homedir.Dir()
configSearchLocations = []string{
".",
".ct",
filepath.Join(homeDir, ".ct"),
"/usr/local/etc/ct",
"/etc/ct",
Expand Down

0 comments on commit 3469841

Please sign in to comment.