mirror of
https://github.com/ivuorinen/gh-action-readme.git
synced 2026-01-26 03:04:10 +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",
|
||||
"extends": [
|
||||
"github>ivuorinen/renovate-config",
|
||||
"config:recommended"
|
||||
"github>ivuorinen/renovate-config"
|
||||
],
|
||||
"labels": [
|
||||
"dependencies"
|
||||
@@ -13,11 +12,10 @@
|
||||
"semanticCommitType": "chore",
|
||||
"semanticCommitScope": "deps",
|
||||
"postUpdateOptions": [
|
||||
"gomodTidy"
|
||||
"gomodUpdateImportPaths"
|
||||
],
|
||||
"golang": {
|
||||
"enabled": true,
|
||||
"gomodUpdateImportPaths": true
|
||||
"gomod": {
|
||||
"enabled": true
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
@@ -48,10 +46,6 @@
|
||||
"groupName": "golang.org/x packages"
|
||||
}
|
||||
],
|
||||
"schedule": [
|
||||
"before 4am on monday"
|
||||
],
|
||||
"timezone": "UTC",
|
||||
"prConcurrentLimit": 3,
|
||||
"prHourlyLimit": 2
|
||||
}
|
||||
|
||||
@@ -76,15 +76,15 @@ formatters:
|
||||
gofmt:
|
||||
simplify: true
|
||||
rewrite-rules:
|
||||
- pattern: 'interface{}'
|
||||
replacement: 'any'
|
||||
- pattern: 'a[b:len(a)]'
|
||||
replacement: 'a[b:]'
|
||||
- pattern: "interface{}"
|
||||
replacement: "any"
|
||||
- pattern: "a[b:len(a)]"
|
||||
replacement: "a[b:]"
|
||||
goimports:
|
||||
local-prefixes:
|
||||
- github.com/ivuorinen/gh-action-readme
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 50
|
||||
max-same-issues: 3
|
||||
max-issues-per-linter: 150
|
||||
max-same-issues: 50
|
||||
fix: true
|
||||
|
||||
@@ -25,6 +25,12 @@ repos:
|
||||
- id: pretty-format-json
|
||||
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)
|
||||
- repo: https://github.com/google/yamlfmt
|
||||
rev: v0.17.2
|
||||
@@ -37,7 +43,7 @@ repos:
|
||||
rev: v0.18.1
|
||||
hooks:
|
||||
- id: markdownlint-cli2
|
||||
exclude: '^testdata/'
|
||||
exclude: "^testdata/"
|
||||
|
||||
# EditorConfig checking
|
||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker
|
||||
|
||||
Reference in New Issue
Block a user