Lint updates csharp docs (#12962)

* fix lint issues on docfx.vendor.js file

* fix ci

* remove submodule

* fix ci

* Update var name to AcceptedList

* remove test branch from ci
This commit is contained in:
Cassie Breviu 2022-09-14 17:56:41 -05:00 committed by GitHub
parent bc2df1bf95
commit 5099dda42f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -40,7 +40,7 @@ jobs:
clean: false
- name: Move API docs into target area
run: |
if (Test-Path -Path docs/api/csharp) {rmdir docs/api/csharp /q /s}
if (Test-Path -Path docs/api/csharp) {rm -r -fo docs/api/csharp}
MOVE csharp/ApiDocs/csharp docs/api
rm -r -fo csharp/ApiDocs
rm -r -fo csharp/src

File diff suppressed because one or more lines are too long

View file

@ -2012,7 +2012,7 @@ lunr.Index.load = function (serializedIndex) {
* @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.
* @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.
* @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.
* @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.
* @property {array} metadataAcceptedlist - A list of metadata keys that have been listed for entry in the index.
*/
lunr.Builder = function () {
this._ref = "id"
@ -2027,7 +2027,7 @@ lunr.Builder = function () {
this._b = 0.75
this._k1 = 1.2
this.termIndex = 0
this.metadataWhitelist = []
this.metadataAcceptedlist = []
}
/**
@ -2149,10 +2149,10 @@ lunr.Builder.prototype.add = function (doc) {
this.invertedIndex[term][fieldName][docRef] = Object.create(null)
}
// store all whitelisted metadata about this token in the
// store all metadata about this token in the
// inverted index
for (var l = 0; l < this.metadataWhitelist.length; l++) {
var metadataKey = this.metadataWhitelist[l],
for (var l = 0; l < this.metadataAcceptedlist.length; l++) {
var metadataKey = this.metadataAcceptedlist[l],
metadata = term.metadata[metadataKey]
if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {