Add additional hooks to pre-commit

This commit is contained in:
Daniël van Noord
2022-06-19 21:02:02 +02:00
parent 1f685f823a
commit 5ebfdfd48e
3 changed files with 17 additions and 10 deletions

View File

@@ -7,4 +7,11 @@ repos:
- '--print-width=100'
- '--single-quote'
- '--trailing-comma=all'
exclude: 'CookieMonster(Dev)?.js'
exclude: &build 'CookieMonster(Dev)?.js(.map)?'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: *build
- id: end-of-file-fixer
exclude: *build

View File

@@ -24,13 +24,13 @@ If the relevant option is enabled, CM will color-code each of them based on thei
<details>
<summary>The following standard colours are used:</summary>
* Light Blue: (upgrades) This item has a better PP than the best building to buy
* Green: This building has the best PP
* Yellow: This building is within the top 10 of best PP's
* Orange: This building is within the top 20 of best PP's
* Red: This building is within the top 30 of best PP's
* Purple: This building is worse than the top 10 of best PP's
* Gray: This item does not have a PP, often this means that there is no change to CPS
- Light Blue: (upgrades) This item has a better PP than the best building to buy
- Green: This building has the best PP
- Yellow: This building is within the top 10 of best PP's
- Orange: This building is within the top 20 of best PP's
- Red: This building is within the top 30 of best PP's
- Purple: This building is worse than the top 10 of best PP's
- Gray: This item does not have a PP, often this means that there is no change to CPS
</details>