Skip to content

Commit dce329d

Browse files
prettier fix
1 parent 1d13d8f commit dce329d

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

tools/spectral/ipa/rulesets/functions/IPA102CollectionIdentifierCamelCase.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
evaluateAndCollectAdoptionStatus,
3-
handleInternalError,
4-
} from './utils/collectionUtils.js';
1+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
52
import { isPathParam } from './utils/componentUtils.js';
63
import { casing } from '@stoplight/spectral-functions';
74
import { findExceptionInPathHierarchy } from './utils/exceptions.js';

tools/spectral/ipa/rulesets/functions/IPA102EachPathAlternatesBetweenResourceNameAndPathParam.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { isPathParam } from './utils/componentUtils.js';
2-
import {
3-
evaluateAndCollectAdoptionStatus,
4-
handleInternalError,
5-
} from './utils/collectionUtils.js';
2+
import { evaluateAndCollectAdoptionStatus, handleInternalError } from './utils/collectionUtils.js';
63
import { AUTH_PREFIX, UNAUTH_PREFIX } from './utils/resourceEvaluation.js';
74
import { findExceptionInPathHierarchy } from './utils/exceptions.js';
85

tools/spectral/ipa/rulesets/functions/utils/exceptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function findExceptionInPathHierarchy(oas, currentPath, ruleName) {
3131
}
3232

3333
// Check parent paths by removing segments from the end
34-
const pathSegments = currentPath.split('/').filter(segment => segment !== '');
34+
const pathSegments = currentPath.split('/').filter((segment) => segment !== '');
3535

3636
for (let i = pathSegments.length - 1; i > 0; i--) {
3737
const parentPath = '/' + pathSegments.slice(0, i).join('/');
@@ -41,4 +41,4 @@ export function findExceptionInPathHierarchy(oas, currentPath, ruleName) {
4141
}
4242

4343
return null;
44-
}
44+
}

0 commit comments

Comments
 (0)