Skip to content

Commit f1a52c0

Browse files
prettier fix
1 parent d83044c commit f1a52c0

File tree

6 files changed

+6
-30
lines changed

6 files changed

+6
-30
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { isCustomMethod } from './utils/resourceEvaluation.js';
22
import { hasException } from './utils/exceptions.js';
3-
import {
4-
collectAdoption,
5-
collectAndReturnViolation,
6-
collectException,
7-
} from './utils/collectionUtils.js';
3+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
84

95
const RULE_NAME = 'xgen-IPA-109-custom-method-must-be-GET-or-POST';
106
const ERROR_MESSAGE = 'The HTTP method for custom methods must be GET or POST.';

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { getCustomMethodName, isCustomMethod } from './utils/resourceEvaluation.js';
22
import { hasException } from './utils/exceptions.js';
33
import { casing } from '@stoplight/spectral-functions';
4-
import {
5-
collectAdoption,
6-
collectAndReturnViolation,
7-
collectException,
8-
} from './utils/collectionUtils.js';
4+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
95

106
const RULE_NAME = 'xgen-IPA-109-custom-method-must-use-camel-case';
117

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { hasException } from './utils/exceptions.js';
22
import { resolveObject } from './utils/componentUtils.js';
33
import { casing } from '@stoplight/spectral-functions';
4-
import {
5-
collectAdoption,
6-
collectAndReturnViolation,
7-
collectException,
8-
} from './utils/collectionUtils.js';
4+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
95

106
const RULE_NAME = 'xgen-IPA-123-enum-values-must-be-upper-snake-case';
117
const ERROR_MESSAGE = 'enum value must be UPPER_SNAKE_CASE.';

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { isPathParam } from './utils/componentUtils.js';
22
import { hasException } from './utils/exceptions.js';
3-
import {
4-
collectAdoption,
5-
collectAndReturnViolation,
6-
collectException,
7-
} from './utils/collectionUtils.js';
3+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
84

95
const RULE_NAME = 'xgen-IPA-102-path-alternate-resource-name-path-param';
106
const ERROR_MESSAGE = 'API paths must alternate between resource name and path params.';

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import {
77
getResourcePaths,
88
} from './utils/resourceEvaluation.js';
99
import { hasException } from './utils/exceptions.js';
10-
import {
11-
collectAdoption,
12-
collectAndReturnViolation,
13-
collectException,
14-
} from './utils/collectionUtils.js';
10+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
1511

1612
const RULE_NAME = 'xgen-IPA-104-resource-has-GET';
1713
const ERROR_MESSAGE = 'APIs must provide a get method for resources.';

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import {
77
} from './utils/resourceEvaluation.js';
88
import { hasException } from './utils/exceptions.js';
99
import { getAllSuccessfulGetResponseSchemas } from './utils/methodUtils.js';
10-
import {
11-
collectAdoption,
12-
collectAndReturnViolation,
13-
collectException,
14-
} from './utils/collectionUtils.js';
10+
import { collectAdoption, collectAndReturnViolation, collectException } from './utils/collectionUtils.js';
1511

1612
const RULE_NAME = 'xgen-IPA-113-singleton-must-not-have-id';
1713
const ERROR_MESSAGE = 'Singleton resources must not have a user-provided or system-generated ID.';

0 commit comments

Comments
 (0)