Skip to content

Commit 92fe334

Browse files
committed
Fix shared comment names
1 parent fbe45c6 commit 92fe334

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.6.0
4+
5+
- Fix various `shared` comments which had `generic` instead of `general` in their name.
6+
- Fix a bug with the parser that caused some solutions to blow up
7+
- Add `makeParseErrorOutput` and `makeNoSourceOutput` to redirect to a mentor with helpful information
8+
39
## 0.5.3
410

511
- Fix `resistor-color` constant lookup, when name doesn't match "probably"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@exercism/javascript-analyzer",
3-
"version": "0.5.3",
3+
"version": "0.6.0",
44
"description": "Exercism analyzer for javascript",
55
"repository": "https://github.com/exercism/javascript-analyzer",
66
"author": "Derk-Jan Karrenbeld <[email protected]>",

src/comments/shared.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Instead, in Javascript, prefixing a parameter with an underscore will stop
7474
most IDEs from highlighting that parameter if it's unused, which is actually a
7575
tool you probably want to keep in this case. Remove the underscore \`_\` from
7676
${'parameter.name'} in order to fix this.
77-
`('javascript.generic.prefer_unprefixed_underscore_parameters')
77+
`('javascript.general.prefer_unprefixed_underscore_parameters')
7878

7979
export const PARSE_ERROR = factory<'error' | 'details'>`
8080
There is something wrong with your submission, most likely a Syntax Error:
@@ -84,14 +84,14 @@ Message: "${'error'}"
8484
\`\`\`
8585
${'details'}
8686
\`\`\`
87-
`('javascript.generic.parse_error')
87+
`('javascript.general.parse_error')
8888

8989
export const PREFER_CONST_OVER_LET_AND_VAR = factory<'kind' | 'name'>`
9090
Instead of \`${'kind'} ${'name'}\`, consider using \`const\`.
9191
9292
\`const\` is a signal that the identifier won't be reassigned, which SHOULD be
9393
true for this top-level constant. (Not to be confused with _immutable values_).
94-
`('javascript.generic.prefer_const_over_let_and_var')
94+
`('javascript.general.prefer_const_over_let_and_var')
9595

9696
export const BETA_COMMENTARY_PREFIX = factory`
9797
🧪 This solution's output contains a new format of comments that is currently
@@ -107,8 +107,8 @@ please open an issue [here](https://github.com/exercism/javascript-analyzer/issu
107107
this to the student directly. Use it to determine what you want to say.
108108
- If there is no icon, the commentary has not been updated to the latest
109109
standard. Proceed with caution.
110-
`('javascript.generic.beta_disapprove_commentary_prefix')
110+
`('javascript.general.beta_disapprove_commentary_prefix')
111111

112112
export const ERROR_CAPTURED_NO_SOURCE = factory<'expected' | 'available'>`
113113
Expected source file "${'expected'}", found: ${'available'}.
114-
`('javascript.generic.error_captured_no_source')
114+
`('javascript.general.error_captured_no_source')

test/analyzers/gigasecond/__snapshots__/snapshot.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ exports[`When running analysis on gigasecond fixtures and expecting it to approv
241241
IsolatedAnalyzerOutput {
242242
"comments": Array [
243243
CommentImpl {
244-
"externalTemplate": "javascript.generic.prefer_const_over_let_and_var",
244+
"externalTemplate": "javascript.general.prefer_const_over_let_and_var",
245245
"message": "Instead of \`var GIGASECOND\`, consider using \`const\`.
246246

247247
\`const\` is a signal that the identifier won't be reassigned, which SHOULD be

0 commit comments

Comments
 (0)