Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/src/github.com/aws/aws…
Browse files Browse the repository at this point in the history
…-sdk-go-1.50.15
  • Loading branch information
cjlapao authored Feb 13, 2024
2 parents 0df0543 + 0a121de commit a61a904
Show file tree
Hide file tree
Showing 27 changed files with 1,037 additions and 88 deletions.
27 changes: 27 additions & 0 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
labelPRBasedOnFilePath:
documentation:
- docs/**/*
- README.md
- CONTRIBUTING.md
- CHANGELOG.md
- CODE_OF_CONDUCT.md

test:
- pkg/**/*_test.go
triage:
- "pkg/**/*"
- "test/**/"
- "docs/**/*"
community contribution:
- "pkg/**/*"
- "test/**/*"
- "docs/**/*"

firstPRWelcomeComment: >
Thanks for opening this pull request! Please check out our contributing guidelines.
firstPRMergeComment: >
Awesome work, congrats on your first merged pull request!
firstIssueWelcomeComment: >
Thanks for opening your first issue here! Be sure to follow the issue template!
19 changes: 12 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/src" # Location of package manifests
- package-ecosystem: "gomod"
allow:
- dependency-name: "github.com/dependabot-test/go-modules-public"
dependency-type: "all"
timezone: "Europe/Amsterdam"
update-types: ["security", "dependencies"]
insecure-external-code-execution: "allow"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
70 changes: 70 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
#############################
#############################
## JavaScript Linter rules ##
#############################
#############################

############
# Env Vars #
############
env:
browser: true
es6: true
jest: true

###############
# Global Vars #
###############
globals:
Atomics: readonly
SharedArrayBuffer: readonly

ignorePatterns:
- "!.*"
- "**/node_modules/.*"

###############
# Parser vars #
###############
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2018
sourceType: module

###########
# Plugins #
###########
plugins:
- '@typescript-eslint'

#########
# Rules #
#########
rules: {
"jsonc/no-comments": 'off',
}

##############################
# Overrides for JSON parsing #
##############################
overrides:

# JSONC files
- files:
- "*.jsonc"
extends:
- plugin:jsonc/recommended-with-jsonc
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSONC
comments: false

# JSON5 files
- files:
- "*.json5"
extends:
- plugin:jsonc/recommended-with-json5
parser: jsonc-eslint-parser
parserOptions:
jsonSyntax: JSON5
7 changes: 7 additions & 0 deletions .github/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

title = "gitleaks config"

[extend]
# useDefault will extend the base configuration with the default gitleaks config:
# https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml
useDefault = true
114 changes: 114 additions & 0 deletions .github/linters/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
---
#########################
#########################
## Golang Linter rules ##
#########################
#########################

# configure golangci-lint
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
issues:
exclude-rules:
- path: .*_test\.go
linters:
- dupl
- gosec
- goconst
linters:
disable-all: true
enable:
- bodyclose
- dogsled
- errcheck
- funlen
- gocognit
- goconst
- gocritic
- goimports
- revive
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- staticcheck
- nestif
- typecheck
- unconvert
- unparam
- whitespace
fast: true
linters-settings:
errcheck:
check-type-assertions: true
gocognit:
min-complexity: 30
goconst:
min-len: 3
min-occurrences: 3
gocritic:
enabled-checks:
- appendCombine
- badCall
- badCond
- boolExprSimplify
- codegenComment
- commentFormatting
- commentedOutCode
- deprecatedComment
- dupImport
- emptyFallthrough
- emptyStringTest
- equalFold
- evalOrder
- exitAfterDefer
- flagName
- hexLiteral
- indexAlloc
- initClause
- methodExprCall
- nestingReduce
- newDeref
- nilValReturn
- offBy1
- ptrToRefParam
- rangeExprCopy
- regexpPattern
- sloppyReassign
- stringXbytes
- truncateCmp
- typeAssertChain
- typeUnparen
- underef
- unnecessaryBlock
- valSwap
- weakCond
- wrapperFunc
- yodaStyleExpr
gocyclo:
min-complexity: 10
govet:
check-shadowing: false
nestif:
min-complexity: 8
revive:
rules:
- name: unused-parameter
disabled: true
run:
timeout: 5m
issues-exit-code: 1
concurrency: 8
tests: true
skip-dirs:
- vendor
skip-files:
- .*_test\.go

output:
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
sort-results: true
format: colored-line-number
Loading

0 comments on commit a61a904

Please sign in to comment.