Skip to content

Commit 4c97a14

Browse files
Merge pull request #1000 from nextcloud/chore/run-linter
chore: run linter
2 parents adfc602 + 5fda22a commit 4c97a14

5 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/models/davCollectionPublishable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import * as XMLUtility from '../utility/xmlUtility.js'
1313
import { debugFactory } from '../debug.js'
1414
const debug = debugFactory('DavCollectionPublishable')
1515

16+
/**
17+
*
18+
* @param Base
19+
*/
1620
export function davCollectionPublishable(Base) {
1721
return class extends Base {
1822

src/models/davCollectionShareable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import * as XMLUtility from '../utility/xmlUtility.js'
1313
import { debugFactory } from '../debug.js'
1414
const debug = debugFactory('DavCollectionShareable')
1515

16+
/**
17+
*
18+
* @param Base
19+
*/
1620
export function davCollectionShareable(Base) {
1721
return class extends Base {
1822

src/request.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ export default class Request {
336336
/**
337337
* returns name of file / folder of a url
338338
*
339+
* @param url
339340
* @params {string} url
340341
* @return {string}
341342
*/
@@ -352,6 +353,7 @@ export default class Request {
352353
/**
353354
* returns pathname for a URL
354355
*
356+
* @param url
355357
* @params {string} url
356358
* @return {string}
357359
*/

src/utility/stringUtility.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
*/
99

1010
// uuidv4 taken from https://stackoverflow.com/a/2117523
11+
/**
12+
*
13+
*/
1114
function uuidv4() {
1215
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
1316
const r = Math.random() * 16 | 0; const v = c === 'x' ? r : (r & 0x3 | 0x8)

src/utility/xmlUtility.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ export function serialize(json) {
5959
return serializer.serializeToString(root)
6060
}
6161

62+
/**
63+
*
64+
* @param xmlDoc
65+
* @param parent
66+
* @param json
67+
*/
6268
function xmlify(xmlDoc, parent, json) {
6369
const [ns, localName] = json.name
6470
const element = xmlDoc.createElementNS(ns, getPrefixedNameForNamespace(ns, localName))
@@ -85,10 +91,18 @@ function xmlify(xmlDoc, parent, json) {
8591
parent.appendChild(element)
8692
}
8793

94+
/**
95+
*
96+
*/
8897
export function resetPrefixMap() {
8998
prefixMap = {}
9099
}
91100

101+
/**
102+
*
103+
* @param ns
104+
* @param localName
105+
*/
92106
function getPrefixedNameForNamespace(ns, localName) {
93107
if (!Object.prototype.hasOwnProperty.call(prefixMap, ns)) {
94108
prefixMap[ns] = 'x' + Object.keys(prefixMap).length

0 commit comments

Comments
 (0)