Skip to content

Commit 96fb2e4

Browse files
authored
Update README.md and golangci-lint workflow (#41)
* Update README.md * Update linter workflow
1 parent 360169a commit 96fb2e4

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,12 @@ jobs:
1111
name: lint
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: 1.17
17+
- uses: actions/checkout@v3
1518
- name: golangci-lint
16-
uses: golangci/golangci-lint-action@v2
19+
uses: golangci/golangci-lint-action@v3
1720
with:
18-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
19-
version: v1.29
20-
21-
# Optional: working directory, useful for monorepos
22-
# working-directory: somedir
23-
24-
# Optional: golangci-lint command line arguments.
25-
# args: --issues-exit-code=0
26-
27-
# Optional: show only new issues if it's a pull request. The default value is `false`.
28-
# only-new-issues: true
21+
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
22+
version: latest

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ trusted party has claimed the scope name in the public repositories.
4242
## Usage
4343
```
4444
Usage:
45-
./confused [-l LANGUAGENAME] depfilename.ext
45+
confused [-l LANGUAGENAME] depfilename.ext
4646
47-
Usage of ./confused:
47+
Usage of confused:
4848
-l string
49-
Package repository system. Possible values: "pip", "npm", "composer", "mvn" (default "npm")
49+
Package repository system. Possible values: "pip", "npm", "composer", "mvn", "rubygems" (default "npm")
5050
-s string
5151
Comma-separated list of known-secure namespaces. Supports wildcards
5252
-v Verbose output
@@ -80,7 +80,6 @@ Issues found, the following packages are not available in public package reposit
8080
[!] internal_package1
8181
```
8282

83-
8483
### Maven (mvn)
8584
```
8685
./confused -l mvn pom.xml
@@ -91,3 +90,14 @@ Issues found, the following packages are not available in public package reposit
9190
[!] internal/_package2
9291
9392
```
93+
94+
### Ruby (rubygems)
95+
```
96+
./confused -l rubygems Gemfile.lock
97+
98+
Issues found, the following packages are not available in public package repositories:
99+
[!] internal
100+
[!] internal/package1
101+
[!] internal/_package2
102+
103+
```

0 commit comments

Comments
 (0)