Skip to content

Commit 19d0ea8

Browse files
committed
Fix pre-commit failure from prettier
1 parent 6d8323f commit 19d0ea8

21 files changed

Lines changed: 57 additions & 49 deletions

.github/linters/.yaml-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
extends: default
55

66
rules:
7+
comments:
8+
min-spaces-from-content: 1
79
document-start: disable
810
line-length: disable
911
truthy: false

.github/workflows/oss-fuzz.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
- name: Build Fuzzers
1212
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
1313
with:
14-
oss-fuzz-project-name: 'mruby'
14+
oss-fuzz-project-name: "mruby"
1515
dry-run: false
1616
- name: Run Fuzzers
1717
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
1818
with:
19-
oss-fuzz-project-name: 'mruby'
19+
oss-fuzz-project-name: "mruby"
2020
fuzz-seconds: 600
2121
dry-run: false
2222
- name: Upload Crash

.github/workflows/super-linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
jobs:
1010
build:
1111
permissions:
12-
contents: read # for actions/checkout to fetch code
13-
statuses: write # for github/super-linter/slim to mark status of each linter run
12+
contents: read # for actions/checkout to fetch code
13+
statuses: write # for github/super-linter/slim to mark status of each linter run
1414
name: Lint Code Base
1515
runs-on: ubuntu-latest
1616
steps:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ compile_commands.json
3131
compile_flags.txt
3232
cscope.files
3333
cscope.out
34+
node_modules
3435
tags
3536
!Gemfile.lock

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ repos:
5454
rev: v4.0.0-alpha.8
5555
hooks:
5656
- id: prettier
57+
exclude: ^doc/internal/opcode\.md$
5758
- repo: https://github.com/igorshubovych/markdownlint-cli
5859
rev: v0.38.0
5960
hooks:

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"bracketSpacing": false
3+
}

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We consider the following issues as vulnerabilities:
1111
- Remote code execution
1212
- Crash caused by a valid Ruby script
1313

14-
We *don't* consider the following issues as vulnerabilities:
14+
We _don't_ consider the following issues as vulnerabilities:
1515

1616
- Runtime C undefined behavior (including integer overflow)
1717
- Crash caused by misused API

build_config/dreamcast_shelf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
cc.defines << %w(_arch_sub_pristine)
3535
end
3636

37-
# C++ compiler
37+
# C++ compiler
3838
conf.cxx do |cxx|
3939
cxx.command = conf.cc.command.dup
4040
cxx.include_paths = conf.cc.include_paths.dup

doc/guides/compile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ conf.toolchain :clang
8080
#### Visual Studio 2010, 2012 and 2013
8181

8282
Toolchain configuration for Visual Studio on Windows. If you use the
83-
[Visual Studio Command Prompt](https://msdn.microsoft.com/en-us/library/ms229859\(v=vs.110\).aspx),
83+
[Visual Studio Command Prompt](<https://msdn.microsoft.com/en-us/library/ms229859(v=vs.110).aspx>),
8484
you normally do not have to specify this manually, since it gets automatically detected by our build process.
8585

8686
```ruby
@@ -460,7 +460,7 @@ compile for `i386` a directory called `i386` is created under the
460460
build directory.
461461

462462
The cross compilation workflow starts in the same way as the normal
463-
compilation by compiling all *native* libraries and binaries, except
463+
compilation by compiling all _native_ libraries and binaries, except
464464
for we don't have `host/mrbc` directory (`host` directory itself works
465465
as placeholder for `mrbc`). Afterwards the cross compilation process
466466
proceeds like this:

doc/guides/debugger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $ mrdb sample.rb
6262
You can execute the shell commands listed below:
6363

6464
| command | description |
65-
|:----------------:|:--------------------------------------------------------------------------|
65+
| :--------------: | :------------------------------------------------------------------------ |
6666
| run | execute programs |
6767
| step | execute stepping |
6868
| continue | execute continuing program |
@@ -83,7 +83,7 @@ You can debug the mruby binary files.
8383
#### 2.2.2.1 Debugging the binary files
8484

8585
- notice
86-
To debug mruby binary files, you need to compile mruby files with option `-g`.
86+
To debug mruby binary files, you need to compile mruby files with option `-g`.
8787

8888
```bash
8989
$ mrbc -g sample.rb

0 commit comments

Comments
 (0)