Skip to content

Commit 5d744ac

Browse files
Merge pull request #94 from github/dependabot/github_actions/github-actions-278cee4d8a
Bump the github-actions group across 1 directory with 2 updates
2 parents 34f9f7c + 6e1a1d4 commit 5d744ac

File tree

7 files changed

+25
-35
lines changed

7 files changed

+25
-35
lines changed

.github/linters/.golangci.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,32 @@
1+
version: "2"
12
run:
2-
# Allow multiple directories to be analyzed
3-
allow-parallel-runners: true
4-
5-
# Add modules-download-mode
63
modules-download-mode: readonly
7-
8-
# Allow multiple packages
9-
allow-separate-packages: true
10-
114
tests: true
12-
13-
linters-settings:
14-
gosec:
15-
excludes:
16-
- G304 # File path provided as taint input
17-
18-
# Configure specific linters
5+
allow-parallel-runners: true
196
linters:
207
enable:
218
- bodyclose
229
- copyloopvar
2310
- durationcheck
2411
- gocritic
25-
- gofmt
2612
- gosec
2713
- govet
2814
- ineffassign
2915
- nilerr
3016
- revive
3117
- staticcheck
32-
33-
issues:
34-
exclude-use-default: false
35-
36-
# Include all subdirectories
37-
exclude-dirs-use-default:
38-
false
39-
40-
# If needed, explicitly specify which directories to analyze
41-
exclude-dirs:
42-
- vendor
18+
settings:
19+
gosec:
20+
excludes:
21+
- G304
22+
exclusions:
23+
generated: lax
24+
paths:
25+
- vendor
26+
formatters:
27+
enable:
28+
- gofmt
29+
exclusions:
30+
generated: lax
31+
paths:
32+
- vendor

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
go-version-file: go.mod
3030

3131
- name: Run Super-Linter
32-
uses: super-linter/super-linter/slim@4e8a7c2bf106c4c766c816b35ec612638dc9b6b2 # v7.3.0
32+
uses: super-linter/super-linter/slim@12150456a73e248bdc94d0794898f94e23127c88 # v7.4.0
3333
env:
3434
VALIDATE_ALL_CODEBASE: true
3535
DEFAULT_BRANCH: "main"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: cli/gh-extension-precompile@561b19deda1228a0edf856c3325df87416f8c9bd # v2.0.0
16+
- uses: cli/gh-extension-precompile@9e2237c30f869ad3bcaed6a4be2cd43564dd421b # v2.1.0
1717
with:
1818
release_android: true
1919
# For more information see: https://developer.android.com/tools/releases/platforms

internal/ascii/generator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ func getBlock(normalized float64, dayIdx, nonZeroIdx int) rune {
160160
return blockSets["foundation"][blockType]
161161
}
162162

163-
switch {
164-
case dayIdx == nonZeroIdx-1: // Top block
163+
switch dayIdx {
164+
case nonZeroIdx - 1: // Top block
165165
return blockSets["top"][blockType]
166-
case dayIdx == 0: // Bottom block
166+
case 0: // Bottom block
167167
return blockSets["foundation"][blockType]
168168
default: // Middle blocks
169169
return blockSets["middle"][blockType]

internal/types/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package types
1+
package types //nolint:revive // package name is appropriate for this internal module
22

33
import (
44
"encoding/json"

internal/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package utils are utility functions for the GitHub Skyline project
2-
package utils
2+
package utils //nolint:revive // package name is appropriate for this internal module
33

44
import (
55
"fmt"

internal/utils/utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package utils
1+
package utils //nolint:revive // package name is appropriate for this internal module
22

33
import "testing"
44

0 commit comments

Comments
 (0)