diff --git a/.github/workflows/lint-general.yml b/.github/workflows/lint-general.yml new file mode 100644 index 0000000000..0db6335913 --- /dev/null +++ b/.github/workflows/lint-general.yml @@ -0,0 +1,16 @@ +name: General Linting + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + general-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Linelint + uses: fernandrone/linelint@0.0.4 diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 0000000000..5094f7ee44 --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,30 @@ +--- +# 'true' will fix files +autofix: false + +# list of paths to ignore, uses gitignore syntaxes (executes before any rule) +ignore: + - .git/ + - tmp/ + - node_modules/ + - /webapp/public + - /third_party/*/target + - pkged.go + - .DS_Store + - /scripts/packages/ + - .eslintcache + - .idea + - .vscode + - vendor/ + - examples/dotnet + - .github/markdown-images + + +rules: + # checks if file ends in a newline character + end-of-file: + # set to true to enable this rule + enable: true + + # if true also checks if file ends in a single newline character + single-new-line: false diff --git a/translations/debug_python_with_pyroscope.ch.md b/translations/debug_python_with_pyroscope.ch.md index 167338eed2..ffc418f0e0 100644 --- a/translations/debug_python_with_pyroscope.ch.md +++ b/translations/debug_python_with_pyroscope.ch.md @@ -81,4 +81,4 @@ def bar(): ![image](https://user-images.githubusercontent.com/23323466/105666001-1a535280-5e8d-11eb-9407-c63955ba86a1.png) -这代表你的中央处理器的总利用率下降了66%。若你之前为了服务器支付10万美元,那现在只需要3.4万美元就能处理等量的负荷。 \ No newline at end of file +这代表你的中央处理器的总利用率下降了66%。若你之前为了服务器支付10万美元,那现在只需要3.4万美元就能处理等量的负荷。