Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
285 commits
Select commit Hold shift + click to select a range
9561c87
Merge pull request #208 from VisLab/update-tokenizer
happy5214 Oct 29, 2024
bed7cd9
Started work on converting SchemaSpec tests
VisLab Oct 30, 2024
beccf1e
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Oct 30, 2024
92156cd
Finished tests on SchemaSpec
VisLab Oct 31, 2024
58eda7a
Drafted the schema build tests
VisLab Oct 31, 2024
8182481
Started to port the converter tests to stringParserTests
VisLab Nov 1, 2024
90673fa
Merge pull request #209 from VisLab/update-tokenizer
VisLab Nov 1, 2024
235c25d
Reorganized the tests, eliminating internal log
VisLab Nov 3, 2024
f5843ee
Added a codeclimate configuration
VisLab Nov 3, 2024
c094c3d
Merge pull request #210 from VisLab/update-tokenizer
VisLab Nov 4, 2024
dd97156
Reorganize non-code data files
happy5214 Nov 4, 2024
01c4cf4
Removing the parentheses counting -- goal rely on tokenizer.
VisLab Nov 4, 2024
c75f0b5
Refactor schema parsing code
happy5214 Nov 4, 2024
1f4764f
Merge pull request #211 from happy5214/schema-cleanup
VisLab Nov 4, 2024
76aaf15
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 4, 2024
095bc2b
Removed extra parsing of delimiters already done by tokenizer
VisLab Nov 4, 2024
08956d8
Restored commented out tests
VisLab Nov 4, 2024
9cc9bcc
Merge pull request #212 from VisLab/update-tokenizer
happy5214 Nov 4, 2024
78250ce
Fixed tokenizer tests
VisLab Nov 4, 2024
81e7835
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 4, 2024
84fd711
Merge pull request #213 from VisLab/update-tokenizer
VisLab Nov 4, 2024
5f172ad
Updating of the tests
VisLab Nov 6, 2024
28e9d7a
Remove HED 2 support (stage 1) and reorganize code
happy5214 Nov 6, 2024
d97277f
Merge pull request #216 from happy5214/remove-hed-2
VisLab Nov 6, 2024
ce3ccc9
Merging the HED2 removal
VisLab Nov 6, 2024
ab7975b
Minor updates to string parser
VisLab Nov 6, 2024
c38c40a
Merge pull request #215 from VisLab/update-tokenizer
VisLab Nov 6, 2024
9686a86
Added initial handling of placeholder parsing in tokenizer
VisLab Nov 6, 2024
e9fa907
First pass at test revision
VisLab Nov 7, 2024
f1e9e8d
Corrected a spelling error in docs
VisLab Nov 7, 2024
498117c
Refactored the tokenizer to fix code climite
VisLab Nov 7, 2024
2788f74
Merge pull request #217 from VisLab/update-tokenizer
VisLab Nov 7, 2024
d4bffc2
Started on the parsedHedTag tests
VisLab Nov 7, 2024
fb23337
Merge pull request #218 from VisLab/update-tokenizer
VisLab Nov 7, 2024
bbf27de
Removed _formatTag from ParsedHedTag as this is handled in tokenizer
VisLab Nov 8, 2024
47eba7b
First rewrite of hed tag parser
VisLab Nov 9, 2024
a2ab776
Corrected spelling
VisLab Nov 10, 2024
8129028
Merge pull request #219 from VisLab/update-tokenizer
VisLab Nov 10, 2024
2431a9a
Rewrote jsonTests to eliminate the local log and simplify
VisLab Nov 10, 2024
14ef334
Merge pull request #220 from VisLab/update-tokenizer
VisLab Nov 10, 2024
265add8
Beginning the unit validation at parsing time
VisLab Nov 11, 2024
934761c
Minor cleanup and change of bids/validator class names back
VisLab Nov 11, 2024
fddcee9
Merge pull request #221 from VisLab/change-names
VisLab Nov 11, 2024
ec1fa3e
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 11, 2024
040dec0
Backing to a simpler point to test validation in schema
VisLab Nov 11, 2024
c0a8920
First pass at pulling unit validation down to tag level
VisLab Nov 11, 2024
3269776
Merge pull request #222 from VisLab/update-schema
VisLab Nov 11, 2024
4517766
Merged the schema-updates
VisLab Nov 12, 2024
514b002
Value class checking now somewhat implemented
VisLab Nov 12, 2024
ac8776f
Merge pull request #223 from VisLab/update-tokenizer
VisLab Nov 12, 2024
81c6fdc
Added tests for values and unit variations to tagParserTests
VisLab Nov 12, 2024
d3f8d48
parseHedString now returns immediately with error if no schema
VisLab Nov 13, 2024
48ed2f0
Removed checking of units and values from validator
VisLab Nov 13, 2024
928f626
Eliminated various redundancies in validator section
VisLab Nov 13, 2024
22e0007
Merge pull request #224 from VisLab/update-tokenizer
VisLab Nov 13, 2024
f33fd5b
Updated the validator -- now ready to work on definitions
VisLab Nov 14, 2024
08b87b9
Merge pull request #225 from VisLab/update-tokenizer
VisLab Nov 14, 2024
cc31c4a
Working on the special checker
VisLab Nov 20, 2024
f8b792a
Progressing on special tag validation
VisLab Nov 20, 2024
39eacf4
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 20, 2024
5fecf0e
Merge pull request #226 from VisLab/update-tokenizer
VisLab Nov 20, 2024
d710a56
Progress on group checking
VisLab Nov 23, 2024
6ebe323
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 23, 2024
f11e541
Fixed a few more issues --- special subgroup check needs to be checked
VisLab Nov 24, 2024
f0912d5
Another round of special tag implementation on string parser
VisLab Nov 27, 2024
eadd081
Merge pull request #227 from VisLab/update-tokenizer
VisLab Nov 27, 2024
6383018
Updated the tests for slices
VisLab Nov 28, 2024
2b852fe
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Nov 28, 2024
829f892
Refactored the special handling
VisLab Nov 30, 2024
3ef09a9
Merge pull request #228 from VisLab/update-tokenizer
VisLab Nov 30, 2024
f1eb65b
Updated definition manager
VisLab Dec 7, 2024
3575ea9
Updated the curlyBrace map
VisLab Dec 7, 2024
c4ed154
Continuing to refactor special tag and definition handling
VisLab Dec 10, 2024
676cca4
Continued to refactor special handling
VisLab Dec 11, 2024
f733d22
Continuing refactoring -- special group handling
VisLab Dec 12, 2024
b746e27
Refining the duplicate tag and normalization
VisLab Dec 13, 2024
5416ad7
Updated the normalization of strings for duplicate checking
VisLab Dec 13, 2024
d6e7831
Completed validation of def-expand
VisLab Dec 14, 2024
23c2228
UPdated the definition handling with placeholders
VisLab Dec 15, 2024
159ee03
Updated the splicer -- on to the merger
VisLab Dec 18, 2024
73f2316
Started to implement temporal order detection
VisLab Dec 19, 2024
642f550
Started to implement the temporal validation
VisLab Dec 21, 2024
b315ce5
Tests are now running
VisLab Dec 22, 2024
662e772
Finished implementation of the validator for HED
VisLab Dec 23, 2024
e6b558d
Removed extra copy of an eventManager directory
VisLab Dec 23, 2024
2dccbff
Updated the index values and the package number
VisLab Dec 23, 2024
dcee6f0
Merge pull request #234 from VisLab/revised-validator
VisLab Dec 23, 2024
3dd3a15
Removed the unused validator code
VisLab Dec 23, 2024
346d59c
Additional cleanup of unused code
VisLab Dec 23, 2024
c595b0f
Merge pull request #235 from VisLab/revised-validator
VisLab Dec 23, 2024
615a858
Added the spec-tests to the coverage
VisLab Dec 23, 2024
5d29d3d
Merge pull request #236 from VisLab/revised-validator
VisLab Dec 23, 2024
c577f94
Removed the column splicer since different strategy used
VisLab Dec 23, 2024
1bfcf79
Making sure all is committed
VisLab Dec 28, 2024
a27308c
Updated the tests and minor cleanup of docs
VisLab Dec 29, 2024
45d3bcc
Merge pull request #237 from VisLab/revised-validator
VisLab Dec 29, 2024
c987cc3
Corrected handling of delay with temporal tag
VisLab Jan 2, 2025
2d74edf
Merge pull request #238 from VisLab/revised-validator
VisLab Jan 2, 2025
e1aa32a
Duration should be allowed in files without timeline
VisLab Jan 7, 2025
ff30baa
Merge pull request #239 from VisLab/revised-validator
VisLab Jan 8, 2025
e1311c4
Updated action to correct code-climate complaint
VisLab Jan 8, 2025
9a682d8
Merge pull request #240 from VisLab/revised-validator
VisLab Jan 8, 2025
891c9d1
Create and use setters for private fields in SchemaTag
happy5214 Jan 18, 2025
6e425e1
Simplified the group checking and added separate definition syntax ch…
VisLab Jan 21, 2025
04dfb04
Merge pull request #243 from VisLab/second-revision
VisLab Jan 21, 2025
37e8e32
Merge pull request #241 from happy5214/create-setters-for-schema-tag-…
VisLab Jan 21, 2025
c28d43c
Delete unused RegexClass class
happy5214 Jan 21, 2025
cf9947a
revised the docs
VisLab Jan 21, 2025
4e98736
Merge pull request #245 from VisLab/second-revision
VisLab Jan 21, 2025
38e1607
A second pass at fixing documentation errors for readthedocs
VisLab Jan 21, 2025
a92d385
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Jan 21, 2025
0c05ebd
Merge pull request #246 from VisLab/second-revision
VisLab Jan 21, 2025
d8b02f9
Additional corrections of jsDoc for readthedocs
VisLab Jan 21, 2025
1b1c191
Merge pull request #247 from VisLab/second-revision
VisLab Jan 21, 2025
69c1918
Merge pull request #244 from happy5214/delete-regex-class-class
VisLab Jan 22, 2025
529e724
docs-exp1
VisLab Jan 22, 2025
a2a805e
Reorganizing the directory structure
VisLab Jan 22, 2025
633f1ca
Updated the autogeneration of the docs
VisLab Jan 22, 2025
de148bd
Merge pull request #248 from VisLab/src-reorg
VisLab Jan 22, 2025
78fd90f
Removed sphinx-js because of security violations
VisLab Jan 22, 2025
54f20b3
Merge pull request #249 from VisLab/src-reorg
VisLab Jan 22, 2025
8896e0d
Remove "sphinx" dev dependency
happy5214 Jan 22, 2025
2e80c2c
Move issues to top level of src/
happy5214 Jan 22, 2025
1bab5bd
Delete last two skipped tests (in HED utility tests)
happy5214 Jan 23, 2025
d60484a
Merge pull request #250 from happy5214/remove-sphinx-dep
VisLab Jan 23, 2025
1975a6f
Merge pull request #251 from happy5214/move-issues-folder
VisLab Jan 23, 2025
1a9c0e0
Merge pull request #252 from happy5214/delete-skipped-tests
VisLab Jan 23, 2025
c49899e
Add Dependabot configuration
happy5214 Jan 24, 2025
581f5d4
Merge pull request #254 from happy5214/add-dependabot-config
happy5214 Jan 24, 2025
f6e5533
Bump typedoc from 0.25.13 to 0.27.6
dependabot[bot] Jan 24, 2025
c3a5c29
Bump husky from 9.0.11 to 9.1.7
dependabot[bot] Jan 24, 2025
e6dda74
Bump eslint-config-prettier from 9.1.0 to 10.0.1
dependabot[bot] Jan 24, 2025
a538cf6
Bump cross-fetch from 4.0.0 to 4.1.0
dependabot[bot] Jan 24, 2025
95b96be
Merge pull request #255 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
1940279
Merge pull request #256 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
c72cc1f
Merge pull request #259 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
2631ab8
Bump semver from 7.6.0 to 7.6.3
dependabot[bot] Jan 24, 2025
212a86e
Merge pull request #258 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
82b6d95
Merge pull request #257 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
96f93b7
Bump typescript from 5.4.5 to 5.7.3
dependabot[bot] Jan 24, 2025
4853a85
Bump unicode-name from 1.0.2 to 1.0.4
dependabot[bot] Jan 24, 2025
c1cfa7d
Bump eslint-plugin-prettier from 5.1.3 to 5.2.3
dependabot[bot] Jan 24, 2025
665ee15
Bump date-fns from 3.6.0 to 4.1.0
dependabot[bot] Jan 24, 2025
bd68b77
Merge pull request #262 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
3bc33a1
Merge pull request #263 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
22d08d4
Merge pull request #264 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
f3dd9e0
Merge pull request #260 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
4d8d6af
Bump eslint from 8.22.0 to 9.18.0
dependabot[bot] Jan 24, 2025
291774c
Merge pull request #261 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
a809ff1
Bump date-and-time from 3.1.1 to 3.6.0
dependabot[bot] Jan 24, 2025
2aa0914
Bump prettier from 3.2.5 to 3.4.2
dependabot[bot] Jan 24, 2025
63c9ed0
Bump esbuild from 0.20.2 to 0.24.2
dependabot[bot] Jan 24, 2025
e894649
Merge pull request #265 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
4b014f7
Merge pull request #267 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
448ea77
Merge pull request #266 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
55b5f9f
Ignore chai major version updates in Dependabot config
happy5214 Jan 24, 2025
4b97da5
Merge pull request #269 from happy5214/ignore-chai-dependabot
happy5214 Jan 24, 2025
37d288c
Fix ESLint configuration to match new version requirements
happy5214 Jan 24, 2025
cbf847c
Fix husky issue
happy5214 Jan 24, 2025
b283021
Merge pull request #271 from happy5214/fix-eslint-conf
happy5214 Jan 24, 2025
c5b39bc
Bump chai from 4.3.6 to 4.5.0
dependabot[bot] Jan 24, 2025
85597f9
Merge pull request #270 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 24, 2025
1f3b1ae
Fixed the date-time value issue confused with namespace
VisLab Jan 25, 2025
7be9d98
Merge pull request #272 from VisLab/deno-experiment
VisLab Jan 25, 2025
1cd4eb4
Bump eslint from 9.18.0 to 9.19.0
dependabot[bot] Jan 27, 2025
eebc7b5
Bump @eslint/js from 9.18.0 to 9.19.0
dependabot[bot] Jan 27, 2025
5641ebf
Merge pull request #273 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 27, 2025
f6ebd98
Merge pull request #274 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Jan 27, 2025
4247521
Add JSON spec tests as separate GitHub action
happy5214 Jan 28, 2025
b8158d3
Correct command invocation
happy5214 Jan 28, 2025
1b60a3b
Merge pull request #275 from happy5214/add-spec-test-github-action
happy5214 Jan 28, 2025
9acec47
Updated the spec tests to handle version with multiple schemas
VisLab Jan 30, 2025
6344f0a
Merge pull request #276 from VisLab/develop
VisLab Jan 30, 2025
498bc2c
Bump semver from 7.6.3 to 7.7.0
dependabot[bot] Feb 3, 2025
55c923d
Merge pull request #277 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Feb 3, 2025
dec3f2b
Removed validateDataset and isHed3Schema
VisLab Feb 8, 2025
9ef3f30
Generated the documentation for github pages
VisLab Feb 8, 2025
81fd2c3
Removed BIDS dataset and updated documentation setup
VisLab Feb 8, 2025
2be73b7
Adding restrictions to codespell to handled generated documentation
VisLab Feb 8, 2025
8ac0e7d
Updated codespell requirements
VisLab Feb 8, 2025
9b1ca3b
Gave up and added isnt to skip
VisLab Feb 8, 2025
ab7b4d2
Merge pull request #279 from VisLab/develop
VisLab Feb 8, 2025
9d59d9d
Bump typedoc from 0.27.6 to 0.27.7
dependabot[bot] Feb 10, 2025
f56a2af
Bump eslint from 9.19.0 to 9.20.0
dependabot[bot] Feb 10, 2025
9d4225c
Bump prettier from 3.4.2 to 3.5.0
dependabot[bot] Feb 10, 2025
ede5133
Bump esbuild from 0.24.2 to 0.25.0
dependabot[bot] Feb 10, 2025
4993a46
Merge pull request #280 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 10, 2025
f937080
Merge pull request #281 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 10, 2025
6321ab2
Merge pull request #282 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 10, 2025
4c73202
Merge pull request #284 from hed-standard/dependabot/npm_and_yarn/dev…
happy5214 Feb 10, 2025
8e61449
Walk-through -- changed order of parameters in files
VisLab Feb 12, 2025
7a52f0e
Merge pull request #285 from VisLab/develop
VisLab Feb 12, 2025
01d4fba
Revamp issue handling
happy5214 Feb 14, 2025
ba51b95
Use private fields and method as a test (and to clear Code Climate is…
happy5214 Feb 14, 2025
08f5e7d
Merge pull request #287 from happy5214/issue-changes
VisLab Feb 15, 2025
857a532
Updated the error codes
VisLab Feb 15, 2025
a55ac4a
Merge pull request #288 from VisLab/develop
VisLab Feb 16, 2025
9e949f1
Bump semver from 7.7.0 to 7.7.1
dependabot[bot] Feb 17, 2025
60090cc
Bump globals from 15.14.0 to 15.15.0
dependabot[bot] Feb 17, 2025
ebb867a
Bump prettier from 3.5.0 to 3.5.1
dependabot[bot] Feb 17, 2025
379083f
Bump eslint from 9.20.0 to 9.20.1
dependabot[bot] Feb 17, 2025
ec7a2be
Merge pull request #289 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 17, 2025
1b3def6
Merge pull request #290 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 17, 2025
7f7aa9e
Merge pull request #291 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 17, 2025
bb7bf40
Merge pull request #292 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 17, 2025
06400da
Fixed isError
VisLab Feb 17, 2025
e34b2b9
Finished restructuring to support reporting of errors and warnings
VisLab Feb 18, 2025
4712052
Merge pull request #293 from VisLab/develop
VisLab Feb 18, 2025
976d7ed
Now handles deprecated tags at the string parsing level
VisLab Feb 19, 2025
c392658
Now handles tag extension warnings
VisLab Feb 20, 2025
f385d4f
Merge pull request #294 from VisLab/develop
VisLab Feb 20, 2025
e28705a
Handled missing sidecar key warnings
VisLab Feb 20, 2025
e5aa84a
Merge branch 'develop' of https://github.com/hed-standard/hed-javascr…
VisLab Feb 20, 2025
98d22ac
Merge pull request #295 from VisLab/develop
VisLab Feb 20, 2025
0cec5a5
Bump @eslint/eslintrc from 3.2.0 to 3.3.0
dependabot[bot] Feb 24, 2025
4a919fa
Bump typedoc from 0.27.7 to 0.27.8
dependabot[bot] Feb 24, 2025
5a485ee
Bump prettier from 3.5.1 to 3.5.2
dependabot[bot] Feb 24, 2025
4e37272
Bump eslint from 9.20.1 to 9.21.0
dependabot[bot] Feb 24, 2025
ee16ac9
Merge pull request #296 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 24, 2025
80b3b78
Merge pull request #297 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 24, 2025
502c65d
Merge pull request #298 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 24, 2025
af1e1c5
Merge pull request #300 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Feb 24, 2025
3c230c2
Delete generation field from Schema
happy5214 Feb 24, 2025
0b946e2
Fix type error
happy5214 Feb 24, 2025
6a1a215
Rewrite BidsHedIssue to conform to BIDS issue type
happy5214 Feb 24, 2025
5634606
Delete obsolete override parameter
happy5214 Feb 24, 2025
bb724ba
Rewrite new fields as actual fields due to BIDS limitations
happy5214 Feb 24, 2025
e96d270
Re-cast passed Maps as plain Maps to get around proxy issue with BIDS…
happy5214 Feb 24, 2025
c312cc3
Finalize API
happy5214 Feb 24, 2025
28c7f0b
Delete useless ternary conditional
happy5214 Feb 24, 2025
58f520d
Merge pull request #301 from happy5214/finalize-api
VisLab Feb 24, 2025
d4338f3
Updated the schema data
VisLab Feb 26, 2025
993e3b3
Merge pull request #302 from VisLab/develop
VisLab Feb 26, 2025
e2192da
A bunch of changes in preparation for the release of v4.0.0
happy5214 Mar 2, 2025
fd4dfa1
Bump eslint-config-prettier from 10.0.1 to 10.0.2
dependabot[bot] Mar 3, 2025
8d037fd
Bump typedoc from 0.27.8 to 0.27.9
dependabot[bot] Mar 3, 2025
adbe5f6
Bump prettier from 3.5.2 to 3.5.3
dependabot[bot] Mar 3, 2025
3a23e99
Bump globals from 15.15.0 to 16.0.0
dependabot[bot] Mar 3, 2025
da6df00
Merge pull request #303 from happy5214/final-changes-for-4.0.0
VisLab Mar 3, 2025
524c63d
Merge pull request #304 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Mar 3, 2025
e3e98a5
Merge pull request #307 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Mar 3, 2025
12076cc
Merge pull request #306 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Mar 3, 2025
17f19d8
Bump typescript from 5.7.3 to 5.8.2
dependabot[bot] Mar 3, 2025
5babbda
Merge pull request #305 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Mar 3, 2025
30e4af5
Merge pull request #308 from hed-standard/dependabot/npm_and_yarn/dev…
VisLab Mar 3, 2025
4542c38
Update husky configuration (#309)
happy5214 Mar 3, 2025
6751df4
Last-minute changes to BIDS modules before major release
happy5214 Mar 8, 2025
5dcee48
Merge pull request #310 from happy5214/bids-changes-before-v4.0.0
happy5214 Mar 8, 2025
e382717
Move special issue parameters to static Map variable
happy5214 Mar 8, 2025
bbaca2d
Merge pull request #311 from happy5214/simplify-generate-issue-message
happy5214 Mar 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
83 changes: 83 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
version: '2' # required to adjust maintainability checks

checks:
argument-count:
enabled: true
config:
threshold: 4
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 300
method-complexity:
enabled: true
config:
threshold: 5
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 50
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: true
config:
threshold: 4
similar-code:
enabled: true
config:
threshold: #language-specific defaults. overrides affect all languages.
identical-code:
enabled: true
config:
threshold: #language-specific defaults. overrides affect all languages.

exclude_patterns:
- 'config/'
- 'db/'
- 'dist/'
- 'features/'
- '**/node_modules/'
- 'script/'
- '**/spec/'
- '**/test/'
- '**/tests/'
- '**/spec_tests/'
- '**/docs/'
- 'Tests/'
- '**/vendor/'
- '**/*_test.go'
- '**/*.d.ts'
- '**/*__init__.py'
- '**/*setup.py'
- '**/setup.cfg'
- '**/static/'
- '**/constants/'
- '**/deploy_hed/'
- '**/README*'
- '**/.gitignore'
- '**/LICENSE'
- '**/examples/'
- '**/*.yml'
- '**/*.yaml'
- '**/config_template.py'
- '**/*.txt'
- '**/*.html'
- '**/.coveragerc'
- '**/*.md'
- '**/*.rst'
- '**/templates/'
- '**/conf.py'
- '**/deprecated/'
- '**/versioneer.py'
- '**/_version.py'
4 changes: 2 additions & 2 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = datasets,.git,*.pdf,*.svg,deprecated,*.xml,*.mediawiki,*.omn,datasets
ignore-words-list = covert,hed,recuse,afterAll
skip = datasets,.git,*.pdf,*.svg,deprecated,*.xml,*.mediawiki,*.omn,datasets, docs/html/fonts, docs/html/scripts
ignore-words-list = covert,hed,recuse,afterAll,hertzs,isnt
31 changes: 0 additions & 31 deletions .eslintrc.json

This file was deleted.

21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
target-branch: 'develop'
schedule:
interval: 'weekly'
- package-ecosystem: 'npm'
directory: '/'
target-branch: 'develop'
schedule:
interval: 'weekly'
ignore:
- dependency-name: 'chai'
update-types:
- 'version-update:semver-major'
- package-ecosystem: 'gitsubmodule'
directory: '/'
target-branch: 'develop'
schedule:
interval: 'daily'
31 changes: 27 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [master]
branches: [master, develop]
pull_request:
branches: [master]
branches: [master, develop]

jobs:
Build:
Expand All @@ -30,6 +30,29 @@ jobs:
- name: Test with Node.js ${{ matrix.node-version }}
run: npm test

JSON-spec-tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 'node']

steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Set up with Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Print Node.js version and CI environment
run: |
echo "Node.js version: $(node -v)"
echo "Environment: CI=${{ env.CI }}"
- name: Download dependencies
run: npm ci
- name: Run JSON spec tests with Node.js ${{ matrix.node-version }}
run: npm run testSpecs

Coverage:
runs-on: ubuntu-latest

Expand All @@ -43,8 +66,8 @@ jobs:
- name: Download dependencies
run: npm ci
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v8.0.0
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: ./node_modules/.bin/jest --coverage --testPathIgnorePatterns=spec_tests
coverageCommand: ./node_modules/.bin/jest --coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist/
spec_tests/*.txt
spec_tests/temp*.json
spec_tests/temp.spec.js
tests/temp.spec.js

# Unit test / coverage reports
htmlcov/
Expand Down
5 changes: 2 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx pretty-quick --staged
npm test
npm run testSpecs
36 changes: 8 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,18 @@

# hed-validator

This package contains a JavaScript validator for HED (hierarchical event descriptor) strings.
This package contains a JavaScript validator for HED (Hierarchical Event Descriptor) strings.

[HED](https://www.hedtags.org/) is a system for annotating events using comma-separated path strings.
Any type of event can be annotated using HED-type syntax.
The HED annotation strategy is very general and a standardized vocabulary in the form of a
[HED schema](https://github.com/hed-standard/hed-specification) enables
annotation of events in an understandable, machine-actionable format.

Additional [library schemas](https://github.com/hed-standard/hed-schema-library)
with specialized vocabularies needed for particular subfields are under development.

HED validation occurs at several levels.
Syntactic validation checks that HED strings comply with the required syntax,
but not whether tags comply with the additional requirements of a HED schema.

Semantic validation verifies validity at many levels:

1. **Tag-level validation** checks that tags are in the schema
and have correct units and value type.
2. **String-level validation** performs additional checks for correctness.
In this implementation, tag-level and string-level validation occur at the same time.
3. **Event-level validation** checks that the entire assembled HED annotation for an event is valid.
This includes checks for required tags, duplicate tags, top-level tags, top-level tag groups,
and unique tags. This usually implies the existence of an events file and an accompanying JSON sidecar
so that annotations for different columns of an events file can be assembled into a single string.
4. **Dataset-level validation** parses out the definitions
and checks that the needed definitions are present and not duplications.
Dataset-level validation also checks for `Onset`-`Offset` tag consistency.

The current version of `hed-validator` performs both syntactic and semantic validation.
Because full validation of all the features of HED-3G (versions >= 8.0.0) requires full knowledge
of an events file and its merged sidecars, the `hed-validator` currently only exposes its interface
at the dataset level.
The current focus of the `hed-validator` package is to support full validation of HED in
[BIDS datasets](https://bids-specification.readthedocs.io/en/stable/).
[BIDS datasets](https://bids-specification.readthedocs.io/en/stable/) under the BIDS validator 2.0.

HED validation is currently also supported in an [online version of the HED validator](https://hedtools.ucsd.edu/hed),
HED validation is currently also supported in an [online version of the HED validator](https://hedtools.org/hed),
which is implemented in Python and developed in a [public GitHub repository](https://github.com/hed-standard/hed-python/).
Validation and other HED operations are also available through web-services and a docker module.

Expand All @@ -57,3 +32,8 @@ To use the `hed-validator`, you must install the npm `hed-validator` package and

A sample of current `hed-validator` usage can be found in the BIDS validator in
[`hed.js`](https://github.com/bids-standard/bids-validator/blob/5dfc3938ea8ce128c7db295e7bebc8eed2de1ce6/bids-validator/validators/hed.js).

## Repository notes:

The `develop` branch is now the default branch. All changes to the repository should
be done as PRs (pull requests) to the `develop` branch.
38 changes: 0 additions & 38 deletions bids/index.js

This file was deleted.

61 changes: 0 additions & 61 deletions bids/types/basic.js

This file was deleted.

Loading