@forge/lint

5.16.3-next.75.17.0-next.8
out/lint/text/messages.js
~out/lint/text/messages.jsModified
+11
Index: package/out/lint/text/messages.js
===================================================================
--- package/out/lint/text/messages.js
+++ package/out/lint/text/messages.js
@@ -1,7 +1,8 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.messages = void 0;
+const function_timeout_linter_1 = require("../linters/function-timeout-linter/function-timeout-linter");
 exports.messages = {
     verifiers: {
         externalFetch: {
             message: (url) => `The domain ${url} is not included in the "permissions.external.fetch" section of your app's manifest.yml file`,
@@ -72,7 +73,17 @@
         },
         deprecatedApiStorage: {
             message: () => `The \"storage\" export from \"@forge/api\" is deprecated. Use the \"@forge/kvs\" package instead.`,
             reference: 'deprecated-api-storage'
+        },
+        functionTimeout: {
+            shared: {
+                message: (functionKey, conflictingModuleKey, conflictingModuleType) => `Function "${functionKey}" is used by a consumer and ${conflictingModuleType} "${conflictingModuleKey}". Consumer functions must not be shared with other modules. Use a separate function for each module type.`,
+                reference: 'https://developer.atlassian.com/platform/forge/use-a-long-running-function/'
+            },
+            exceeded: {
+                message: (functionKey, timeoutSeconds, moduleKey, moduleType) => `Function "${functionKey}" defines timeoutSeconds (${timeoutSeconds}s) but is used by ${moduleType} "${moduleKey}". Only ${[...function_timeout_linter_1.LONG_RUNNING_MODULE_TYPES].join(' and ')} functions support custom timeouts.`,
+                reference: 'https://developer.atlassian.com/platform/forge/limits-invocation/'
+            }
         }
     }
 };