-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split profiles into track folders (#1452)
* remove pp2002, closes #1431 * remove profile-amended * fix test * remove unused test file * split profiles into track folders * make track/profiles work * Revert "make track/profiles work" This reverts commit f52af89. * Revert "Revert "make track/profiles work"" This reverts commit 14e624b. * add all profiles under track * align profiles * give error message when doing unecessary rule remove * Update lib/profiles/profileUtil.js Co-authored-by: Denis Ah-Kang <[email protected]> * Update lib/rules/metadata/profile.js Co-authored-by: Denis Ah-Kang <[email protected]> * Update lib/rules/metadata/profile.js Co-authored-by: Denis Ah-Kang <[email protected]> * Update lib/profiles/TR/Recommendation/FPWD.js Co-authored-by: Denis Ah-Kang <[email protected]> * remove usage rule from DRY, CRY, CRYD, fix lint * fix test Co-authored-by: Denis Ah-Kang <[email protected]>
- Loading branch information
1 parent
92ee16e
commit e468eb5
Showing
50 changed files
with
487 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
// base profile for all things TR | ||
exports.name = 'TR'; | ||
|
||
const base = require('./base'); | ||
const profileUtil = require('./profileUtil'); | ||
const base = require('./base').rules; | ||
|
||
exports.rules = base.extendWithInserts({ | ||
'headers.w3c-state': [ | ||
require('../rules/headers/github-repo'), | ||
require('../rules/headers/copyright'), | ||
], | ||
'sotd.supersedable': [ | ||
require('../rules/sotd/stability'), | ||
require('../rules/sotd/publish'), | ||
require('../rules/sotd/draft-stability'), | ||
require('../rules/sotd/pp'), | ||
require('../rules/sotd/charter'), | ||
require('../rules/sotd/process-document'), | ||
], | ||
}); | ||
let rules = profileUtil.insertAfter(base, 'headers.w3c-state', [ | ||
require('../rules/headers/github-repo'), | ||
require('../rules/headers/copyright'), | ||
]); | ||
|
||
rules = profileUtil.insertAfter(rules, 'sotd.supersedable', [ | ||
require('../rules/sotd/stability'), | ||
require('../rules/sotd/publish'), | ||
require('../rules/sotd/pp'), | ||
require('../rules/sotd/charter'), | ||
require('../rules/sotd/process-document'), | ||
]); | ||
|
||
exports.rules = rules; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// TODO: merge all Echidna files. | ||
exports.name = 'DNOTE-Echidna'; | ||
const base = require('./DNOTE'); | ||
|
||
exports.config = base.config; | ||
|
||
// customize rules | ||
const profileUtil = require('../../profileUtil'); | ||
const rules = profileUtil.insertAfter(base.rules, 'sotd.process-document', [ | ||
require('../../../rules/echidna/todays-date'), | ||
]); | ||
|
||
exports.rules = rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
exports.name = 'DNOTE'; | ||
const base = require('./note-base'); | ||
|
||
// customize config | ||
const config = { | ||
status: 'DNOTE', | ||
longStatus: 'Group Draft Note', | ||
styleSheet: 'W3C-DNOTE', | ||
}; | ||
exports.config = { ...base.config, ...config }; | ||
|
||
// customize rules | ||
const profileUtil = require('../../profileUtil'); | ||
const rules = profileUtil.insertAfter(base.rules, 'sotd.pp', [ | ||
require('../../../rules/sotd/draft-stability'), | ||
]); | ||
|
||
exports.rules = rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
exports.name = 'NOTE-Echidna'; | ||
const base = require('./NOTE'); | ||
|
||
exports.config = base.config; | ||
|
||
const profileUtil = require('../../profileUtil'); | ||
exports.rules = profileUtil.insertAfter(base.rules, 'sotd.process-document', [ | ||
require('../../../rules/echidna/todays-date'), | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
exports.name = 'NOTE'; | ||
const base = require('./note-base'); | ||
|
||
// customize config | ||
const config = { | ||
status: 'NOTE', | ||
longStatus: 'Group Note', | ||
styleSheet: 'W3C-NOTE', | ||
}; | ||
exports.config = { ...base.config, ...config }; | ||
|
||
exports.rules = base.rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
exports.name = 'STMT'; | ||
const base = require('./note-base'); | ||
|
||
// customize config | ||
const config = { | ||
status: 'STMT', | ||
longStatus: 'Statement', | ||
styleSheet: 'W3C-STMT', | ||
}; | ||
exports.config = { ...base.config, ...config }; | ||
|
||
exports.rules = base.rules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
exports.config = { | ||
track: 'Note', | ||
}; | ||
|
||
// customize rules | ||
const base = require('../../TR'); | ||
const profileUtil = require('../../profileUtil'); | ||
|
||
const rules = profileUtil.insertAfter(base.rules, 'sotd.pp', [ | ||
require('../../../rules/sotd/deliverer-note'), | ||
]); | ||
|
||
exports.rules = rules; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.