Skip to content

Commit

Permalink
Update README.md and golangci-lint workflow (#41)
Browse files Browse the repository at this point in the history
* Update README.md

* Update linter workflow
  • Loading branch information
joohoi authored Nov 2, 2022
1 parent 360169a commit 96fb2e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ trusted party has claimed the scope name in the public repositories.
## Usage
```
Usage:
./confused [-l LANGUAGENAME] depfilename.ext
confused [-l LANGUAGENAME] depfilename.ext
Usage of ./confused:
Usage of confused:
-l string
Package repository system. Possible values: "pip", "npm", "composer", "mvn" (default "npm")
Package repository system. Possible values: "pip", "npm", "composer", "mvn", "rubygems" (default "npm")
-s string
Comma-separated list of known-secure namespaces. Supports wildcards
-v Verbose output
Expand Down Expand Up @@ -80,7 +80,6 @@ Issues found, the following packages are not available in public package reposit
[!] internal_package1
```


### Maven (mvn)
```
./confused -l mvn pom.xml
Expand All @@ -91,3 +90,14 @@ Issues found, the following packages are not available in public package reposit
[!] internal/_package2
```

### Ruby (rubygems)
```
./confused -l rubygems Gemfile.lock
Issues found, the following packages are not available in public package repositories:
[!] internal
[!] internal/package1
[!] internal/_package2
```

0 comments on commit 96fb2e4

Please sign in to comment.