Skip to content

Update gasdfg#7

Open
AdamShwert wants to merge 2 commits intomainfrom
AdamShwert-patch-4
Open

Update gasdfg#7
AdamShwert wants to merge 2 commits intomainfrom
AdamShwert-patch-4

Conversation

@AdamShwert
Copy link
Owner

@AdamShwert AdamShwert commented Jun 24, 2025

Rule name Level Explanation
noAwaitInLoops Info Avoid await inside for loops for performance reasons. E2E and unit tests files, and storybook files are excluded from this rule
useAwait Error Ensure await keyword is only used when necessary
useBlockStatements Error Ensure consistent if/else blocks
useCollapsedElseIf Error Prevents complicated, deeply-nested if/else conditions
useCollapsedIf Error Prevents complicated, deeply-nested if/else conditions
useDateNow Error Prefer using Date.now() instead of instantiating a new Date object for performance reasons
useNumberToFixedDigitsArguments Error Remove any possible uncertainties over the precision level when using Number.prototype.toFixed()
useTrimStartEnd Error Prefers start/end over left/right so that the operations are agnostic towards writing direction
noSubStr Error Prefers use of String.prototype.slice() for clarity and consistency


.. versionadded:: 2.0
"""
if iscoroutinefunction(func):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test


.. versionadded:: 2.0
"""
if iscoroutinefunction(func):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test 2

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testtestsetset

@@ -1 +1 @@
asdgasdhdsfhdsfh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

reading.

For example, if the file ``schema.sql`` is next to the file
``app.py`` where the ``Flask`` app is defined, it can be opened
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
``app.py`` where the ``Flask`` app is defined, it can be opened
``app.py`` where the ``Flask`` app is defined, it can be opened asdfsadf

subfolders use forward slashes as separator.
:param mode: resource file opening mode, default is 'rb'.
"""
return open(os.path.join(self.instance_path, resource), mode)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sdf asdfasd f

Suggested change
return open(os.path.join(self.instance_path, resource), mode)
return open(os.path.join(self.instance_pa

@AdamShwert
Copy link
Owner Author

Rule name Level Explanation
noAwaitInLoops Info Avoid await inside for loops for performance reasons. E2E and unit tests files, and storybook files are excluded from this rule
useAwait Error Ensure await keyword is only used when necessary
useBlockStatements Error Ensure consistent if/else blocks
useCollapsedElseIf Error Prevents complicated, deeply-nested if/else conditions
useCollapsedIf Error Prevents complicated, deeply-nested if/else conditions
useDateNow Error Prefer using Date.now() instead of instantiating a new Date object for performance reasons
useNumberToFixedDigitsArguments Error Remove any possible uncertainties over the precision level when using Number.prototype.toFixed()
useTrimStartEnd Error Prefers start/end over left/right so that the operations are agnostic towards writing direction
noSubStr Error Prefers use of String.prototype.slice() for clarity and consistency

@AdamShwert
Copy link
Owner Author

Rule name Level Explanation
noAwaitInLoops InfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfoInfo Avoid await inside for loops for performance reasons. E2E and unit tests files, and storybook files are excluded from this rule
useAwait Error Ensure await keyword is only used when necessary
useBlockStatements Error Ensure consistent if/else blocks
useCollapsedElseIf Error Prevents complicated, deeply-nested if/else conditions
useCollapsedIf Error Prevents complicated, deeply-nested if/else conditions
useDateNow Error Prefer using Date.now() instead of instantiating a new Date object for performance reasons
useNumberToFixedDigitsArguments Error Remove any possible uncertainties over the precision level when using Number.prototype.toFixed()
useTrimStartEnd Error Prefers start/end over left/right so that the operations are agnostic towards writing direction
noSubStr Error Prefers use of String.prototype.slice() for clarity and consistency

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.

1 participant