Skip to content

Commit 669c302

Browse files
ci: bump repository configuration from template-refs/heads/test/pre-commit-linter (#185)
* ci: common template rollout changes * style: pre-commit run --all-files
1 parent 44ee809 commit 669c302

24 files changed

+99
-76
lines changed

.addonmatrix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--splunkfeatures METRICS_MULTI,PYTHON3
1+
--splunkfeatures METRICS_MULTI,PYTHON3

.eslintrc.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
env:
3+
browser: true
4+
es6: true
5+
jest: true
6+
7+
globals:
8+
Atomics: readonly
9+
SharedArrayBuffer: readonly
10+
11+
parser: '@typescript-eslint/parser'
12+
parserOptions:
13+
ecmaVersion: 2018
14+
sourceType: module
15+
16+
plugins:
17+
- '@typescript-eslint'
18+
19+
rules: { }

.github/workflows/build-test-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
tags:
88
- "v[0-9]+.[0-9]+.[0-9]+"
99
pull_request:
10-
branches:
10+
branches:
1111
- "**"
1212

1313
jobs:
1414
call-workflow:
15-
uses: splunk/addonfactory-workflow-addon-release/.github/workflows/reusable-build-test-release.yml@v1.7
15+
uses: splunk/addonfactory-workflow-addon-release/.github/workflows/reusable-build-test-release.yml@v2.0
1616
secrets:
1717
GH_TOKEN_ADMIN: ${{ secrets.GH_TOKEN_ADMIN }}
1818
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-manual.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: publish-untested
2-
on:
2+
on:
33
workflow_dispatch:
44
inputs:
55
tag:
6-
description: 'Tag to release'
6+
description: 'Tag to release'
77
required: true
88

99
jobs:

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.2.0
4+
hooks:
5+
- id: check-merge-conflict
6+
- id: debug-statements
7+
- id: trailing-whitespace
8+
- id: check-yaml
9+
- id: check-xml
10+
- id: check-toml
11+
- id: check-json
12+
- id: end-of-file-fixer
13+
- repo: https://github.com/psf/black
14+
rev: 22.3.0
15+
hooks:
16+
- id: black
17+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
18+
rev: v2.4.0
19+
hooks:
20+
- id: pretty-format-java
21+
args: [ --autofix ]
22+
- repo: https://github.com/eslint/eslint
23+
rev: v8.21.0
24+
hooks:
25+
- id: eslint
26+
additional_dependencies:
27+
- "@typescript-eslint/parser"
28+
- "@typescript-eslint/eslint-plugin"

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"assets": ["THIRDPARTY"],
3131
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
3232
},
33-
],
33+
],
3434
["@semantic-release/github", {}],
3535
]
3636
}

.reuse/dep5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ License: LicenseRef-Splunk-8-2021
5151

5252
Files: README*
5353
Copyright: $YEAR $NAME <$CONTACT>
54-
License: LicenseRef-Splunk-8-2021
54+
License: LicenseRef-Splunk-8-2021

.semgrepignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ tests/
2727
.github/
2828
.reuse/
2929
.vscode/
30-
deps/
30+
deps/

.vscode/extensions.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)