Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter - Included linter check for doc rules #148

Merged

Conversation

naveensrinivasan
Copy link
Contributor

Sigstore being a library it helps a lot to follow guidelines on comments.

golint has been deprecated and revive is the replacement for golint. https://revive.run/docs

# EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
- exported (.+) should have comment( \(or a comment on this block\))? or be unexported

# EXC0013 revive: Annoying issue about not having a comment. The rare codebase has such comments
- package comment should be of the form "(.+)...

# EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments
- comment on exported (.+) should be of the form "(.+)..."

# EXC0015 revive: Annoying issue about not having a comment. The rare codebase has such comments
- should have a package comment, unless it's in another file for this package

@cpanato
Copy link
Member

cpanato commented Nov 17, 2021

@naveensrinivasan please sign the dco :)

@naveensrinivasan
Copy link
Contributor Author

@naveensrinivasan please sign the dco :)

One of the most annoying things of contributing to sigstore. :)

Sigstore being a library it helps a lot to follow guidelines on
comments.

golint has been deprecated and revive is the replacement for golint. https://revive.run/docs

 ```
 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
 - exported (.+) should have comment( \(or a comment on this block\))? or be unexported

 # EXC0013 revive: Annoying issue about not having a comment. The rare codebase has such comments
 - package comment should be of the form "(.+)...

 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments
 - comment on exported (.+) should be of the form "(.+)..."

 # EXC0015 revive: Annoying issue about not having a comment. The rare codebase has such comments
 - should have a package comment, unless it's in another file for this package
```

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
@bobcallaway bobcallaway merged commit d79ad25 into sigstore:main Nov 17, 2021
@naveensrinivasan naveensrinivasan deleted the naveen/feat/linter-comments branch November 17, 2021 16:58
mtrmac pushed a commit to mtrmac/sigstore that referenced this pull request Mar 10, 2023
In lack of a proper examples field, using ffcli's LongHelp to render some extra
fields to make commands more usable.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants