Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable json prettier linter ad fix yaml prettier issues #296

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#issuehunt: # Replace with a single IssueHunt username
#otechie: # Replace with a single Otechie username
#lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ['paypal.me/vgarvardt']
custom: ["paypal.me/vgarvardt"]
20 changes: 10 additions & 10 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
###############
# Rules by id #
###############
MD004: false # Unordered list style
MD004: false # Unordered list style
MD007:
indent: 2 # Unordered list indentation
indent: 2 # Unordered list indentation
MD010:
code_blocks: false # Ignore no-hard-tabs in cde blocks because that's how formatting for golang works
code_blocks: false # Ignore no-hard-tabs in cde blocks because that's how formatting for golang works
MD013:
line_length: 120 # Line length 80 is far too short
line_length: 120 # Line length 80 is far too short
MD024:
siblings_only: true # Allow the same headers for different sections
siblings_only: true # Allow the same headers for different sections
MD026:
punctuation: ".,;:!。,;:" # List of not allowed
MD029: false # Ordered list item prefix
MD033: false # Allow inline HTML
MD036: false # Emphasis used instead of a heading
punctuation: ".,;:!。,;:" # List of not allowed
MD029: false # Ordered list item prefix
MD033: false # Allow inline HTML
MD036: false # Emphasis used instead of a heading

#################
# Rules by tags #
#################
blank_lines: false # Error on blank lines
blank_lines: false # Error on blank lines
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
VALIDATE_SQL: false
VALIDATE_SQLFLUFF: false
VALIDATE_CHECKOV: false
# it forces all list items to be on a single line in .github/linters/.jscpd.json that is not pretty at all
VALIDATE_JSON_PRETTIER: false

- name: Setup dependencies
uses: ./.github/actions/setup-deps
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3'
version: "3"

env:
CGO_ENABLED: 0
Expand Down Expand Up @@ -30,7 +30,7 @@ tasks:
PG_HOST:
sh: docker compose port postgres 5432
env:
TEST_POSTGRES: 'postgres://test:test@{{.PG_HOST}}/test?sslmode=disable'
TEST_POSTGRES: "postgres://test:test@{{.PG_HOST}}/test?sslmode=disable"

spell-lint:
summary: Check spelling
Expand Down
8 changes: 4 additions & 4 deletions _example/outbox-worker-kafka/Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3'
version: "3"

env:
CGO_ENABLED: 0
Expand All @@ -22,7 +22,7 @@ tasks:
cmds:
- go run ./... client
env:
DB_DSN: 'postgres://outbox:outbox@localhost:{{.PG_PORT}}/outbox?sslmode=disable'
DB_DSN: "postgres://outbox:outbox@localhost:{{.PG_PORT}}/outbox?sslmode=disable"
vars:
PG_PORT:
# `docker compose port postgres 5432` -> "0.0.0.0:52041"
Expand All @@ -33,8 +33,8 @@ tasks:
cmds:
- go run ./... worker
env:
DB_DSN: 'postgres://outbox:outbox@localhost:{{.PG_PORT}}/outbox?sslmode=disable'
KAFKA_BROKERS: 'localhost:{{.KAFKA_PORT}}'
DB_DSN: "postgres://outbox:outbox@localhost:{{.PG_PORT}}/outbox?sslmode=disable"
KAFKA_BROKERS: "localhost:{{.KAFKA_PORT}}"
vars:
PG_PORT:
# `docker compose port postgres 5432` -> "0.0.0.0:52041"
Expand Down
14 changes: 7 additions & 7 deletions _example/outbox-worker-kafka/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3.9'
version: "3.9"
services:
postgres:
image: postgres:14
Expand All @@ -8,9 +8,9 @@ services:
- POSTGRES_PASSWORD=outbox
- POSTGRES_DATABASE=outbox
ports:
- '5432'
- "5432"
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U test' ]
test: ["CMD-SHELL", "pg_isready -U test"]
interval: 1s
timeout: 2s
retries: 20
Expand All @@ -21,12 +21,12 @@ services:
- redpanda
- start
- --smp
- '1'
- "1"
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- "0"
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
Expand All @@ -36,9 +36,9 @@ services:
- --advertise-pandaproxy-addr
- PLAINTEXT://redpanda:28082,OUTSIDE://localhost:8082
ports:
- '9092:9092'
- "9092:9092"
healthcheck:
test: [ 'CMD', 'curl', '--fail', 'localhost:9644/v1/status/ready' ]
test: ["CMD", "curl", "--fail", "localhost:9644/v1/status/ready"]
start_period: 15s
interval: 2s
timeout: 1s
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
postgres:
image: postgres:11
ports:
- '5432'
- "5432"
environment:
LC_ALL: C.UTF-8
POSTGRES_USER: test
Expand All @@ -12,7 +12,7 @@ services:
tmpfs:
- /var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready" ]
test: ["CMD", "pg_isready"]
interval: 3s
timeout: 3s
retries: 5
Loading