Skip to content

Commit

Permalink
Bump sizeup-core to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lerebear committed Dec 17, 2023
1 parent e0c106c commit b7e0323
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 23 deletions.
5 changes: 4 additions & 1 deletion dist/config/default.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/default.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

128 changes: 113 additions & 15 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@actions/github": "^5.1.1",
"@octokit/webhooks": "^12.0.3",
"simple-git": "^3.21.0",
"sizeup-core": "^0.3.0",
"sizeup-core": "^0.4.0",
"yaml": "^2.3.2"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion src/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ sizeup:
ignoredFilePatterns:
- CODEOWNERS
scoring:
formula: "- - + additions deletions comments whitespace"
formula: "? deprecation additions default"
aliases:
default: "- - + additions deletions comments whitespace"
deprecation: ">= / deletions + additions deletions 0.9"
6 changes: 6 additions & 0 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ export interface Configuration1 {
* an expression, written in prefix-notation, that describes how to combine features to produce a score
*/
formula: string
/**
* named expression aliases, each of which can be used as shortand in a formula
*/
aliases?: {
[k: string]: string
}
}
/**
* glob expressions matching file patterns that should be considered as tests during the scoring process
Expand Down

0 comments on commit b7e0323

Please sign in to comment.