Skip to content

Conversation

aahung
Copy link
Contributor

@aahung aahung commented Oct 15, 2020

Issue #, if available:

Below is the output of pylint with https://github.com/aws/aws-sam-cli/blob/develop/.pylintrc
I am not sure whether it is worth to invest time to fix these lint issues below to enable pylint:

$ pylint --rcfile .pylintrc samtranslator

************* Module samtranslator
samtranslator/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.region_configuration
samtranslator/region_configuration.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/region_configuration.py:4:0: R0205: Class 'RegionConfiguration' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.yaml_helper
samtranslator/yaml_helper.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.validator.validator
samtranslator/validator/validator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/validator/validator.py:9:0: R0205: Class 'SamTemplateValidator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/validator/validator.py:32:12: W0107: Unnecessary pass statement (unnecessary-pass)
************* Module samtranslator.validator.sam_schema
samtranslator/validator/sam_schema/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.swagger.swagger
samtranslator/swagger/swagger.py:1:0: C0302: Too many lines in module (1230/1000) (too-many-lines)
samtranslator/swagger/swagger.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/swagger/swagger.py:11:0: R0205: Class 'SwaggerEditor' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/swagger/swagger.py:269:8: C0103: Variable name "CALLER_CREDENTIALS_ARN" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:280:18: W0612: Unused variable 'value' (unused-variable)
samtranslator/swagger/swagger.py:359:8: C0103: Variable name "ALLOW_ORIGIN" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:360:8: C0103: Variable name "ALLOW_HEADERS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:361:8: C0103: Variable name "ALLOW_METHODS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:362:8: C0103: Variable name "MAX_AGE" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:363:8: C0103: Variable name "ALLOW_CREDENTIALS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:364:8: C0103: Variable name "HEADER_RESPONSE" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/swagger/swagger.py:519:25: W0612: Unused variable 'method' (unused-variable)
samtranslator/swagger/swagger.py:502:4: R0912: Too many branches (16/12) (too-many-branches)
samtranslator/swagger/swagger.py:502:4: R0915: Too many statements (38/30) (too-many-statements)
samtranslator/swagger/swagger.py:679:4: W0102: Dangerous default value {} as argument (dangerous-default-value)
samtranslator/swagger/swagger.py:840:4: R0915: Too many statements (33/30) (too-many-statements)
samtranslator/swagger/swagger.py:1005:4: R0912: Too many branches (15/12) (too-many-branches)
samtranslator/swagger/swagger.py:1005:4: R0915: Too many statements (48/30) (too-many-statements)
samtranslator/swagger/swagger.py:1161:12: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/swagger/swagger.py:1208:8: R1705: Unnecessary "else" after "return" (no-else-return)
************* Module samtranslator.plugins
samtranslator/plugins/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/__init__.py:9:0: R0205: Class 'SamPlugins' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/plugins/__init__.py:160:0: R0205: Class 'BasePlugin' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/plugins/__init__.py:199:8: W0107: Unnecessary pass statement (unnecessary-pass)
samtranslator/plugins/__init__.py:217:8: W0107: Unnecessary pass statement (unnecessary-pass)
samtranslator/plugins/__init__.py:234:8: W0107: Unnecessary pass statement (unnecessary-pass)
samtranslator/plugins/__init__.py:4:0: C0411: standard import "from enum import Enum" should be placed before "from samtranslator.model.exceptions import InvalidResourceException, InvalidDocumentException" (wrong-import-order)
************* Module samtranslator.plugins.exceptions
samtranslator/plugins/exceptions.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.plugins.globals.globals
samtranslator/plugins/globals/globals.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/globals/globals.py:7:0: R0205: Class 'Globals' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/plugins/globals/globals.py:89:58: C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
samtranslator/plugins/globals/globals.py:175:8: W0622: Redefining built-in 'globals' (redefined-builtin)
samtranslator/plugins/globals/globals.py:178:31: E1305: Too many arguments for format string (too-many-format-args)
samtranslator/plugins/globals/globals.py:196:21: W0612: Unused variable 'value' (unused-variable)
samtranslator/plugins/globals/globals.py:216:0: R0205: Class 'GlobalProperties' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/plugins/globals/globals.py:361:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/plugins/globals/globals.py:424:24: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/plugins/globals/globals.py:435:12: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/plugins/globals/globals.py:4:0: C0411: third party import "from six import string_types" should be placed before "from samtranslator.public.sdk.resource import SamResourceType" (wrong-import-order)
************* Module samtranslator.plugins.globals.globals_plugin
samtranslator/plugins/globals/globals_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/globals/globals_plugin.py:19:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/globals/globals_plugin.py:21:4: W0221: Parameters differ from overridden 'on_before_transform_template' method (arguments-differ)
samtranslator/plugins/globals/globals_plugin.py:31:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/plugins/globals/globals_plugin.py:35:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
************* Module samtranslator.plugins.policies.policy_templates_plugin
samtranslator/plugins/policies/policy_templates_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/policies/policy_templates_plugin.py:29:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/policies/policy_templates_plugin.py:108:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/plugins/policies/policy_templates_plugin.py:110:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
************* Module samtranslator.plugins.api.default_definition_body_plugin
samtranslator/plugins/api/default_definition_body_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/api/default_definition_body_plugin.py:21:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/api/default_definition_body_plugin.py:23:4: W0221: Parameters differ from overridden 'on_before_transform_template' method (arguments-differ)
samtranslator/plugins/api/default_definition_body_plugin.py:34:16: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
************* Module samtranslator.plugins.api.implicit_rest_api_plugin
samtranslator/plugins/api/implicit_rest_api_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/api/implicit_rest_api_plugin.py:36:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/api/implicit_rest_api_plugin.py:49:4: W0221: Parameters differ from overridden '_process_api_events' method (arguments-differ)
samtranslator/plugins/api/implicit_rest_api_plugin.py:60:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/plugins/api/implicit_rest_api_plugin.py:73:16: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/plugins/api/implicit_rest_api_plugin.py:148:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
************* Module samtranslator.plugins.api.implicit_http_api_plugin
samtranslator/plugins/api/implicit_http_api_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/api/implicit_http_api_plugin.py:33:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/api/implicit_http_api_plugin.py:46:4: W0221: Parameters differ from overridden '_process_api_events' method (arguments-differ)
samtranslator/plugins/api/implicit_http_api_plugin.py:57:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/plugins/api/implicit_http_api_plugin.py:147:21: W0212: Access to a protected member _X_ANY_METHOD of a client class (protected-access)
samtranslator/plugins/api/implicit_http_api_plugin.py:182:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
************* Module samtranslator.plugins.api.implicit_api_plugin
samtranslator/plugins/api/implicit_api_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/api/implicit_api_plugin.py:36:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/api/implicit_api_plugin.py:49:4: W0221: Parameters differ from overridden 'on_before_transform_template' method (arguments-differ)
samtranslator/plugins/api/implicit_api_plugin.py:67:73: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:69:21: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:72:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/plugins/api/implicit_api_plugin.py:119:74: E1101: Instance of 'ImplicitApiPlugin' has no 'api_event_type' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:167:16: E1101: Instance of 'ImplicitApiPlugin' has no 'api_id_property' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:178:16: E1101: Instance of 'ImplicitApiPlugin' has no 'editor' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:198:17: E1101: Instance of 'ImplicitApiPlugin' has no 'editor' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:210:38: E1101: Instance of 'ImplicitApiPlugin' has no 'api_id_property' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:221:39: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:226:54: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:227:41: R1718: Consider using a set comprehension (consider-using-set-comprehension)
samtranslator/plugins/api/implicit_api_plugin.py:237:71: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:245:53: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_condition' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:247:35: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_condition' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:280:45: E1101: Instance of 'ImplicitApiPlugin' has no 'api_type' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:285:21: E1101: Instance of 'ImplicitApiPlugin' has no 'editor' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:288:40: R1718: Consider using a set comprehension (consider-using-set-comprehension)
samtranslator/plugins/api/implicit_api_plugin.py:334:45: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:340:29: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
samtranslator/plugins/api/implicit_api_plugin.py:342:32: E1101: Instance of 'ImplicitApiPlugin' has no 'implicit_api_logical_id' member (no-member)
************* Module samtranslator.plugins.application.serverless_app_plugin
samtranslator/plugins/application/serverless_app_plugin.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/plugins/application/serverless_app_plugin.py:44:4: W0102: Dangerous default value {} as argument (dangerous-default-value)
samtranslator/plugins/application/serverless_app_plugin.py:53:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/plugins/application/serverless_app_plugin.py:66:4: W0221: Parameters differ from overridden 'on_before_transform_template' method (arguments-differ)
samtranslator/plugins/application/serverless_app_plugin.py:353:16: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/plugins/application/serverless_app_plugin.py:2:0: C0411: standard import "import json" should be placed before "import boto3" (wrong-import-order)
samtranslator/plugins/application/serverless_app_plugin.py:4:0: C0411: standard import "import logging" should be placed before "import boto3" (wrong-import-order)
samtranslator/plugins/application/serverless_app_plugin.py:5:0: C0411: standard import "from time import sleep, time" should be placed before "import boto3" (wrong-import-order)
samtranslator/plugins/application/serverless_app_plugin.py:6:0: C0411: standard import "import copy" should be placed before "import boto3" (wrong-import-order)
************* Module samtranslator.utils.cfn_dynamic_references
samtranslator/utils/cfn_dynamic_references.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/utils/cfn_dynamic_references.py:4:25: W0622: Redefining built-in 'input' (redefined-builtin)
************* Module samtranslator.parser.parser
samtranslator/parser/parser.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.translator.managed_policy_translator
samtranslator/translator/managed_policy_translator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/translator/managed_policy_translator.py:1:0: R0205: Class 'ManagedPolicyLoader' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.translator.verify_logical_id
samtranslator/translator/verify_logical_id.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.translator.arn_generator
samtranslator/translator/arn_generator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/translator/arn_generator.py:4:0: R0205: Class 'ArnGenerator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/translator/arn_generator.py:48:8: R1705: Unnecessary "elif" after "return" (no-else-return)
************* Module samtranslator.translator.transform
samtranslator/translator/transform.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.translator.translator
samtranslator/translator/translator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/translator/translator.py:53:8: R1702: Too many nested blocks (6/5) (too-many-nested-blocks)
samtranslator/translator/translator.py:168:8: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/translator/translator.py:76:4: R0912: Too many branches (13/12) (too-many-branches)
samtranslator/translator/translator.py:76:4: R0915: Too many statements (55/30) (too-many-statements)
samtranslator/translator/translator.py:199:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/translator/translator.py:204:12: R1724: Unnecessary "elif" after "continue" (no-else-continue)
samtranslator/translator/translator.py:92:8: W0201: Attribute 'function_names' defined outside __init__ (attribute-defined-outside-init)
samtranslator/translator/translator.py:93:8: W0201: Attribute 'redeploy_restapi_parameters' defined outside __init__ (attribute-defined-outside-init)
samtranslator/translator/translator.py:218:0: W0102: Dangerous default value {} as argument (dangerous-default-value)
samtranslator/translator/translator.py:249:4: C0415: Import outside toplevel (samtranslator.plugins.api.implicit_rest_api_plugin.ImplicitRestApiPlugin) (import-outside-toplevel)
samtranslator/translator/translator.py:256:4: C0415: Import outside toplevel (samtranslator.plugins.api.implicit_http_api_plugin.ImplicitHttpApiPlugin) (import-outside-toplevel)
************* Module samtranslator.translator.logical_id_generator
samtranslator/translator/logical_id_generator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/translator/logical_id_generator.py:7:0: R0205: Class 'LogicalIdGenerator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/translator/logical_id_generator.py:68:41: E0602: Undefined variable 'unicode' (undefined-variable)
************* Module samtranslator.public.plugins
samtranslator/public/plugins.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.swagger
samtranslator/public/swagger.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.models
samtranslator/public/models.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.open_api
samtranslator/public/open_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.intrinsics
samtranslator/public/intrinsics.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.parser
samtranslator/public/parser.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.exceptions
samtranslator/public/exceptions.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.translator
samtranslator/public/translator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.helpers
samtranslator/public/helpers.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/public/helpers.py:3:0: E0611: No name 'add_default_parameter_values' in module 'samtranslator.translator' (no-name-in-module)
************* Module samtranslator.public.sdk.resource
samtranslator/public/sdk/resource.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.sdk.template
samtranslator/public/sdk/template.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.public.sdk.parameter
samtranslator/public/sdk/parameter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.sdk.resource
samtranslator/sdk/resource.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/sdk/resource.py:6:0: R0205: Class 'SamResource' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.sdk.template
samtranslator/sdk/template.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/sdk/template.py:5:-1: W0105: String statement has no effect (pointless-string-statement)
samtranslator/sdk/template.py:8:0: R0205: Class 'SamTemplate' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/sdk/template.py:31:12: C0103: Variable name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/sdk/template.py:41:4: C0103: Argument name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/sdk/template.py:55:4: C0103: Argument name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/sdk/template.py:67:4: C0103: Argument name "logicalId" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
************* Module samtranslator.sdk.parameter
samtranslator/sdk/parameter.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/sdk/parameter.py:5:0: R0205: Class 'SamParameterValues' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/sdk/parameter.py:19:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
samtranslator/sdk/parameter.py:2:0: C0411: standard import "import copy" should be placed before "import boto3" (wrong-import-order)
************* Module samtranslator.feature_toggle.feature_toggle
samtranslator/feature_toggle/feature_toggle.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/feature_toggle/feature_toggle.py:31:24: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:35:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:39:17: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:52:24: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:56:21: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:63:17: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:119:22: W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
samtranslator/feature_toggle/feature_toggle.py:5:0: C0411: standard import "import logging" should be placed before "import boto3" (wrong-import-order)
************* Module samtranslator.model.function_policies
samtranslator/model/function_policies.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/function_policies.py:12:0: R0205: Class 'FunctionPolicies' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.model.dynamodb
samtranslator/model/dynamodb.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.sam_resources
samtranslator/model/sam_resources.py:929:8: C0103: Attribute name "AttributeDefinitions" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:930:8: C0103: Attribute name "KeySchema" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:933:12: C0103: Attribute name "ProvisionedThroughput" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:935:12: C0103: Attribute name "BillingMode" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:938:12: C0103: Attribute name "SSESpecification" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:941:12: C0103: Attribute name "TableName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:944:12: C0103: Attribute name "Tags" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.cognito
samtranslator/model/cognito.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.iam
samtranslator/model/iam.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.preferences.deployment_preference_collection
samtranslator/model/preferences/deployment_preference_collection.py:94:8: C0103: Attribute name "AssumeRolePolicyDocument" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:104:8: C0103: Attribute name "ManagedPolicyArns" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.sqs
samtranslator/model/sqs.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.log
samtranslator/model/log.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.naming
samtranslator/model/naming.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/naming.py:1:0: R0205: Class 'GeneratedLogicalId' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.model.lambda_
samtranslator/model/lambda_.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/sam_resources.py:178:12: C0103: Attribute name "Role" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:393:12: C0103: Attribute name "FunctionName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:395:8: C0103: Attribute name "Handler" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:396:8: C0103: Attribute name "Runtime" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:397:8: C0103: Attribute name "Description" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:398:8: C0103: Attribute name "MemorySize" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:399:8: C0103: Attribute name "Timeout" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:400:8: C0103: Attribute name "VpcConfig" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:402:8: C0103: Attribute name "Environment" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:403:8: C0103: Attribute name "Code" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:404:8: C0103: Attribute name "KmsKeyArn" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:405:8: C0103: Attribute name "ReservedConcurrentExecutions" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:406:8: C0103: Attribute name "Tags" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:407:8: C0103: Attribute name "Layers" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:408:8: C0103: Attribute name "FileSystemConfigs" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:411:12: C0103: Attribute name "TracingConfig" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:414:12: C0103: Attribute name "DeadLetterConfig" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:636:8: C0103: Attribute name "FunctionName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:637:8: C0103: Attribute name "Description" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:656:8: C0103: Attribute name "Name" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:657:8: C0103: Attribute name "FunctionName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:658:8: C0103: Attribute name "FunctionVersion" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:660:12: C0103: Attribute name "ProvisionedConcurrencyConfig" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:238:8: C0103: Attribute name "FunctionName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:240:12: C0103: Attribute name "Qualifier" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:243:8: C0103: Attribute name "DestinationConfig" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:244:8: C0103: Attribute name "MaximumEventAgeInSeconds" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:247:8: C0103: Attribute name "MaximumRetryAttempts" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1082:8: C0103: Attribute name "LayerName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1083:8: C0103: Attribute name "Description" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1084:8: C0103: Attribute name "Content" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1085:8: C0103: Attribute name "CompatibleRuntimes" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1086:8: C0103: Attribute name "LicenseInfo" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.events
samtranslator/model/events.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.cloudformation
samtranslator/model/cloudformation.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/sam_resources.py:985:8: C0103: Attribute name "Parameters" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:986:8: C0103: Attribute name "NotificationARNs" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:988:8: C0103: Attribute name "Tags" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:989:8: C0103: Attribute name "TimeoutInMinutes" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:990:8: C0103: Attribute name "TemplateURL" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.resource_policies
samtranslator/model/resource_policies.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/resource_policies.py:12:0: R0205: Class 'ResourcePolicies' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.model.apigatewayv2
samtranslator/model/apigatewayv2.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/apigatewayv2.py:61:0: R0205: Class 'ApiGatewayV2Authorizer' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module samtranslator.model
samtranslator/model/__init__.py:11:0: R0205: Class 'PropertyType' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/__init__.py:27:0: R0205: Class 'Resource' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/__init__.py:106:8: W0212: Access to a protected member _validate_resource_dict of a client class (protected-access)
samtranslator/model/__init__.py:123:20: W0212: Access to a protected member _supported_resource_attributes of a client class (protected-access)
samtranslator/model/__init__.py:209:20: E1133: Non-iterable value self.property_types is used in an iterating context (not-an-iterable)
samtranslator/model/__init__.py:226:45: E1135: Value 'self.property_types' doesn't support membership test (unsupported-membership-test)
samtranslator/model/__init__.py:227:19: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/model/__init__.py:309:8: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/model/__init__.py:357:0: W0223: Method 'to_cloudformation' is abstract in class 'ResourceMacro' but is not overridden (abstract-method)
samtranslator/model/__init__.py:404:12: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/model/__init__.py:451:0: R0205: Class 'ResourceTypeResolver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/__init__.py:4:0: C0411: standard import "import re" should be placed before "from six import string_types" (wrong-import-order)
samtranslator/model/__init__.py:5:0: C0411: standard import "import inspect" should be placed before "from six import string_types" (wrong-import-order)
************* Module samtranslator.model.apigateway
samtranslator/model/apigateway.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/apigateway.py:50:8: C0103: Attribute name "DeploymentId" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/apigateway.py:50:8: W0201: Attribute 'DeploymentId' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/apigateway.py:109:8: C0103: Attribute name "Description" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/apigateway.py:109:8: W0201: Attribute 'Description' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/apigateway.py:113:0: R0205: Class 'ApiGatewayResponse' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/apigateway.py:147:8: C0103: Variable name "GATEWAY_RESPONSE_PREFIX" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/model/apigateway.py:219:0: R0205: Class 'ApiGatewayAuthorizer' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/apigateway.py:222:4: W0102: Dangerous default value [] as argument (dangerous-default-value)
samtranslator/model/apigateway.py:276:8: C0103: Variable name "APIGATEWAY_AUTHORIZER_KEY" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/model/apigateway.py:412:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module samtranslator.model.codedeploy
samtranslator/model/codedeploy.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/preferences/deployment_preference_collection.py:89:8: C0103: Attribute name "ComputePlatform" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:121:12: C0103: Attribute name "AlarmConfiguration" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:126:8: C0103: Attribute name "ApplicationName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:127:8: C0103: Attribute name "AutoRollbackConfiguration" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:132:8: C0103: Attribute name "DeploymentConfigName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:136:8: C0103: Attribute name "DeploymentStyle" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:138:8: C0103: Attribute name "ServiceRoleArn" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:143:12: C0103: Attribute name "TriggerConfigurations" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.intrinsics
samtranslator/model/intrinsics.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/intrinsics.py:1:0: C0103: Function name "fnGetAtt" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/intrinsics.py:9:0: C0103: Function name "fnJoin" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/intrinsics.py:13:0: C0103: Function name "fnSub" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/intrinsics.py:19:0: C0103: Function name "fnOr" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/intrinsics.py:23:0: C0103: Function name "fnAnd" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/intrinsics.py:27:0: W0102: Dangerous default value {} as argument (dangerous-default-value)
samtranslator/model/intrinsics.py:124:4: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/model/intrinsics.py:132:17: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/model/intrinsics.py:149:20: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/model/intrinsics.py:165:26: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/model/sam_resources.py:1:0: C0302: Too many lines in module (1175/1000) (too-many-lines)
samtranslator/model/sam_resources.py:95:4: C0103: Class attribute name "dead_letter_queue_policy_actions" doesn't conform to '([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$' pattern ('([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:114:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:129:11: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:135:11: E1101: Instance of 'SamFunction' has no 'ProvisionedConcurrencyConfig' member (no-member)
samtranslator/model/sam_resources.py:136:19: E1101: Instance of 'SamFunction' has no 'AutoPublishAlias' member (no-member)
samtranslator/model/sam_resources.py:144:11: E1101: Instance of 'SamFunction' has no 'AutoPublishAlias' member (no-member)
samtranslator/model/sam_resources.py:145:75: E1101: Instance of 'SamFunction' has no 'AutoPublishAlias' member (no-member)
samtranslator/model/sam_resources.py:147:15: E1101: Instance of 'SamFunction' has no 'AutoPublishCodeSha256' member (no-member)
samtranslator/model/sam_resources.py:148:73: E1101: Instance of 'SamFunction' has no 'AutoPublishCodeSha256' member (no-member)
samtranslator/model/sam_resources.py:156:11: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:164:11: E1101: Instance of 'SamFunction' has no 'EventInvokeConfig' member (no-member)
samtranslator/model/sam_resources.py:190:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:116:4: R0915: Too many statements (42/30) (too-many-statements)
samtranslator/model/sam_resources.py:202:82: E1101: Instance of 'SamFunction' has no 'EventInvokeConfig' member (no-member)
samtranslator/model/sam_resources.py:221:12: E1101: Instance of 'SamFunction' has no 'EventInvokeConfig' member (no-member)
samtranslator/model/sam_resources.py:232:12: E1101: Instance of 'SamFunction' has no 'EventInvokeConfig' member (no-member)
samtranslator/model/sam_resources.py:194:4: R0915: Too many statements (36/30) (too-many-statements)
samtranslator/model/sam_resources.py:392:11: E1101: Instance of 'SamFunction' has no 'FunctionName' member (no-member)
samtranslator/model/sam_resources.py:393:43: E1101: Instance of 'SamFunction' has no 'FunctionName' member (no-member)
samtranslator/model/sam_resources.py:395:34: E1101: Instance of 'SamFunction' has no 'Handler' member (no-member)
samtranslator/model/sam_resources.py:396:34: E1101: Instance of 'SamFunction' has no 'Runtime' member (no-member)
samtranslator/model/sam_resources.py:397:38: E1101: Instance of 'SamFunction' has no 'Description' member (no-member)
samtranslator/model/sam_resources.py:398:37: E1101: Instance of 'SamFunction' has no 'MemorySize' member (no-member)
samtranslator/model/sam_resources.py:399:34: E1101: Instance of 'SamFunction' has no 'Timeout' member (no-member)
samtranslator/model/sam_resources.py:400:36: E1101: Instance of 'SamFunction' has no 'VpcConfig' member (no-member)
samtranslator/model/sam_resources.py:401:31: E1101: Instance of 'SamFunction' has no 'Role' member (no-member)
samtranslator/model/sam_resources.py:402:38: E1101: Instance of 'SamFunction' has no 'Environment' member (no-member)
samtranslator/model/sam_resources.py:404:36: E1101: Instance of 'SamFunction' has no 'KmsKeyArn' member (no-member)
samtranslator/model/sam_resources.py:405:55: E1101: Instance of 'SamFunction' has no 'ReservedConcurrentExecutions' member (no-member)
samtranslator/model/sam_resources.py:406:56: E1101: Instance of 'SamFunction' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:407:33: E1101: Instance of 'SamFunction' has no 'Layers' member (no-member)
samtranslator/model/sam_resources.py:408:44: E1101: Instance of 'SamFunction' has no 'FileSystemConfigs' member (no-member)
samtranslator/model/sam_resources.py:410:11: E1101: Instance of 'SamFunction' has no 'Tracing' member (no-member)
samtranslator/model/sam_resources.py:411:53: E1101: Instance of 'SamFunction' has no 'Tracing' member (no-member)
samtranslator/model/sam_resources.py:413:11: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:414:61: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:440:11: E1101: Instance of 'SamFunction' has no 'AssumeRolePolicyDocument' member (no-member)
samtranslator/model/sam_resources.py:441:42: E1101: Instance of 'SamFunction' has no 'AssumeRolePolicyDocument' member (no-member)
samtranslator/model/sam_resources.py:446:11: E1101: Instance of 'SamFunction' has no 'Tracing' member (no-member)
samtranslator/model/sam_resources.py:448:11: E1101: Instance of 'SamFunction' has no 'VpcConfig' member (no-member)
samtranslator/model/sam_resources.py:454:25: E1101: Instance of 'SamFunction' has no 'Policies' member (no-member)
samtranslator/model/sam_resources.py:460:11: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:463:58: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:464:20: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:468:11: E1101: Instance of 'SamFunction' has no 'EventInvokeConfig' member (no-member)
samtranslator/model/sam_resources.py:480:33: E1101: Instance of 'SamFunction' has no 'PermissionsBoundary' member (no-member)
samtranslator/model/sam_resources.py:481:42: E1101: Instance of 'SamFunction' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:491:15: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:491:55: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:494:16: E1305: Too many arguments for format string (too-many-format-args)
samtranslator/model/sam_resources.py:498:15: E1101: Instance of 'SamFunction' has no 'DeadLetterQueue' member (no-member)
samtranslator/model/sam_resources.py:505:11: E1101: Instance of 'SamFunction' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:506:42: E1101: Instance of 'SamFunction' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:512:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:548:11: E1101: Instance of 'SamFunction' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:549:49: E1101: Instance of 'SamFunction' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:555:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:571:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/model/sam_resources.py:571:11: E1101: Instance of 'SamFunction' has no 'InlineCode' member (no-member)
samtranslator/model/sam_resources.py:572:31: E1101: Instance of 'SamFunction' has no 'InlineCode' member (no-member)
samtranslator/model/sam_resources.py:573:13: E1101: Instance of 'SamFunction' has no 'CodeUri' member (no-member)
samtranslator/model/sam_resources.py:574:48: E1101: Instance of 'SamFunction' has no 'CodeUri' member (no-member)
samtranslator/model/sam_resources.py:637:37: E1101: Instance of 'SamFunction' has no 'VersionDescription' member (no-member)
samtranslator/model/sam_resources.py:659:11: E1101: Instance of 'SamFunction' has no 'ProvisionedConcurrencyConfig' member (no-member)
samtranslator/model/sam_resources.py:660:49: E1101: Instance of 'SamFunction' has no 'ProvisionedConcurrencyConfig' member (no-member)
samtranslator/model/sam_resources.py:664:4: C0103: Method name "_validate_deployment_preference_and_add_update_policy" doesn't conform to '[a-z_][a-z0-9_]{2,50}$' pattern ('[a-z_][a-z0-9_]{2,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:667:24: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:669:22: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:672:12: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:674:21: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:676:30: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:679:12: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:684:62: E1101: Instance of 'SamFunction' has no 'DeploymentPreference' member (no-member)
samtranslator/model/sam_resources.py:687:15: E1101: Instance of 'SamFunction' has no 'AutoPublishAlias' member (no-member)
samtranslator/model/sam_resources.py:754:8: C0103: Attribute name "BinaryMediaTypes" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:755:8: C0103: Attribute name "Domain" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:756:8: C0103: Attribute name "Auth" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:761:12: E1101: Instance of 'SamApi' has no 'CacheClusterEnabled' member (no-member)
samtranslator/model/sam_resources.py:762:12: E1101: Instance of 'SamApi' has no 'CacheClusterSize' member (no-member)
samtranslator/model/sam_resources.py:763:12: E1101: Instance of 'SamApi' has no 'Variables' member (no-member)
samtranslator/model/sam_resources.py:765:12: E1101: Instance of 'SamApi' has no 'DefinitionBody' member (no-member)
samtranslator/model/sam_resources.py:766:12: E1101: Instance of 'SamApi' has no 'DefinitionUri' member (no-member)
samtranslator/model/sam_resources.py:767:12: E1101: Instance of 'SamApi' has no 'Name' member (no-member)
samtranslator/model/sam_resources.py:768:12: E1101: Instance of 'SamApi' has no 'StageName' member (no-member)
samtranslator/model/sam_resources.py:769:17: E1101: Instance of 'SamApi' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:770:35: E1101: Instance of 'SamApi' has no 'EndpointConfiguration' member (no-member)
samtranslator/model/sam_resources.py:771:28: E1101: Instance of 'SamApi' has no 'MethodSettings' member (no-member)
samtranslator/model/sam_resources.py:773:37: E1101: Instance of 'SamApi' has no 'MinimumCompressionSize' member (no-member)
samtranslator/model/sam_resources.py:774:17: E1101: Instance of 'SamApi' has no 'Cors' member (no-member)
samtranslator/model/sam_resources.py:776:30: E1101: Instance of 'SamApi' has no 'GatewayResponses' member (no-member)
samtranslator/model/sam_resources.py:777:31: E1101: Instance of 'SamApi' has no 'AccessLogSetting' member (no-member)
samtranslator/model/sam_resources.py:778:27: E1101: Instance of 'SamApi' has no 'CanarySetting' member (no-member)
samtranslator/model/sam_resources.py:779:28: E1101: Instance of 'SamApi' has no 'TracingEnabled' member (no-member)
samtranslator/model/sam_resources.py:782:29: E1101: Instance of 'SamApi' has no 'OpenApiVersion' member (no-member)
samtranslator/model/sam_resources.py:783:19: E1101: Instance of 'SamApi' has no 'Models' member (no-member)
samtranslator/model/sam_resources.py:754:8: W0201: Attribute 'BinaryMediaTypes' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:755:8: W0201: Attribute 'Domain' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:756:8: W0201: Attribute 'Auth' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:853:8: C0103: Attribute name "CorsConfiguration" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:856:8: C0103: Attribute name "Domain" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:860:12: E1101: Instance of 'SamHttpApi' has no 'StageVariables' member (no-member)
samtranslator/model/sam_resources.py:862:12: E1101: Instance of 'SamHttpApi' has no 'DefinitionBody' member (no-member)
samtranslator/model/sam_resources.py:863:12: E1101: Instance of 'SamHttpApi' has no 'DefinitionUri' member (no-member)
samtranslator/model/sam_resources.py:864:12: E1101: Instance of 'SamHttpApi' has no 'StageName' member (no-member)
samtranslator/model/sam_resources.py:865:17: E1101: Instance of 'SamHttpApi' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:866:17: E1101: Instance of 'SamHttpApi' has no 'Auth' member (no-member)
samtranslator/model/sam_resources.py:868:32: E1101: Instance of 'SamHttpApi' has no 'AccessLogSettings' member (no-member)
samtranslator/model/sam_resources.py:869:27: E1101: Instance of 'SamHttpApi' has no 'RouteSettings' member (no-member)
samtranslator/model/sam_resources.py:870:35: E1101: Instance of 'SamHttpApi' has no 'DefaultRouteSettings' member (no-member)
samtranslator/model/sam_resources.py:874:29: E1101: Instance of 'SamHttpApi' has no 'FailOnWarnings' member (no-member)
samtranslator/model/sam_resources.py:853:8: W0201: Attribute 'CorsConfiguration' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:856:8: W0201: Attribute 'Domain' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:916:11: E1101: Instance of 'SamSimpleTable' has no 'PrimaryKey' member (no-member)
samtranslator/model/sam_resources.py:917:29: E1101: Instance of 'SamSimpleTable' has no 'PrimaryKey' member (no-member)
samtranslator/model/sam_resources.py:917:62: E1101: Instance of 'SamSimpleTable' has no 'PrimaryKey' member (no-member)
samtranslator/model/sam_resources.py:922:33: E1101: Instance of 'SamSimpleTable' has no 'PrimaryKey' member (no-member)
samtranslator/model/sam_resources.py:923:62: E1101: Instance of 'SamSimpleTable' has no 'PrimaryKey' member (no-member)
samtranslator/model/sam_resources.py:932:11: E1101: Instance of 'SamSimpleTable' has no 'ProvisionedThroughput' member (no-member)
samtranslator/model/sam_resources.py:933:51: E1101: Instance of 'SamSimpleTable' has no 'ProvisionedThroughput' member (no-member)
samtranslator/model/sam_resources.py:937:11: E1101: Instance of 'SamSimpleTable' has no 'SSESpecification' member (no-member)
samtranslator/model/sam_resources.py:938:46: E1101: Instance of 'SamSimpleTable' has no 'SSESpecification' member (no-member)
samtranslator/model/sam_resources.py:940:11: E1101: Instance of 'SamSimpleTable' has no 'TableName' member (no-member)
samtranslator/model/sam_resources.py:941:39: E1101: Instance of 'SamSimpleTable' has no 'TableName' member (no-member)
samtranslator/model/sam_resources.py:943:16: E1101: Instance of 'SamSimpleTable' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:944:47: E1101: Instance of 'SamSimpleTable' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:985:34: E1101: Instance of 'SamApplication' has no 'Parameters' member (no-member)
samtranslator/model/sam_resources.py:986:40: E1101: Instance of 'SamApplication' has no 'NotificationARNs' member (no-member)
samtranslator/model/sam_resources.py:988:53: E1101: Instance of 'SamApplication' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:989:40: E1101: Instance of 'SamApplication' has no 'TimeoutInMinutes' member (no-member)
samtranslator/model/sam_resources.py:990:55: E1101: Instance of 'SamApplication' has no 'TemplateUrl' member (no-member)
samtranslator/model/sam_resources.py:990:35: E1101: Instance of 'SamApplication' has no 'TemplateUrl' member (no-member)
samtranslator/model/sam_resources.py:998:22: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:999:42: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:999:67: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:1000:54: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:1002:45: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:1003:20: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:1005:57: E1101: Instance of 'SamApplication' has no 'Location' member (no-member)
samtranslator/model/sam_resources.py:1050:8: C0103: Attribute name "LayerName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1051:8: C0103: Attribute name "LicenseInfo" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1052:8: C0103: Attribute name "Description" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1053:8: C0103: Attribute name "RetentionPolicy" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/sam_resources.py:1084:60: E1101: Instance of 'SamLayerVersion' has no 'ContentUri' member (no-member)
samtranslator/model/sam_resources.py:1085:42: E1101: Instance of 'SamLayerVersion' has no 'CompatibleRuntimes' member (no-member)
samtranslator/model/sam_resources.py:1097:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/model/sam_resources.py:1090:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
samtranslator/model/sam_resources.py:1050:8: W0201: Attribute 'LayerName' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:1080:12: W0201: Attribute 'LayerName' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:1051:8: W0201: Attribute 'LicenseInfo' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:1052:8: W0201: Attribute 'Description' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:1053:8: W0201: Attribute 'RetentionPolicy' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/sam_resources.py:1138:23: E1101: Instance of 'SamStateMachine' has no 'Definition' member (no-member)
samtranslator/model/sam_resources.py:1139:27: E1101: Instance of 'SamStateMachine' has no 'DefinitionUri' member (no-member)
samtranslator/model/sam_resources.py:1140:20: E1101: Instance of 'SamStateMachine' has no 'Logging' member (no-member)
samtranslator/model/sam_resources.py:1141:17: E1101: Instance of 'SamStateMachine' has no 'Name' member (no-member)
samtranslator/model/sam_resources.py:1142:21: E1101: Instance of 'SamStateMachine' has no 'Policies' member (no-member)
samtranslator/model/sam_resources.py:1143:37: E1101: Instance of 'SamStateMachine' has no 'DefinitionSubstitutions' member (no-member)
samtranslator/model/sam_resources.py:1144:17: E1101: Instance of 'SamStateMachine' has no 'Role' member (no-member)
samtranslator/model/sam_resources.py:1145:31: E1101: Instance of 'SamStateMachine' has no 'Type' member (no-member)
samtranslator/model/sam_resources.py:1146:20: E1101: Instance of 'SamStateMachine' has no 'Tracing' member (no-member)
samtranslator/model/sam_resources.py:1147:19: E1101: Instance of 'SamStateMachine' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:1150:17: E1101: Instance of 'SamStateMachine' has no 'Tags' member (no-member)
samtranslator/model/sam_resources.py:1162:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:1166:11: E1101: Instance of 'SamStateMachine' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:1167:42: E1101: Instance of 'SamStateMachine' has no 'Events' member (no-member)
samtranslator/model/sam_resources.py:1173:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/sam_resources.py:12:0: C0411: first party import "from samtranslator.model import PropertyType, SamResourceMacro, ResourceTypeResolver" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:13:0: C0411: first party import "from samtranslator.model.apigateway import ApiGatewayDeployment, ApiGatewayStage, ApiGatewayDomainName, ApiGatewayUsagePlan, ApiGatewayUsagePlanKey, ApiGatewayApiKey" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:21:0: C0411: first party import "from samtranslator.model.apigatewayv2 import ApiGatewayV2Stage, ApiGatewayV2DomainName" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:22:0: C0411: first party import "from samtranslator.model.cloudformation import NestedStack" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:23:0: C0411: first party import "from samtranslator.model.dynamodb import DynamoDBTable" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:24:0: C0411: first party import "from samtranslator.model.exceptions import InvalidEventException, InvalidResourceException" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:25:0: C0411: first party import "from samtranslator.model.resource_policies import ResourcePolicies, PolicyTypes" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:26:0: C0411: first party import "from samtranslator.model.iam import IAMRole, IAMRolePolicies" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:27:0: C0411: first party import "from samtranslator.model.lambda_ import LambdaFunction, LambdaVersion, LambdaAlias, LambdaLayerVersion, LambdaEventInvokeConfig" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:34:0: C0411: first party import "from samtranslator.model.types import dict_of, is_str, is_type, list_of, one_of, any_type" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:35:0: C0411: first party import "from samtranslator.translator import logical_id_generator" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:36:0: C0411: first party import "from samtranslator.translator.arn_generator import ArnGenerator" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:37:0: C0411: first party import "from samtranslator.model.intrinsics import is_intrinsic_if, is_intrinsic_no_value, ref, make_not_conditional, make_conditional, make_and_condition" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:45:0: C0411: first party import "from samtranslator.model.sqs import SQSQueue" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:46:0: C0411: first party import "from samtranslator.model.sns import SNSTopic" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:47:0: C0411: first party import "from samtranslator.model.stepfunctions import StateMachineGenerator" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
samtranslator/model/sam_resources.py:48:0: C0411: first party import "from samtranslator.model.role_utils import construct_role_for_resource" should be placed before "from .api.api_generator import ApiGenerator" (wrong-import-order)
************* Module samtranslator.model.route53
samtranslator/model/route53.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.api.api_generator
samtranslator/model/api/api_generator.py:354:16: C0103: Attribute name "HostedZoneId" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/api/api_generator.py:356:16: C0103: Attribute name "HostedZoneName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/api/api_generator.py:357:12: C0103: Attribute name "RecordSets" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.exceptions
samtranslator/model/exceptions.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/exceptions.py:29:49: W0622: Redefining built-in 'type' (redefined-builtin)
************* Module samtranslator.model.update_policy
samtranslator/model/update_policy.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.s3
samtranslator/model/s3.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.iot
samtranslator/model/iot.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.eventsources.push
samtranslator/model/eventsources/push.py:852:8: C0103: Attribute name "TopicRulePayload" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.sns
samtranslator/model/sns.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/eventsources/push.py:442:8: C0103: Attribute name "Protocol" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:443:8: C0103: Attribute name "Endpoint" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:444:8: C0103: Attribute name "TopicArn" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:446:12: C0103: Attribute name "Region" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:451:12: C0103: Attribute name "FilterPolicy" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/preferences/deployment_preference_collection.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/preferences/deployment_preference_collection.py:25:0: R0205: Class 'DeploymentPreferenceCollection' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/preferences/deployment_preference_collection.py:148:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/model/preferences/deployment_preference_collection.py:149:12: C0200: Consider using enumerate instead of iterating with range and len (consider-using-enumerate)
samtranslator/model/preferences/deployment_preference_collection.py:2:0: C0411: first party import "from samtranslator.model.codedeploy import CodeDeployApplication" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:3:0: C0411: first party import "from samtranslator.model.codedeploy import CodeDeployDeploymentGroup" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:4:0: C0411: first party import "from samtranslator.model.iam import IAMRole" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:5:0: C0411: first party import "from samtranslator.model.intrinsics import fnSub, is_intrinsic" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:6:0: C0411: first party import "from samtranslator.model.update_policy import UpdatePolicy" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:7:0: C0411: first party import "from samtranslator.translator.arn_generator import ArnGenerator" should be placed before "from .deployment_preference import DeploymentPreference" (wrong-import-order)
samtranslator/model/preferences/deployment_preference_collection.py:8:0: C0411: standard import "import copy" should be placed before "from samtranslator.model.codedeploy import CodeDeployApplication" (wrong-import-order)
************* Module samtranslator.model.preferences.deployment_preference
samtranslator/model/preferences/deployment_preference.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/preferences/deployment_preference.py:25:-1: W0105: String statement has no effect (pointless-string-statement)
************* Module samtranslator.model.eventsources.pull
samtranslator/model/eventsources/pull.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/eventsources/pull.py:63:15: E1101: Instance of 'PullEventSource' has no 'Stream' member (no-member)
samtranslator/model/eventsources/pull.py:63:35: E1101: Instance of 'PullEventSource' has no 'Queue' member (no-member)
samtranslator/model/eventsources/pull.py:68:11: E1101: Instance of 'PullEventSource' has no 'Stream' member (no-member)
samtranslator/model/eventsources/pull.py:68:31: E1101: Instance of 'PullEventSource' has no 'StartingPosition' member (no-member)
samtranslator/model/eventsources/pull.py:72:51: E1101: Instance of 'PullEventSource' has no 'Stream' member (no-member)
samtranslator/model/eventsources/pull.py:72:66: E1101: Instance of 'PullEventSource' has no 'Queue' member (no-member)
samtranslator/model/eventsources/pull.py:73:53: E1101: Instance of 'PullEventSource' has no 'StartingPosition' member (no-member)
samtranslator/model/eventsources/pull.py:74:46: E1101: Instance of 'PullEventSource' has no 'BatchSize' member (no-member)
samtranslator/model/eventsources/pull.py:75:44: E1101: Instance of 'PullEventSource' has no 'Enabled' member (no-member)
samtranslator/model/eventsources/pull.py:76:67: E1101: Instance of 'PullEventSource' has no 'MaximumBatchingWindowInSeconds' member (no-member)
samtranslator/model/eventsources/pull.py:77:57: E1101: Instance of 'PullEventSource' has no 'MaximumRetryAttempts' member (no-member)
samtranslator/model/eventsources/pull.py:78:63: E1101: Instance of 'PullEventSource' has no 'BisectBatchOnFunctionError' member (no-member)
samtranslator/model/eventsources/pull.py:79:62: E1101: Instance of 'PullEventSource' has no 'MaximumRecordAgeInSeconds' member (no-member)
samtranslator/model/eventsources/pull.py:80:58: E1101: Instance of 'PullEventSource' has no 'ParallelizationFactor' member (no-member)
samtranslator/model/eventsources/pull.py:81:43: E1101: Instance of 'PullEventSource' has no 'Topics' member (no-member)
samtranslator/model/eventsources/pull.py:84:11: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:86:31: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:91:20: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:95:19: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:100:32: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:105:36: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:109:58: E1101: Instance of 'PullEventSource' has no 'DestinationConfig' member (no-member)
samtranslator/model/eventsources/pull.py:39:4: R0915: Too many statements (46/30) (too-many-statements)
samtranslator/model/eventsources/push.py:460:8: C0103: Attribute name "Queue" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:461:8: C0103: Attribute name "BatchSize" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:462:8: C0103: Attribute name "Enabled" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.model.eventsources.cloudwatchlogs
samtranslator/model/eventsources/cloudwatchlogs.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/eventsources/cloudwatchlogs.py:42:33: E1101: Instance of 'CloudWatchLogs' has no 'LogGroupName' member (no-member)
samtranslator/model/eventsources/cloudwatchlogs.py:47:43: E1101: Instance of 'CloudWatchLogs' has no 'LogGroupName' member (no-member)
samtranslator/model/eventsources/cloudwatchlogs.py:48:44: E1101: Instance of 'CloudWatchLogs' has no 'FilterPattern' member (no-member)
samtranslator/model/eventsources/push.py:1:0: C0302: Too many lines in module (1140/1000) (too-many-lines)
samtranslator/model/eventsources/push.py:744:6: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:744:15: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:744:42: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:768:6: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:768:15: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:768:42: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/model/eventsources/push.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/eventsources/push.py:28:0: W0223: Method 'to_cloudformation' is abstract in class 'ResourceMacro' but is not overridden (abstract-method)
samtranslator/model/eventsources/push.py:116:41: E1101: Instance of 'Schedule' has no 'Schedule' member (no-member)
samtranslator/model/eventsources/push.py:117:11: E1101: Instance of 'Schedule' has no 'Enabled' member (no-member)
samtranslator/model/eventsources/push.py:118:45: E1101: Instance of 'Schedule' has no 'Enabled' member (no-member)
samtranslator/model/eventsources/push.py:119:27: E1101: Instance of 'Schedule' has no 'Name' member (no-member)
samtranslator/model/eventsources/push.py:120:34: E1101: Instance of 'Schedule' has no 'Description' member (no-member)
samtranslator/model/eventsources/push.py:137:11: E1101: Instance of 'Schedule' has no 'Input' member (no-member)
samtranslator/model/eventsources/push.py:138:30: E1101: Instance of 'Schedule' has no 'Input' member (no-member)
samtranslator/model/eventsources/push.py:171:35: E1101: Instance of 'CloudWatchEvent' has no 'EventBusName' member (no-member)
samtranslator/model/eventsources/push.py:172:35: E1101: Instance of 'CloudWatchEvent' has no 'Pattern' member (no-member)
samtranslator/model/eventsources/push.py:191:11: E1101: Instance of 'CloudWatchEvent' has no 'Input' member (no-member)
samtranslator/model/eventsources/push.py:192:30: E1101: Instance of 'CloudWatchEvent' has no 'Input' member (no-member)
samtranslator/model/eventsources/push.py:194:11: E1101: Instance of 'CloudWatchEvent' has no 'InputPath' member (no-member)
samtranslator/model/eventsources/push.py:195:34: E1101: Instance of 'CloudWatchEvent' has no 'InputPath' member (no-member)
samtranslator/model/eventsources/push.py:217:22: E1101: Instance of 'S3' has no 'Bucket' member (no-member)
samtranslator/model/eventsources/push.py:217:54: E1101: Instance of 'S3' has no 'Bucket' member (no-member)
samtranslator/model/eventsources/push.py:218:24: E1101: Instance of 'S3' has no 'Bucket' member (no-member)
samtranslator/model/eventsources/push.py:325:11: E1101: Instance of 'S3' has no 'Filter' member (no-member)
samtranslator/model/eventsources/push.py:326:43: E1101: Instance of 'S3' has no 'Filter' member (no-member)
samtranslator/model/eventsources/push.py:328:22: E1101: Instance of 'S3' has no 'Events' member (no-member)
samtranslator/model/eventsources/push.py:329:22: E1101: Instance of 'S3' has no 'Events' member (no-member)
samtranslator/model/eventsources/push.py:330:27: E1101: Instance of 'S3' has no 'Events' member (no-member)
samtranslator/model/eventsources/push.py:388:15: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:392:16: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:393:16: E1101: Instance of 'SNS' has no 'Region' member (no-member)
samtranslator/model/eventsources/push.py:394:16: E1101: Instance of 'SNS' has no 'FilterPolicy' member (no-member)
samtranslator/model/eventsources/push.py:397:68: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:400:22: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:406:57: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:408:34: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:408:46: E1101: Instance of 'SNS' has no 'Region' member (no-member)
samtranslator/model/eventsources/push.py:408:59: E1101: Instance of 'SNS' has no 'FilterPolicy' member (no-member)
samtranslator/model/eventsources/push.py:420:20: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:421:20: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:425:34: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:426:21: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:427:18: E1101: Instance of 'SNS' has no 'SqsSubscription' member (no-member)
samtranslator/model/eventsources/push.py:429:53: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:431:30: E1101: Instance of 'SNS' has no 'Topic' member (no-member)
samtranslator/model/eventsources/push.py:431:42: E1101: Instance of 'SNS' has no 'Region' member (no-member)
samtranslator/model/eventsources/push.py:431:55: E1101: Instance of 'SNS' has no 'FilterPolicy' member (no-member)
samtranslator/model/eventsources/push.py:374:4: R0915: Too many statements (33/30) (too-many-statements)
samtranslator/model/eventsources/push.py:440:4: C0103: Argument name "filterPolicy" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:555:12: C0103: Attribute name "Method" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:575:8: C0103: Attribute name "Stage" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:494:22: E1101: Instance of 'Api' has no 'RestApiId' member (no-member)
samtranslator/model/eventsources/push.py:584:41: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:592:17: E1101: Instance of 'Api' has no 'RestApiId' member (no-member)
samtranslator/model/eventsources/push.py:625:34: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:630:45: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:638:38: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:638:67: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:640:11: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:641:32: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:654:87: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:663:87: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:673:61: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:677:15: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:677:71: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:681:103: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:684:38: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:691:49: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:696:56: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:696:97: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:698:15: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:699:34: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:701:58: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:701:76: E1101: Instance of 'Api' has no 'RestApiId' member (no-member)
samtranslator/model/eventsources/push.py:706:11: E1101: Instance of 'Api' has no 'RequestModel' member (no-member)
samtranslator/model/eventsources/push.py:707:27: E1101: Instance of 'Api' has no 'RequestModel' member (no-member)
samtranslator/model/eventsources/push.py:716:73: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:725:73: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:730:25: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:730:75: E1101: Instance of 'Api' has no 'RequestModel' member (no-member)
samtranslator/model/eventsources/push.py:733:11: E1101: Instance of 'Api' has no 'RequestParameters' member (no-member)
samtranslator/model/eventsources/push.py:738:29: E1101: Instance of 'Api' has no 'RequestParameters' member (no-member)
samtranslator/model/eventsources/push.py:788:21: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:604:4: R0912: Too many branches (27/12) (too-many-branches)
samtranslator/model/eventsources/push.py:604:4: R0915: Too many statements (72/30) (too-many-statements)
samtranslator/model/eventsources/push.py:553:11: E0203: Access to member 'Method' before its definition line 555 (access-member-before-definition)
samtranslator/model/eventsources/push.py:555:12: W0201: Attribute 'Method' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/eventsources/push.py:575:8: W0201: Attribute 'Stage' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/eventsources/push.py:807:81: E1101: Instance of 'AlexaSkill' has no 'SkillId' member (no-member)
samtranslator/model/eventsources/push.py:844:19: E1101: Instance of 'IoTRule' has no 'Sql' member (no-member)
samtranslator/model/eventsources/push.py:849:11: E1101: Instance of 'IoTRule' has no 'AwsIotSqlVersion' member (no-member)
samtranslator/model/eventsources/push.py:850:42: E1101: Instance of 'IoTRule' has no 'AwsIotSqlVersion' member (no-member)
samtranslator/model/eventsources/push.py:869:22: E1101: Instance of 'Cognito' has no 'UserPool' member (no-member)
samtranslator/model/eventsources/push.py:869:56: E1101: Instance of 'Cognito' has no 'UserPool' member (no-member)
samtranslator/model/eventsources/push.py:870:26: E1101: Instance of 'Cognito' has no 'UserPool' member (no-member)
samtranslator/model/eventsources/push.py:903:25: E1101: Instance of 'Cognito' has no 'Trigger' member (no-member)
samtranslator/model/eventsources/push.py:904:22: E1101: Instance of 'Cognito' has no 'Trigger' member (no-member)
samtranslator/model/eventsources/push.py:905:30: E1101: Instance of 'Cognito' has no 'Trigger' member (no-member)
samtranslator/model/eventsources/push.py:924:107: E1101: Instance of 'Cognito' has no 'Trigger' member (no-member)
samtranslator/model/eventsources/push.py:975:12: C0103: Attribute name "Method" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/eventsources/push.py:951:17: E1101: Instance of 'HttpApi' has no 'ApiId' member (no-member)
samtranslator/model/eventsources/push.py:999:41: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1006:69: E1101: Instance of 'HttpApi' has no 'ApiId' member (no-member)
samtranslator/model/eventsources/push.py:1006:33: E1101: Instance of 'HttpApi' has no 'ApiId' member (no-member)
samtranslator/model/eventsources/push.py:1006:92: E1101: Instance of 'HttpApi' has no 'ApiId' member (no-member)
samtranslator/model/eventsources/push.py:1007:16: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/eventsources/push.py:1010:19: W0212: Access to a protected member _DEFAULT_PATH of a client class (protected-access)
samtranslator/model/eventsources/push.py:1013:12: W0212: Access to a protected member _DEFAULT_PATH of a client class (protected-access)
samtranslator/model/eventsources/push.py:1013:41: W0212: Access to a protected member _X_ANY_METHOD of a client class (protected-access)
samtranslator/model/eventsources/push.py:1022:66: W0212: Access to a protected member _X_ANY_METHOD of a client class (protected-access)
samtranslator/model/eventsources/push.py:1027:17: E1101: Instance of 'HttpApi' has no 'ApiId' member (no-member)
samtranslator/model/eventsources/push.py:995:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
samtranslator/model/eventsources/push.py:1056:53: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1061:45: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1069:38: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1069:67: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1070:11: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1072:11: E1101: Instance of 'HttpApi' has no 'TimeoutInMillis' member (no-member)
samtranslator/model/eventsources/push.py:1073:55: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1073:99: E1101: Instance of 'HttpApi' has no 'TimeoutInMillis' member (no-member)
samtranslator/model/eventsources/push.py:1074:48: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1077:30: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1080:11: E1101: Instance of 'HttpApi' has no 'PayloadFormatVersion' member (no-member)
samtranslator/model/eventsources/push.py:1082:30: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1082:89: E1101: Instance of 'HttpApi' has no 'PayloadFormatVersion' member (no-member)
samtranslator/model/eventsources/push.py:1091:28: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1095:16: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1113:75: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1122:75: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1131:45: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1134:11: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1134:67: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:1138:99: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1140:48: E1101: Instance of 'HttpApi' has no 'Path' member (no-member)
samtranslator/model/eventsources/push.py:1140:89: E1101: Instance of 'HttpApi' has no 'Auth' member (no-member)
samtranslator/model/eventsources/push.py:973:11: E0203: Access to member 'Method' before its definition line 975 (access-member-before-definition)
samtranslator/model/eventsources/push.py:975:12: W0201: Attribute 'Method' defined outside __init__ (attribute-defined-outside-init)
************* Module samtranslator.model.role_utils.role_constructor
samtranslator/model/role_utils/role_constructor.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/role_utils/role_constructor.py:9:0: R0915: Too many statements (34/30) (too-many-statements)
************* Module samtranslator.model.role_utils
samtranslator/model/role_utils/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.tags.resource_tagging
samtranslator/model/tags/resource_tagging.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.s3_utils.uri_parser
samtranslator/model/s3_utils/uri_parser.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/s3_utils/uri_parser.py:18:4: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/model/s3_utils/uri_parser.py:40:8: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/api/api_generator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/api/api_generator.py:55:0: R0205: Class 'ApiGenerator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/api/api_generator.py:270:4: R0912: Too many branches (16/12) (too-many-branches)
samtranslator/model/api/api_generator.py:270:4: R0915: Too many statements (52/30) (too-many-statements)
samtranslator/model/api/api_generator.py:424:8: C0103: Variable name "INVALID_ERROR" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/model/api/api_generator.py:577:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/model/api/api_generator.py:546:4: R0912: Too many branches (15/12) (too-many-branches)
samtranslator/model/api/api_generator.py:546:4: R0915: Too many statements (51/30) (too-many-statements)
samtranslator/model/api/api_generator.py:771:8: R1702: Too many nested blocks (8/5) (too-many-nested-blocks)
samtranslator/model/api/api_generator.py:758:4: R0912: Too many branches (13/12) (too-many-branches)
************* Module samtranslator.model.api.http_api_generator
samtranslator/model/api/http_api_generator.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/api/http_api_generator.py:32:0: R0205: Class 'HttpApiGenerator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/api/http_api_generator.py:368:8: R1720: Unnecessary "elif" after "raise" (no-else-raise)
samtranslator/model/api/http_api_generator.py:476:4: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
************* Module samtranslator.model.stepfunctions.events
samtranslator/model/stepfunctions/events.py:246:99: C0303: Trailing whitespace (trailing-whitespace)
samtranslator/model/stepfunctions/events.py:247:98: C0303: Trailing whitespace (trailing-whitespace)
samtranslator/model/stepfunctions/events.py:248:94: C0303: Trailing whitespace (trailing-whitespace)
samtranslator/model/stepfunctions/events.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/stepfunctions/events.py:18:0: W0223: Method 'to_cloudformation' is abstract in class 'ResourceMacro' but is not overridden (abstract-method)
samtranslator/model/stepfunctions/events.py:82:4: W0221: Parameters differ from overridden 'to_cloudformation' method (arguments-differ)
samtranslator/model/stepfunctions/events.py:94:41: E1101: Instance of 'Schedule' has no 'Schedule' member (no-member)
samtranslator/model/stepfunctions/events.py:95:11: E1101: Instance of 'Schedule' has no 'Enabled' member (no-member)
samtranslator/model/stepfunctions/events.py:96:45: E1101: Instance of 'Schedule' has no 'Enabled' member (no-member)
samtranslator/model/stepfunctions/events.py:97:27: E1101: Instance of 'Schedule' has no 'Name' member (no-member)
samtranslator/model/stepfunctions/events.py:98:34: E1101: Instance of 'Schedule' has no 'Description' member (no-member)
samtranslator/model/stepfunctions/events.py:119:11: E1101: Instance of 'Schedule' has no 'Input' member (no-member)
samtranslator/model/stepfunctions/events.py:120:30: E1101: Instance of 'Schedule' has no 'Input' member (no-member)
samtranslator/model/stepfunctions/events.py:137:4: W0221: Parameters differ from overridden 'to_cloudformation' method (arguments-differ)
samtranslator/model/stepfunctions/events.py:148:35: E1101: Instance of 'CloudWatchEvent' has no 'EventBusName' member (no-member)
samtranslator/model/stepfunctions/events.py:149:35: E1101: Instance of 'CloudWatchEvent' has no 'Pattern' member (no-member)
samtranslator/model/stepfunctions/events.py:172:11: E1101: Instance of 'CloudWatchEvent' has no 'Input' member (no-member)
samtranslator/model/stepfunctions/events.py:173:30: E1101: Instance of 'CloudWatchEvent' has no 'Input' member (no-member)
samtranslator/model/stepfunctions/events.py:175:11: E1101: Instance of 'CloudWatchEvent' has no 'InputPath' member (no-member)
samtranslator/model/stepfunctions/events.py:176:34: E1101: Instance of 'CloudWatchEvent' has no 'InputPath' member (no-member)
samtranslator/model/stepfunctions/events.py:265:12: C0103: Attribute name "Method" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/events.py:206:22: E1101: Instance of 'Api' has no 'RestApiId' member (no-member)
samtranslator/model/stepfunctions/events.py:245:4: W0221: Parameters differ from overridden 'to_cloudformation' method (arguments-differ)
samtranslator/model/stepfunctions/events.py:290:34: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:295:45: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:304:12: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:313:11: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:314:32: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:327:87: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:336:87: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:346:61: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:350:15: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:350:71: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:354:103: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:357:38: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:364:49: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:369:56: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:369:97: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:371:15: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:372:34: E1101: Instance of 'Api' has no 'Auth' member (no-member)
samtranslator/model/stepfunctions/events.py:374:58: E1101: Instance of 'Api' has no 'Path' member (no-member)
samtranslator/model/stepfunctions/events.py:374:76: E1101: Instance of 'Api' has no 'RestApiId' member (no-member)
samtranslator/model/stepfunctions/events.py:374:109: E1101: Instance of 'Api' has no 'Stage' member (no-member)
samtranslator/model/stepfunctions/events.py:285:8: W0612: Unused variable 'resource_arn' (unused-variable)
samtranslator/model/stepfunctions/events.py:276:4: R0912: Too many branches (15/12) (too-many-branches)
samtranslator/model/stepfunctions/events.py:276:4: R0915: Too many statements (40/30) (too-many-statements)
samtranslator/model/stepfunctions/events.py:263:11: E0203: Access to member 'Method' before its definition line 265 (access-member-before-definition)
samtranslator/model/stepfunctions/events.py:265:12: W0201: Attribute 'Method' defined outside __init__ (attribute-defined-outside-init)
samtranslator/model/stepfunctions/events.py:2:0: C0411: standard import "import json" should be placed before "from six import string_types" (wrong-import-order)
************* Module samtranslator.model.stepfunctions
samtranslator/model/stepfunctions/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.model.stepfunctions.generators
samtranslator/model/stepfunctions/generators.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/stepfunctions/generators.py:23:0: R0205: Class 'StateMachineGenerator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/model/stepfunctions/generators.py:44:8: W0621: Redefining name 'events' from outer scope (line 15) (redefined-outer-name)
samtranslator/model/stepfunctions/generators.py:111:8: R1720: Unnecessary "elif" after "raise" (no-else-raise)
samtranslator/model/stepfunctions/generators.py:131:8: R1720: Unnecessary "elif" after "raise" (no-else-raise)
samtranslator/model/stepfunctions/generators.py:98:4: R0912: Too many branches (13/12) (too-many-branches)
samtranslator/model/stepfunctions/generators.py:98:4: R0915: Too many statements (38/30) (too-many-statements)
samtranslator/model/stepfunctions/generators.py:253:20: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/model/stepfunctions/generators.py:258:57: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/model/stepfunctions/generators.py:277:39: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/model/stepfunctions/generators.py:277:4: W0102: Dangerous default value [] as argument (dangerous-default-value)
************* Module samtranslator.model.stepfunctions.resources
samtranslator/model/stepfunctions/resources.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/model/stepfunctions/generators.py:109:12: C0103: Attribute name "DefinitionSubstitutions" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:123:12: C0103: Attribute name "DefinitionString" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:125:12: C0103: Attribute name "DefinitionS3Location" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:136:12: C0103: Attribute name "RoleArn" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:147:8: C0103: Attribute name "StateMachineName" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:148:8: C0103: Attribute name "StateMachineType" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:149:8: C0103: Attribute name "LoggingConfiguration" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:150:8: C0103: Attribute name "TracingConfiguration" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
samtranslator/model/stepfunctions/generators.py:151:8: C0103: Attribute name "Tags" doesn't conform to '[a-z_][a-z0-9_]{1,50}$' pattern ('[a-z_][a-z0-9_]{1,50}$' pattern) (invalid-name)
************* Module samtranslator.policy_templates_data
samtranslator/policy_templates_data/__init__.py:1:0: C0114: Missing module docstring (missing-module-docstring)
************* Module samtranslator.intrinsics.resource_refs
samtranslator/intrinsics/resource_refs.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/intrinsics/resource_refs.py:4:0: R0205: Class 'SupportedResourceReferences' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/intrinsics/resource_refs.py:17:30: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/intrinsics/resource_refs.py:46:30: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/intrinsics/resource_refs.py:57:8: R1705: Unnecessary "else" after "return" (no-else-return)
************* Module samtranslator.intrinsics.actions
samtranslator/intrinsics/actions.py:373:10: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/intrinsics/actions.py:374:1: W1401: Anomalous backslash in string: '\}'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/intrinsics/actions.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/intrinsics/actions.py:7:0: R0205: Class 'Action' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/intrinsics/actions.py:103:8: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/intrinsics/actions.py:127:20: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/intrinsics/actions.py:239:12: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/intrinsics/actions.py:452:8: W0622: Redefining built-in 'property' (redefined-builtin)
samtranslator/intrinsics/actions.py:518:0: W0223: Method 'resolve_resource_id_refs' is abstract in class 'Action' but is not overridden (abstract-method)
samtranslator/intrinsics/actions.py:518:0: W0223: Method 'resolve_resource_refs' is abstract in class 'Action' but is not overridden (abstract-method)
************* Module samtranslator.intrinsics.resolver
samtranslator/intrinsics/resolver.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/intrinsics/resolver.py:9:0: R0205: Class 'IntrinsicsResolver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/intrinsics/resolver.py:30:37: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:43:40: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:67:43: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:90:24: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:126:8: R1705: Unnecessary "elif" after "return" (no-else-return)
samtranslator/intrinsics/resolver.py:162:42: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:179:45: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:196:48: W0622: Redefining built-in 'input' (redefined-builtin)
samtranslator/intrinsics/resolver.py:212:33: W0622: Redefining built-in 'input' (redefined-builtin)
************* Module samtranslator.policy_template_processor.processor
samtranslator/policy_template_processor/processor.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/policy_template_processor/processor.py:10:0: R0205: Class 'PolicyTemplatesProcessor' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/policy_template_processor/processor.py:120:12: W0707: Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
samtranslator/policy_template_processor/processor.py:5:0: C0411: third party import "from jsonschema.exceptions import ValidationError" should be placed before "from samtranslator import policy_templates_data" (wrong-import-order)
samtranslator/policy_template_processor/processor.py:6:0: C0412: Imports from package samtranslator are not grouped (ungrouped-imports)
************* Module samtranslator.policy_template_processor.template
samtranslator/policy_template_processor/template.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/policy_template_processor/template.py:8:0: R0205: Class 'Template' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/policy_template_processor/template.py:101:8: W0107: Unnecessary pass statement (unnecessary-pass)
************* Module samtranslator.policy_template_processor.exceptions
samtranslator/policy_template_processor/exceptions.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/policy_template_processor/exceptions.py:7:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/policy_template_processor/exceptions.py:15:4: W0235: Useless super delegation in method '__init__' (useless-super-delegation)
samtranslator/policy_template_processor/exceptions.py:16:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
samtranslator/policy_template_processor/exceptions.py:24:4: W0235: Useless super delegation in method '__init__' (useless-super-delegation)
samtranslator/policy_template_processor/exceptions.py:25:8: R1725: Consider using Python 3 style super() without arguments (super-with-arguments)
************* Module samtranslator.open_api.open_api
samtranslator/open_api/open_api.py:101:13: W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
samtranslator/open_api/open_api.py:1:0: C0114: Missing module docstring (missing-module-docstring)
samtranslator/open_api/open_api.py:12:0: R0205: Class 'OpenApiEditor' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
samtranslator/open_api/open_api.py:243:18: W0612: Unused variable 'value' (unused-variable)
samtranslator/open_api/open_api.py:329:25: W0612: Unused variable 'method' (unused-variable)
samtranslator/open_api/open_api.py:376:4: W0102: Dangerous default value [] as argument (dangerous-default-value)
samtranslator/open_api/open_api.py:458:8: C0103: Variable name "ALLOW_ORIGINS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:459:8: C0103: Variable name "ALLOW_HEADERS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:460:8: C0103: Variable name "ALLOW_METHODS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:461:8: C0103: Variable name "EXPOSE_HEADERS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:462:8: C0103: Variable name "MAX_AGE" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:463:8: C0103: Variable name "ALLOW_CREDENTIALS" doesn't conform to '[a-z_][a-z0-9_]{0,50}$' pattern ('[a-z_][a-z0-9_]{0,50}$' pattern) (invalid-name)
samtranslator/open_api/open_api.py:573:8: R1705: Unnecessary "else" after "return" (no-else-return)
samtranslator/open_api/open_api.py:9:0: C0411: standard import "import json" should be placed before "from six import string_types" (wrong-import-order)
************* Module samtranslator.open_api.__init__
samtranslator/open_api/__init__.py:1:0: R0401: Cyclic import (samtranslator.model.stepfunctions -> samtranslator.model.stepfunctions.generators) (cyclic-import)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.function_policies:25
==samtranslator.model.resource_policies:25
    POLICIES_PROPERTY_NAME = "Policies"

    def __init__(self, resource_properties, policy_template_processor=None):
        """
        Initialize with policies data from resource's properties

        :param dict resource_properties: Dictionary containing properties of this resource
        :param policy_template_processor: Optional Instance of PolicyTemplateProcessor that can conclusively detect
            if a given policy is a template or not. If not provided, then this class will not detect policy templates.
        """

        # This variable is required to get policies
        self._policy_template_processor = policy_template_processor

        # Build the list of policies upon construction.
        self.policies = self._get_policies(resource_properties)

    def get(self):
        """
        Iterator method that "yields" the next policy entry on subsequent calls to this method.

        :yields namedtuple("data", "type"): Yields a named tuple containing the policy data and its type
        """

        for policy_tuple in self.policies:
            yield policy_tuple

    def __len__(self):
        return len(self.policies)

    def _get_policies(self, resource_properties):
        """
        Returns a list of policies from the resource properties. This method knows how to interpret and handle
        polymorphic nature of the policies property.

        Policies can be one of the following:

            * Managed policy name: string
            * List of managed policy names: list of strings
            * IAM Policy document: dict containing Statement key
            * List of IAM Policy documents: list of IAM Policy Document
            * Policy Template: dict with only one key where key is in list of supported policy template names
            * List of Policy Templates: list of Policy Template


        :param dict resource_properties: Dictionary of resource properties containing the policies property.
            It is assumed that this is already a dictionary and contains policies key.
        :return list of PolicyEntry: List of policies, where each item is an instance of named tuple `PolicyEntry`
        """

        policies = None

        if self._contains_policies(resource_properties):
            policies = resource_properties[self.POLICIES_PROPERTY_NAME]

        if not policies:
            # Policies is None or empty
            return []

        if not isinstance(policies, list):
            # Just a single entry. Make it into a list of convenience
            policies = [policies]

        result = []
        for policy in policies:
            policy_type = self._get_type(policy)
            entry = PolicyEntry(data=policy, type=policy_type)
            result.append(entry)

        return result

    def _contains_policies(self, resource_properties):
        """
        Is there policies data in this resource?

        :param dict resource_properties: Properties of the resource
        :return: True if we can process this resource. False, otherwise
        """
        return (
            resource_properties is not None
            and isinstance(resource_properties, dict)
            and self.POLICIES_PROPERTY_NAME in resource_properties
        )

    def _get_type(self, policy):
        """
        Returns the type of the given policy

        :param string or dict policy: Policy data
        :return PolicyTypes: Type of the given policy. None, if type could not be inferred
        """

        # Must handle intrinsic functions. Policy could be a primitive type or an intrinsic function

        # Managed policies are of type string
        if isinstance(policy, string_types):
            return PolicyTypes.MANAGED_POLICY

        # Handle the special case for 'if' intrinsic function
        if is_intrinsic_if(policy):
            return self._get_type_from_intrinsic_if(policy)

        # Intrinsic functions are treated as managed policies by default
        if is_intrinsic(policy):
            return PolicyTypes.MANAGED_POLICY

        # Policy statement is a dictionary with the key "Statement" in it
        if isinstance(policy, dict) and "Statement" in policy:
            return PolicyTypes.POLICY_STATEMENT

        # This could be a policy template then.
        if self._is_policy_template(policy):
            return PolicyTypes.POLICY_TEMPLATE

        # Nothing matches. Don't take opinions on how to handle it. Instead just set the appropriate type.
        return PolicyTypes.UNKNOWN

    def _is_policy_template(self, policy):
        """
        Is the given policy data a policy template? Policy templates is a dictionary with one key which is the name
        of the template.

        :param dict policy: Policy data
        :return: True, if this is a policy template. False if it is not
        """

        return (
            self._policy_template_processor is not None
            and isinstance(policy, dict)
            and len(policy) == 1
            and self._policy_template_processor.has(list(policy.keys())[0]) is True
        )

    def _get_type_from_intrinsic_if(self, policy):
        """
        Returns the type of the given policy assuming that it is an intrinsic if function

        :param policy: Input value to get type from
        :return: PolicyTypes: Type of the given policy. PolicyTypes.UNKNOWN, if type could not be inferred
        """
        intrinsic_if_value = policy["Fn::If"]

        if not len(intrinsic_if_value) == 3:
            raise InvalidTemplateException("Fn::If requires 3 arguments")

        if_data = intrinsic_if_value[1]
        else_data = intrinsic_if_value[2]

        if_data_type = self._get_type(if_data)
        else_data_type = self._get_type(else_data)

        if if_data_type == else_data_type:
            return if_data_type

        if is_intrinsic_no_value(if_data):
            return else_data_type

        if is_intrinsic_no_value(else_data):
            return if_data_type

        raise InvalidTemplateException(
            "Different policy types within the same Fn::If statement is unsupported. "
            "Separate different policy types into different Fn::If statements"
        )


class PolicyTypes(Enum):
    """
    Enum of different policy types supported by SAM & this plugin
    """

    MANAGED_POLICY = "managed_policy"
    POLICY_STATEMENT = "policy_statement"
    POLICY_TEMPLATE = "policy_template"
    UNKNOWN = "unknown" (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.open_api.open_api:104
==samtranslator.swagger.swagger:73
    def method_has_integration(self, method):
        """
        Returns true if the given method contains a valid method definition.
        This uses the get_method_contents function to handle conditionals.

        :param dict method: method dictionary
        :return: true if method has one or multiple integrations
        """
        for method_definition in self.get_method_contents(method):
            if self.method_definition_has_integration(method_definition):
                return True
        return False

    def method_definition_has_integration(self, method_definition):
        """
        Checks a method definition to make sure it has an apigw integration

        :param dict method_defintion: method definition dictionary
        :return: True if an integration exists
        """
        if method_definition.get(self._X_APIGW_INTEGRATION):
            return True
        return False

    def get_method_contents(self, method):
        """
        Returns the swagger contents of the given method. This checks to see if a conditional block
        has been used inside of the method, and, if so, returns the method contents that are
        inside of the conditional.

        :param dict method: method dictionary
        :return: list of swagger component dictionaries for the method
        """
        if self._CONDITIONAL_IF in method:
            return method[self._CONDITIONAL_IF][1:]
        return [method]

    def has_integration(self, path, method):
        """
        Checks if an API Gateway integration is already present at the given path/method

        :param string path: Path name
        :param string method: HTTP method
        :return: True, if an API Gateway integration is already present
        """
        method = self._normalize_method_name(method)

        path_dict = self.get_path(path)
        return (
            self.has_path(path, method)
            and isinstance(path_dict[method], dict)
            and self.method_has_integration(path_dict[method])
        )  # Integration present and non-empty

    def add_path(self, path, method=None):
        """
        Adds the path/method combination to the Swagger, if not already present

        :param string path: Path name
        :param string method: HTTP method
        :raises ValueError: If the value of `path` in Swagger is not a dictionary
        """
        method = self._normalize_method_name(method)

        path_dict = self.paths.setdefault(path, {})

        if not isinstance(path_dict, dict):
            # Either customers has provided us an invalid Swagger, or this class has messed it somehow
            raise InvalidDocumentException(
                [
                    InvalidTemplateException(
                        "Value of '{}' path must be a dictionary according to Swagger spec.".format(path)
                    )
                ]
            )

        if self._CONDITIONAL_IF in path_dict:
            path_dict = path_dict[self._CONDITIONAL_IF][1]

        path_dict.setdefault(method, {})

    def add_lambda_integration(
        self, path, method, integration_uri, method_auth_config=None, api_auth_config=None, condition=None
    ):
        """
        Adds aws_proxy APIGW integration to the given path+method.

        :param string path: Path name
        :param string method: HTTP Method
        :param string integration_uri: URI for the integration.
        """

        method = self._normalize_method_name(method)
        if self.has_integration(path, method): (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.eventsources.push:639
==samtranslator.model.stepfunctions.events:312
        if self.Auth:
            method_authorizer = self.Auth.get("Authorizer")
            api_auth = api.get("Auth")
            api_auth = intrinsics_resolver.resolve_parameter_refs(api_auth)

            if method_authorizer:
                api_authorizers = api_auth and api_auth.get("Authorizers")

                if method_authorizer != "AWS_IAM":
                    if method_authorizer != "NONE" and not api_authorizers:
                        raise InvalidEventException(
                            self.relative_id,
                            "Unable to set Authorizer [{authorizer}] on API method [{method}] for path [{path}] "
                            "because the related API does not define any Authorizers.".format(
                                authorizer=method_authorizer, method=self.Method, path=self.Path
                            ),
                        )

                    if method_authorizer != "NONE" and not api_authorizers.get(method_authorizer):
                        raise InvalidEventException(
                            self.relative_id,
                            "Unable to set Authorizer [{authorizer}] on API method [{method}] for path [{path}] "
                            "because it wasn't defined in the API's Authorizers.".format(
                                authorizer=method_authorizer, method=self.Method, path=self.Path
                            ),
                        )

                    if method_authorizer == "NONE":
                        if not api_auth or not api_auth.get("DefaultAuthorizer"):
                            raise InvalidEventException(
                                self.relative_id,
                                "Unable to set Authorizer on API method [{method}] for path [{path}] because 'NONE' "
                                "is only a valid value when a DefaultAuthorizer on the API is specified.".format(
                                    method=self.Method, path=self.Path
                                ),
                            )

            if self.Auth.get("AuthorizationScopes") and not isinstance(self.Auth.get("AuthorizationScopes"), list):
                raise InvalidEventException(
                    self.relative_id,
                    "Unable to set Authorizer on API method [{method}] for path [{path}] because "
                    "'AuthorizationScopes' must be a list of strings.".format(method=self.Method, path=self.Path),
                )

            apikey_required_setting = self.Auth.get("ApiKeyRequired")
            apikey_required_setting_is_false = apikey_required_setting is not None and not apikey_required_setting
            if apikey_required_setting_is_false and (not api_auth or not api_auth.get("ApiKeyRequired")):
                raise InvalidEventException(
                    self.relative_id,
                    "Unable to set ApiKeyRequired [False] on API method [{method}] for path [{path}] "
                    "because the related API does not specify any ApiKeyRequired.".format(
                        method=self.Method, path=self.Path
                    ),
                )

            if method_authorizer or apikey_required_setting is not None:
                editor.add_auth_to_method(api=api, path=self.Path, method_name=self.Method, auth=self.Auth)

            if self.Auth.get("ResourcePolicy"):
                resource_policy = self.Auth.get("ResourcePolicy")
                editor.add_resource_policy(
                    resource_policy=resource_policy, path=self.Path, api_id=self.RestApiId.get("Ref"), stage=self.Stage
                )
                if resource_policy.get("CustomStatements"):
                    editor.add_custom_statements(resource_policy.get("CustomStatements"))
 (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.eventsources.push:485
==samtranslator.model.stepfunctions.events:197
    }

    def resources_to_link(self, resources):
        """
        If this API Event Source refers to an explicit API resource, resolve the reference and grab
        necessary data from the explicit API
        """

        rest_api_id = self.RestApiId
        if isinstance(rest_api_id, dict) and "Ref" in rest_api_id:
            rest_api_id = rest_api_id["Ref"]

        # If RestApiId is a resource in the same template, then we try find the StageName by following the reference
        # Otherwise we default to a wildcard. This stage name is solely used to construct the permission to
        # allow this stage to invoke the State Machine. If we are unable to resolve the stage name, we will
        # simply permit all stages to invoke this State Machine
        # This hack is necessary because customers could use !ImportValue, !Ref or other intrinsic functions which
        # can be sometimes impossible to resolve (ie. when it has cross-stack references)
        permitted_stage = "*"
        stage_suffix = "AllStages"
        explicit_api = None
        if isinstance(rest_api_id, string_types):

            if (
                rest_api_id in resources
                and "Properties" in resources[rest_api_id]
                and "StageName" in resources[rest_api_id]["Properties"]
            ):

                explicit_api = resources[rest_api_id]["Properties"]
                permitted_stage = explicit_api["StageName"]

                # Stage could be a intrinsic, in which case leave the suffix to default value
                if isinstance(permitted_stage, string_types): (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.api.api_generator:372
==samtranslator.model.api.http_api_generator:300
            recordset_ipv6["Name"] = domain.get("DomainName")
            recordset_ipv6["Type"] = "AAAA"
            recordset_ipv6["AliasTarget"] = self._construct_alias_target(self.domain)
            recordset_list.extend([recordset_ipv6])

        return recordset_list

    def _construct_alias_target(self, domain):
        alias_target = {}
        route53 = domain.get("Route53")
        target_health = route53.get("EvaluateTargetHealth")

        if target_health is not None:
            alias_target["EvaluateTargetHealth"] = target_health
        if domain.get("EndpointConfiguration") == "REGIONAL":
            alias_target["HostedZoneId"] = fnGetAtt(self.domain.get("ApiDomainName"), "RegionalHostedZoneId")
            alias_target["DNSName"] = fnGetAtt(self.domain.get("ApiDomainName"), "RegionalDomainName")
        else: (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.eventsources.push:1107
==samtranslator.model.stepfunctions.events:321
        if method_authorizer != "NONE" and not api_authorizers:
            raise InvalidEventException(
                self.relative_id,
                "Unable to set Authorizer [{authorizer}] on API method [{method}] for path [{path}] "
                "because the related API does not define any Authorizers.".format(
                    authorizer=method_authorizer, method=self.Method, path=self.Path
                ),
            )

        if method_authorizer != "NONE" and not api_authorizers.get(method_authorizer):
            raise InvalidEventException(
                self.relative_id,
                "Unable to set Authorizer [{authorizer}] on API method [{method}] for path [{path}] "
                "because it wasn't defined in the API's Authorizers.".format(
                    authorizer=method_authorizer, method=self.Method, path=self.Path
                ),
            )
 (duplicate-code)
samtranslator/open_api/__init__.py:1:0: R0801: Similar lines in 2 files
==samtranslator.model.api.api_generator:338
==samtranslator.model.api.http_api_generator:235
        record_set_group = None
        if self.domain.get("Route53") is not None:
            route53 = self.domain.get("Route53")
            if route53.get("HostedZoneId") is None and route53.get("HostedZoneName") is None:
                raise InvalidResourceException(
                    self.logical_id,
                    "HostedZoneId or HostedZoneName is required to enable Route53 support on Custom Domains.",
                )
            logical_id = logical_id_generator.LogicalIdGenerator(
                "", route53.get("HostedZoneId") or route53.get("HostedZoneName")
            ).gen()
            record_set_group = Route53RecordSetGroup(
                "RecordSetGroup" + logical_id, attributes=self.passthrough_resource_attributes
            )
            if "HostedZoneId" in route53:
                record_set_group.HostedZoneId = route53.get("HostedZoneId") (duplicate-code)

------------------------------------------------------------------
Your code has been rated at 6.16/10 (previous run: 6.16/10, +0.00)


Description of changes:

Description of how you validated changes:

Checklist:

  • Write/update tests
  • make pr passes
  • Update documentation
  • Verify transformed template deploys and application functions as expected

Examples?

Please reach out in the comments, if you want to add an example. Examples will be
added to sam init through https://github.com/awslabs/aws-sam-cli-app-templates/

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jfuss
Copy link
Contributor

jfuss commented Nov 9, 2020

Pylint 2.6.0 only supports py3.5 or above. Considering we still support 2.7 :( we cannot move to this version. Can we wait until we drop support for Python2.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants