Skip to content

Commit

Permalink
lint: Resolved conflicts in linrinf rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Oct 26, 2023
1 parent de6a00b commit 58555a5
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 71 deletions.
22 changes: 11 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ linters:
# - godot
- godox
- gofmt
- gofumpt
# - gofumpt
# - goheader
- goimports
# - golint # DEPRECATED
Expand Down Expand Up @@ -540,14 +540,14 @@ linters-settings:
- pattern: a[b:len(a)]
replacement: a[b:]

gofumpt:
# Module path which contains the source code being formatted.
# Default: ""
# module-path: github.com/org/project
# gofumpt:
# # Module path which contains the source code being formatted.
# # Default: ""
# # module-path: github.com/org/project

# Choose whether to use the extra rules.
# Default: false
extra-rules: true
# # Choose whether to use the extra rules.
# # Default: false
# extra-rules: true

# goheader:

Expand Down Expand Up @@ -622,7 +622,7 @@ linters-settings:
# Filter out the issues with a lower confidence than the given value.
# Valid options are: low, medium, high.
# Default: low
confidence: low
confidence: medium

# Concurrency value.
# Default: the number of logical CPUs usable by the current process.
Expand Down Expand Up @@ -1161,11 +1161,11 @@ linters-settings:
whitespace:
# Enforces newlines (or comments) after every multi-line if statement.
# Default: false
multi-if: true
multi-if: false

# Enforces newlines (or comments) after every multi-line function signature.
# Default: false
multi-func: true
multi-func: false

wrapcheck:
# An array of strings that specify substrings of signatures to ignore.
Expand Down
36 changes: 18 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
# - id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
Expand All @@ -32,28 +32,28 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args:
- --remove
# - id: fix-encoding-pragma
# args:
# - --remove
- id: mixed-line-ending
args:
- --fix=lf
- id: requirements-txt-fixer
# - id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: c21b4c4d153be0633357686c7697f539ac194868
hooks:
- id: pyupgrade
args:
- --py311-plus
# - repo: https://github.com/asottile/pyupgrade
# rev: c21b4c4d153be0633357686c7697f539ac194868
# hooks:
# - id: pyupgrade
# args:
# - --py311-plus

- repo: https://github.com/asottile/reorder_python_imports
rev: c4fe43d9809f1507508b3aba24ad1a72b5407f58
hooks:
- id: reorder-python-imports
args:
- --py311-plus
# - repo: https://github.com/asottile/reorder_python_imports
# rev: c4fe43d9809f1507508b3aba24ad1a72b5407f58
# hooks:
# - id: reorder-python-imports
# args:
# - --py311-plus

- repo: https://github.com/skyzyx/git-hooks
rev: 4a2f0dc93e5c5353ed5e619599b0d15e34df88db
Expand All @@ -75,7 +75,7 @@ repos:
- -sr
- id: terraform-fmt
- id: yamlfmt
- id: yapf
# - id: yapf

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.36.0
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/env_ensure_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func (d *envEnsureDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting EnvEnsure DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_env_ensure"
Expand All @@ -78,7 +77,6 @@ func (d *envEnsureDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting EnvEnsure DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -124,7 +122,6 @@ func (d *envEnsureDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting EnvEnsure DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -139,7 +136,6 @@ func (d *envEnsureDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting EnvEnsure DataSource Create method.")

var plan envEnsureDataSourceModel
Expand All @@ -160,7 +156,6 @@ func (d *envEnsureDataSource) Read(
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting EnvEnsure DataSource Read method.")

var state envEnsureDataSourceModel
Expand Down
2 changes: 0 additions & 2 deletions corefuncprovider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (p *coreFuncProvider) Metadata(
_ provider.MetadataRequest,
resp *provider.MetadataResponse,
) {

tflog.Info(ctx, "Starting Provider Metadata method.")

resp.TypeName = "corefunc"
Expand Down Expand Up @@ -93,7 +92,6 @@ func (p *coreFuncProvider) Configure(
_ provider.ConfigureRequest,
_ *provider.ConfigureResponse,
) {

tflog.Info(ctx, "Starting Provider Configure method.")
tflog.Info(ctx, "Ending Provider Configure method.")
}
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/str_camel_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (d *strCamelDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting StrCamel DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_str_camel"
Expand All @@ -76,7 +75,6 @@ func (d *strCamelDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting StrCamel DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -120,7 +118,6 @@ func (d *strCamelDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting StrCamel DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -135,7 +132,6 @@ func (d *strCamelDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting StrCamel DataSource Create method.")

var plan strCamelDataSourceModel
Expand All @@ -156,7 +152,6 @@ func (d *strCamelDataSource) Read( // lint:no_dupe
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting StrCamel DataSource Read method.")

var state strCamelDataSourceModel
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/str_constant_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (d *strConstantDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting StrConstant DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_str_constant"
Expand All @@ -75,7 +74,6 @@ func (d *strConstantDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting StrConstant DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -112,7 +110,6 @@ func (d *strConstantDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting StrConstant DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -127,7 +124,6 @@ func (d *strConstantDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting StrConstant DataSource Create method.")

var plan strConstantDataSourceModel
Expand All @@ -148,7 +144,6 @@ func (d *strConstantDataSource) Read( // lint:no_dupe
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting StrConstant DataSource Read method.")

var state strConstantDataSourceModel
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/str_iterative_replace_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func (d *strIterativeReplaceDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting StrIterativeReplace DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_str_iterative_replace"
Expand All @@ -78,7 +77,6 @@ func (d *strIterativeReplaceDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting StrIterativeReplace DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -128,7 +126,6 @@ func (d *strIterativeReplaceDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting StrIterativeReplace DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -143,7 +140,6 @@ func (d *strIterativeReplaceDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting StrIterativeReplace DataSource Create method.")

var plan strIterativeReplaceDataSourceModel
Expand All @@ -164,7 +160,6 @@ func (d *strIterativeReplaceDataSource) Read( // lint:no_dupe
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting StrIterativeReplace DataSource Read method.")

var state strIterativeReplaceDataSourceModel
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/str_kebab_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func (d *strKebabDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting StrKebab DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_str_kebab"
Expand All @@ -75,7 +74,6 @@ func (d *strKebabDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting StrKebab DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -110,7 +108,6 @@ func (d *strKebabDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting StrKebab DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -125,7 +122,6 @@ func (d *strKebabDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting StrKebab DataSource Create method.")

var plan strKebabDataSourceModel
Expand All @@ -146,7 +142,6 @@ func (d *strKebabDataSource) Read( // lint:no_dupe
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting StrKebab DataSource Read method.")

var state strKebabDataSourceModel
Expand Down
5 changes: 0 additions & 5 deletions corefuncprovider/str_pascal_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func (d *strPascalDataSource) Metadata(
req datasource.MetadataRequest,
resp *datasource.MetadataResponse,
) {

tflog.Info(ctx, "Starting StrPascal DataSource Metadata method.")

resp.TypeName = req.ProviderTypeName + "_str_pascal"
Expand All @@ -76,7 +75,6 @@ func (d *strPascalDataSource) Schema(
_ datasource.SchemaRequest,
resp *datasource.SchemaResponse,
) {

tflog.Info(ctx, "Starting StrPascal DataSource Schema method.")

resp.Schema = schema.Schema{
Expand Down Expand Up @@ -120,7 +118,6 @@ func (d *strPascalDataSource) Configure(
req datasource.ConfigureRequest,
_ *datasource.ConfigureResponse,
) {

tflog.Info(ctx, "Starting StrPascal DataSource Configure method.")

if req.ProviderData == nil {
Expand All @@ -135,7 +132,6 @@ func (d *strPascalDataSource) Create(
req resource.CreateRequest, // lint:allow_large_memory
resp *resource.CreateResponse,
) {

tflog.Info(ctx, "Starting StrPascal DataSource Create method.")

var plan strPascalDataSourceModel
Expand All @@ -156,7 +152,6 @@ func (d *strPascalDataSource) Read( // lint:no_dupe
_ datasource.ReadRequest, // lint:allow_large_memory
resp *datasource.ReadResponse,
) {

tflog.Info(ctx, "Starting StrPascal DataSource Read method.")

var state strPascalDataSourceModel
Expand Down
Loading

0 comments on commit 58555a5

Please sign in to comment.