Skip to content

Commit c6b178d

Browse files
committed
chore: auto-format non-go files.
1 parent b4160e1 commit c6b178d

File tree

4 files changed

+66
-69
lines changed

4 files changed

+66
-69
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

.github/workflows/codeql-analysis.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ main ]
16+
branches: [main]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ main ]
19+
branches: [main]
2020
schedule:
21-
- cron: '35 16 * * 1'
21+
- cron: "35 16 * * 1"
2222

2323
jobs:
2424
analyze:
@@ -32,39 +32,39 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'go' ]
35+
language: ["go"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
#- run: |
66+
# make bootstrap
67+
# make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v2

.github/workflows/go.yml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
11
name: Go
22
on: [push]
33
jobs:
4-
54
build:
65
name: Build
76
runs-on: ubuntu-latest
87
steps:
8+
- name: Set up Go 1.17
9+
uses: actions/setup-go@v1
10+
with:
11+
go-version: 1.17
12+
id: go
913

10-
- name: Set up Go 1.17
11-
uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.17
14-
id: go
15-
16-
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v1
14+
- name: Check out code into the Go module directory
15+
uses: actions/checkout@v1
1816

19-
- name: Get dependencies
20-
run: go get -v -t -d ./...
17+
- name: Get dependencies
18+
run: go get -v -t -d ./...
2119

22-
- name: Build
23-
run: go build -v .
20+
- name: Build
21+
run: go build -v .
2422

25-
- name: Test (race)
26-
run: go test -race -v -coverprofile=profile.cov -covermode=atomic ./...
23+
- name: Test (race)
24+
run: go test -race -v -coverprofile=profile.cov -covermode=atomic ./...
2725

28-
- name: Coverage
29-
uses: shogo82148/actions-goveralls@v1
30-
with:
31-
path-to-profile: profile.cov
26+
- name: Coverage
27+
uses: shogo82148/actions-goveralls@v1
28+
with:
29+
path-to-profile: profile.cov
3230

33-
- name: Install Linter
34-
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.2
31+
- name: Install Linter
32+
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.2
3533

36-
- name: Lint
37-
run: ./bin/golangci-lint run .
34+
- name: Lint
35+
run: ./bin/golangci-lint run .

.golangci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ linters-settings:
6666
min-occurrences: 3
6767

6868
# packages-with-error-messages:
69-
# specify an error message to output when a blacklisted package is used
70-
# github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
69+
# specify an error message to output when a blacklisted package is used
70+
# github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
7171
misspell:
7272
# Correct spellings using locale preferences for US or UK.
7373
# Default is to use a neutral variety of English.
@@ -140,7 +140,7 @@ linters-settings:
140140
max-blank-identifiers: 2
141141

142142
whitespace:
143-
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
143+
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
144144
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
145145

146146
linters:
@@ -168,7 +168,6 @@ linters:
168168
- unused
169169
fast: false
170170

171-
172171
issues:
173172
# Excluding configuration per-path, per-linter, per-text and per-source
174173
exclude-rules:

0 commit comments

Comments
 (0)