Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: check unstaged files during ci lint#15120

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 1 commit intomainfromethan/lint-ci
Oct 17, 2024
Merged

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedOct 17, 2024
edited
Loading

golangci-lint run makes changes to files for trivial lints, such as import ordering, but CI doesn't currently check for these changes like it does forfmt andgen. It might be possible to havegolangci-lint return an error when it makes a change, but that would only be for Go, and it seems sensible to have it be language agnostic.

There's perhaps an argument to be made (at least in my head) thatlint shouldn't be making changes, only raising warnings/errors, but that's not whatgolangci-lint has decided.

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@ethanndickson and the rest of your teammates onGraphiteGraphite

Copy link

@cdr-botcdr-botbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@@ -223,6 +223,12 @@ jobs:
./actionlint -color -shellcheck= -ignore "set-output"
shell: bash

- name: Check for unstaged files
run: |
rm -f ./actionlint ./typos
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thetypos action we use doesn't let you modify the binary install directory to anything other than the current directory (Is there a good reason why?)

@ethanndicksonethanndickson marked this pull request as ready for reviewOctober 17, 2024 05:32
@ethanndicksonethanndicksonenabled auto-merge (squash)October 17, 2024 05:32
@ethanndicksonethanndickson merged commit46cce33 intomainOct 17, 2024
36 checks passed
@ethanndicksonethanndickson deleted the ethan/lint-ci branchOctober 17, 2024 05:37
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@cdr-botcdr-bot[bot]cdr-bot[bot] approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@ethanndickson

[8]ページ先頭

©2009-2025 Movatter.jp