Skip to content

Commit 14356ab

Browse files
committed
lint: Ran the linter and performed a little cleanup.
1 parent 0ee237a commit 14356ab

File tree

4 files changed

+25
-88
lines changed

4 files changed

+25
-88
lines changed

.github/dependabot.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
# To get started with Dependabot version updates, you'll need to specify which
23
# package ecosystems to update and where the package manifests are located.
34
# Please see the documentation for all configuration options:
45
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
56

67
version: 2
78
updates:
8-
- package-ecosystem: "gomod" # See documentation for possible values
9-
directory: "/" # Location of package manifests
9+
- package-ecosystem: gomod # See documentation for possible values
10+
directory: / # Location of package manifests
1011
schedule:
11-
interval: "weekly"
12+
interval: weekly

.github/workflows/scorecard.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# This workflow uses actions that are not certified by GitHub. They are provided
23
# by a third-party and are governed by separate terms of service, privacy
34
# policy, and support documentation.
@@ -10,9 +11,9 @@ on:
1011
# To guarantee Maintained check is occasionally updated. See
1112
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1213
schedule:
13-
- cron: '40 8 * * 5'
14+
- cron: 40 8 * * 5
1415
push:
15-
branches: [ "main" ]
16+
branches: [main]
1617

1718
# Declare default permissions as read only.
1819
permissions: read-all
@@ -31,12 +32,12 @@ jobs:
3132
# actions: read
3233

3334
steps:
34-
- name: "Checkout code"
35+
- name: Checkout code
3536
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
3637
with:
3738
persist-credentials: false
3839

39-
- name: "Run analysis"
40+
- name: Run analysis
4041
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
4142
with:
4243
results_file: results.sarif
@@ -58,15 +59,15 @@ jobs:
5859

5960
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6061
# format to the repository Actions tab.
61-
- name: "Upload artifact"
62+
- name: Upload artifact
6263
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
6364
with:
6465
name: SARIF file
6566
path: results.sarif
6667
retention-days: 5
6768

6869
# Upload the results to GitHub's code scanning dashboard.
69-
- name: "Upload to code-scanning"
70+
- name: Upload to code-scanning
7071
uses: github/codeql-action/upload-sarif@17573ee1cc1b9d061760f3a006fc4aac4f944fd5 # v2.2.4
7172
with:
7273
sarif_file: results.sarif

.github/workflows/snyk-security.yml

-79
This file was deleted.

generator/main.go

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2023, Ryan Parman
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package main
216

317
import (

0 commit comments

Comments
 (0)