mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-03-22 14:03:52 +00:00
fix: renovate config, and pre-commit linter (#30)
This commit is contained in:
14
.github/renovate.json
vendored
14
.github/renovate.json
vendored
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"github>ivuorinen/renovate-config",
|
"github>ivuorinen/renovate-config"
|
||||||
"config:recommended"
|
|
||||||
],
|
],
|
||||||
"labels": [
|
"labels": [
|
||||||
"dependencies"
|
"dependencies"
|
||||||
@@ -13,11 +12,10 @@
|
|||||||
"semanticCommitType": "chore",
|
"semanticCommitType": "chore",
|
||||||
"semanticCommitScope": "deps",
|
"semanticCommitScope": "deps",
|
||||||
"postUpdateOptions": [
|
"postUpdateOptions": [
|
||||||
"gomodTidy"
|
"gomodUpdateImportPaths"
|
||||||
],
|
],
|
||||||
"golang": {
|
"gomod": {
|
||||||
"enabled": true,
|
"enabled": true
|
||||||
"gomodUpdateImportPaths": true
|
|
||||||
},
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
@@ -48,10 +46,6 @@
|
|||||||
"groupName": "golang.org/x packages"
|
"groupName": "golang.org/x packages"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"schedule": [
|
|
||||||
"before 4am on monday"
|
|
||||||
],
|
|
||||||
"timezone": "UTC",
|
|
||||||
"prConcurrentLimit": 3,
|
"prConcurrentLimit": 3,
|
||||||
"prHourlyLimit": 2
|
"prHourlyLimit": 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,15 +76,15 @@ formatters:
|
|||||||
gofmt:
|
gofmt:
|
||||||
simplify: true
|
simplify: true
|
||||||
rewrite-rules:
|
rewrite-rules:
|
||||||
- pattern: 'interface{}'
|
- pattern: "interface{}"
|
||||||
replacement: 'any'
|
replacement: "any"
|
||||||
- pattern: 'a[b:len(a)]'
|
- pattern: "a[b:len(a)]"
|
||||||
replacement: 'a[b:]'
|
replacement: "a[b:]"
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes:
|
local-prefixes:
|
||||||
- github.com/ivuorinen/gh-action-readme
|
- github.com/ivuorinen/gh-action-readme
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
max-issues-per-linter: 50
|
max-issues-per-linter: 150
|
||||||
max-same-issues: 3
|
max-same-issues: 50
|
||||||
fix: true
|
fix: true
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ repos:
|
|||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
args: [--autofix, --no-sort-keys]
|
args: [--autofix, --no-sort-keys]
|
||||||
|
|
||||||
|
# Renovatebot pre-commit hooks
|
||||||
|
- repo: https://github.com/renovatebot/pre-commit-hooks
|
||||||
|
rev: 41.56.1
|
||||||
|
hooks:
|
||||||
|
- id: renovate-config-validator
|
||||||
|
|
||||||
# YAML formatting with yamlfmt (replaces yamllint for formatting)
|
# YAML formatting with yamlfmt (replaces yamllint for formatting)
|
||||||
- repo: https://github.com/google/yamlfmt
|
- repo: https://github.com/google/yamlfmt
|
||||||
rev: v0.17.2
|
rev: v0.17.2
|
||||||
@@ -37,7 +43,7 @@ repos:
|
|||||||
rev: v0.18.1
|
rev: v0.18.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: markdownlint-cli2
|
- id: markdownlint-cli2
|
||||||
exclude: '^testdata/'
|
exclude: "^testdata/"
|
||||||
|
|
||||||
# EditorConfig checking
|
# EditorConfig checking
|
||||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker
|
||||||
|
|||||||
Reference in New Issue
Block a user