Skip to content

Commit

Permalink
The Grand Reformat (#3643)
Browse files Browse the repository at this point in the history
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
  • Loading branch information
mattgodbolt committed May 10, 2022
1 parent 141fa73 commit f2c1e0b
Show file tree
Hide file tree
Showing 244 changed files with 4,215 additions and 3,495 deletions.
56 changes: 28 additions & 28 deletions .eslint-license-header.yml
@@ -1,32 +1,32 @@
---
plugins:
- eslint-plugin-header
- eslint-plugin-header
rules:
header/header:
- off
- line
- - pattern: "^ Copyright \\(c\\) \\d{4}, .*$"
template: " Copyright (c) 2021, Compiler Explorer Authors"
- " All rights reserved."
- ""
- " Redistribution and use in source and binary forms, with or without"
- " modification, are permitted provided that the following conditions are met:"
- ""
- " * Redistributions of source code must retain the above copyright notice,"
- " this list of conditions and the following disclaimer."
- " * Redistributions in binary form must reproduce the above copyright"
- " notice, this list of conditions and the following disclaimer in the"
- " documentation and/or other materials provided with the distribution."
- ""
- " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""
- " AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"
- " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE"
- " ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE"
- " LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR"
- " CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF"
- " SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS"
- " INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN"
- " CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)"
- " ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE"
- " POSSIBILITY OF SUCH DAMAGE."
- 2
- off
- line
- - pattern: '^ Copyright \\(c\\) \\d{4}, .*$'
template: ' Copyright (c) 2021, Compiler Explorer Authors'
- ' All rights reserved.'
- ''
- ' Redistribution and use in source and binary forms, with or without'
- ' modification, are permitted provided that the following conditions are met:'
- ''
- ' * Redistributions of source code must retain the above copyright notice,'
- ' this list of conditions and the following disclaimer.'
- ' * Redistributions in binary form must reproduce the above copyright'
- ' notice, this list of conditions and the following disclaimer in the'
- ' documentation and/or other materials provided with the distribution.'
- ''
- ' THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"'
- ' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE'
- ' IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE'
- ' ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE'
- ' LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR'
- ' CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF'
- ' SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS'
- ' INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN'
- ' CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)'
- ' ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE'
- ' POSSIBILITY OF SUCH DAMAGE.'
- 2
10 changes: 5 additions & 5 deletions .eslintrc.yml
Expand Up @@ -45,7 +45,7 @@ rules:
import/no-default-export: warn
import/no-deprecated: warn
import/no-mutable-exports: error
import/no-named-as-default-member: off # Far too many things (express, morgan, fs) trip this
import/no-named-as-default-member: off # Far too many things (express, morgan, fs) trip this
import/no-self-import: error
import/no-useless-path-segments: error
import/no-webpack-loader-syntax: error
Expand Down Expand Up @@ -147,7 +147,7 @@ rules:
unicorn/prefer-spread: off
unicorn/no-lonely-if: off
unicorn/no-array-reduce: off
unicorn/prefer-array-flat: off # can't turn off yet without tests blowing up; lodash vs underscore?
unicorn/prefer-array-flat: off # can't turn off yet without tests blowing up; lodash vs underscore?
unicorn/no-array-callback-reference: off
unicorn/prefer-switch: off
unicorn/no-static-only-class: off
Expand All @@ -162,7 +162,7 @@ globals:
BigInt: true
settings:
node:
tryExtensions: [ .js, .ts ]
tryExtensions: [.js, .ts]
import/parsers:
"@typescript-eslint/parser": [ .ts, .tsx ]
import/resolver: "typescript"
'@typescript-eslint/parser': [.ts, .tsx]
import/resolver: 'typescript'
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
@@ -1,7 +1,7 @@
name: Bug Report
description: Create a report to help us improve
title: "[BUG]: "
labels: ["bug"]
title: '[BUG]: '
labels: ['bug']
body:
- type: textarea
id: description
Expand Down Expand Up @@ -50,12 +50,13 @@ body:
required: false
- type: markdown
attributes:
value: "# System information"
value: '# System information'
- type: input
id: operating-system
attributes:
label: Operating System
description: If applicable (i.e, an issue with how the site behaves for you) the OS version this bug is happening in
description:
If applicable (i.e, an issue with how the site behaves for you) the OS version this bug is happening in
placeholder: Ubuntu Linux 20.04
validations:
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/compiler_request.yml
@@ -1,7 +1,7 @@
name: Compiler request
description: Request a new compiler
title: "[COMPILER REQUEST]: "
labels: ["request", "new-compilers"]
title: '[COMPILER REQUEST]: '
labels: ['request', 'new-compilers']
body:
- type: input
id: compiler-name
Expand Down
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.yml
@@ -1,7 +1,7 @@
name: Feature request
description: Suggest an idea for the project
title: "[REQUEST]: "
labels: ["request"]
title: '[REQUEST]: '
labels: ['request']
body:
- type: textarea
id: introduction
Expand All @@ -23,7 +23,9 @@ body:
id: alternatives
attributes:
label: Describe alternatives you've considered
description: If applicable, please add a clear and concise description of any alternative solutions or features you've considered.
description:
If applicable, please add a clear and concise description of any alternative solutions or features you've
considered.
placeholder: You can pass -E to the compiler flags, but I'd like to easily side-by-side compare
validations:
required: true
Expand Down
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/library_request.yml
@@ -1,7 +1,7 @@
name: Library request
description: Request a new library
title: "[LIB REQUEST]: "
labels: ["request", "new-libs"]
title: '[LIB REQUEST]: '
labels: ['request', 'new-libs']
body:
- type: input
id: library-name
Expand All @@ -15,7 +15,9 @@ body:
id: library-description
attributes:
label: Library description
description: A sentence that describes what this library does. It helps us when filling some of the UI elements when adding the library
description:
A sentence that describes what this library does. It helps us when filling some of the UI elements when adding
the library
placeholder: GoogleTest is a testing library for C++
validations:
required: true
Expand Down
154 changes: 77 additions & 77 deletions .github/labeler.yml
@@ -1,110 +1,110 @@
ui:
- static/**/*
- views/**/*
- static/**/*
- views/**/*
lang-ada:
- lib/compilers/ada.js
- etc/config/ada.*.properties
- lib/compilers/ada.js
- etc/config/ada.*.properties
lang-asm:
- lib/compilers/assembly.js
- lib/compilers/nasm.js
- lib/compilers/ptxas.js
- etc/config/assembly.*.properties
- lib/compilers/assembly.js
- lib/compilers/nasm.js
- lib/compilers/ptxas.js
- etc/config/assembly.*.properties
lang-c:
- lib/compilers/cc65.js
- lib/compilers/ellcc.js
- lib/compilers/ewarm.js
- lib/compilers/awavr.js
- lib/compilers/ppci.js
- lib/compilers/sdcc.js
- lib/compilers/tendra.js
- etc/config/c.*.properties
- lib/compilers/cc65.js
- lib/compilers/ellcc.js
- lib/compilers/ewarm.js
- lib/compilers/awavr.js
- lib/compilers/ppci.js
- lib/compilers/sdcc.js
- lib/compilers/tendra.js
- etc/config/c.*.properties
lang-c++:
- lib/compilers/ewarm.js
- lib/compilers/awavr.js
- etc/config/c++.*.properties
- lib/compilers/ewarm.js
- lib/compilers/awavr.js
- etc/config/c++.*.properties
lang-c++-opencl:
- etc/config/cpp_for_opencl.*.properties
- etc/config/cpp_for_opencl.*.properties
lang-circle:
- lib/compilers/circle.js
- etc/config/circle.*.properties
- lib/compilers/circle.js
- etc/config/circle.*.properties
lang-clean:
- lib/compilers/clean.js
- etc/config/clean.*.properties
- lib/compilers/clean.js
- etc/config/clean.*.properties
lang-cppx:
- etc/config/cppx?(_blue|_gold).*.properties
- etc/config/cppx?(_blue|_gold).*.properties
lang-crystal:
- lib/compilers/crystal.js
- etc/config/crystal.*.properties
- lib/compilers/crystal.js
- etc/config/crystal.*.properties
lang-cuda:
- lib/compilers/nvcc.js
- etc/config/cuda.*.properties
- lib/compilers/nvcc.js
- etc/config/cuda.*.properties
lang-d:
- lib/compilers/dmd.js
- lib/compilers/ldc.js
- etc/config/d.*.properties
- lib/compilers/dmd.js
- lib/compilers/ldc.js
- etc/config/d.*.properties
lang-dotnet:
- lib/compilers/dotnet.ts
- lib/asm-parser-dotnet.ts
- etc/config/csharp.*.properties
- etc/config/fsharp.*.properties
- etc/config/vb.*.properties
- lib/compilers/dotnet.ts
- lib/asm-parser-dotnet.ts
- etc/config/csharp.*.properties
- etc/config/fsharp.*.properties
- etc/config/vb.*.properties
lang-dart:
- lib/compilers/dart.js
- etc/config/dart.*.properties
- lib/compilers/dart.js
- etc/config/dart.*.properties
lang-fortran:
- lib/compilers/fortran.js
- etc/config/fortran.*.properties
- lib/compilers/fortran.js
- etc/config/fortran.*.properties
lang-go:
- lib/compilers/golang.js
- etc/config/go.*.properties
- lib/compilers/golang.js
- etc/config/go.*.properties
lang-haskell:
- lib/compilers/haskell.js
- etc/config/haskell.*.properties
- lib/compilers/haskell.js
- etc/config/haskell.*.properties
lang-ispc:
- lib/compilers/ispc.js
- etc/config/ispc.*.properties
- lib/compilers/ispc.js
- etc/config/ispc.*.properties
lang-java:
- lib/compilers/java.js
- etc/config/java.*.properties
- lib/compilers/java.js
- etc/config/java.*.properties
lang-kotlin:
- lib/compilers/kotlin.js
- etc/config/kotlin.*.properties
- lib/compilers/kotlin.js
- etc/config/kotlin.*.properties
lang-nim:
- lib/compilers/nim.js
- etc/config/nim.*.properties
- lib/compilers/nim.js
- etc/config/nim.*.properties
lang-ocaml:
- lib/compilers/ocaml.js
- etc/config/ocaml.*.properties
- lib/compilers/ocaml.js
- etc/config/ocaml.*.properties
lang-opencl-c:
- etc/config/openclc.*.properties
- etc/config/openclc.*.properties
lang-pascal:
- lib/compilers/pascal.js
- etc/config/pascal.*.properties
- lib/compilers/pascal.js
- etc/config/pascal.*.properties
lang-python:
- lib/compilers/python.js
- etc/config/python.*.properties
- lib/compilers/python.js
- etc/config/python.*.properties
lang-ruby:
- lib/compilers/ruby.js
- etc/config/ruby.*.properties
- lib/compilers/ruby.js
- etc/config/ruby.*.properties
lang-rust:
- lib/compilers/rust.js
- etc/config/rust.*.properties
- lib/compilers/rust.js
- etc/config/rust.*.properties
lang-scala:
- lib/compilers/scala.js
- etc/config/scala.*.properties
- lib/compilers/scala.js
- etc/config/scala.*.properties
lang-solidity:
- lib/compilers/solidity.js
- etc/config/solidity.*.properties
- lib/compilers/solidity.js
- etc/config/solidity.*.properties
lang-swift:
- lib/compilers/swift.js
- etc/config/swift.*.properties
- lib/compilers/swift.js
- etc/config/swift.*.properties
lang-typescript:
- lib/compilers/typescript.js
- etc/config/typescript.*.properties
- lib/compilers/typescript.js
- etc/config/typescript.*.properties
lang-zig:
- lib/compilers/zig.js
- etc/config/zig.*.properties
- lib/compilers/zig.js
- etc/config/zig.*.properties
documentation:
- docs/**/*
- README.md
- CONTRIBUTING.md
- docs/**/*
- README.md
- CONTRIBUTING.md
8 changes: 4 additions & 4 deletions .github/workflows/browserslist.yml
Expand Up @@ -19,8 +19,8 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
title: "[bot] Update browsers list"
title: '[bot] Update browsers list'
body: |
Automatic run of `npm run-update-browerslist` which needs to
be done periodically to keep in-date.
See [here](https://github.com/browserslist/browserslist#browsers-data-updating) for more details.
Automatic run of `npm run-update-browerslist` which needs to
be done periodically to keep in-date.
See [here](https://github.com/browserslist/browserslist#browsers-data-updating) for more details.

0 comments on commit f2c1e0b

Please sign in to comment.