-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Scripts for Checking Eslint and Code Coverage Disable Statements #2811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Scripts for Checking Eslint and Code Coverage Disable Statements #2811
Conversation
WalkthroughThis pull request introduces two new GitHub Actions workflow jobs in Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
46b910e
into
PalisadoesFoundation:develop-postgres
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 17
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/pull-request.yml
(1 hunks).github/workflows/scripts/code_coverage_disable_check.py
(1 hunks).github/workflows/scripts/eslint_disable_check.py
(1 hunks)
🧰 Additional context used
🪛 Ruff (0.8.2)
.github/workflows/scripts/eslint_disable_check.py
1-1: Shebang is present but file is not executable
(EXE001)
30-30: Missing return type annotation for public function has_eslint_disable
(ANN201)
30-30: Missing type annotation for function argument file_path
(ANN001)
47-47: Unnecessary open mode parameters
Remove open mode parameters
(UP015)
56-56: Replace aliased errors with OSError
Replace with builtin OSError
(UP024)
61-61: check_eslint
is too complex (11 > 10)
(C901)
61-61: Missing return type annotation for public function check_eslint
(ANN201)
61-61: Missing type annotation for function argument files_or_directories
(ANN001)
76-77: Use a single if
statement instead of nested if
statements
(SIM102)
92-92: Trailing comma missing
Add trailing comma
(COM812)
99-99: Missing return type annotation for public function arg_parser_resolver
(ANN201)
125-125: Missing return type annotation for public function main
Add return type annotation: None
(ANN201)
.github/workflows/scripts/code_coverage_disable_check.py
29-29: Missing return type annotation for public function has_code_coverage_disable
(ANN201)
29-29: Missing type annotation for function argument file_path
(ANN001)
46-46: Unnecessary open mode parameters
Remove open mode parameters
(UP015)
55-55: Replace aliased errors with OSError
Replace with builtin OSError
(UP024)
60-60: check_code_coverage
is too complex (11 > 10)
(C901)
60-60: Missing return type annotation for public function check_code_coverage
(ANN201)
60-60: Missing type annotation for function argument files_or_dirs
(ANN001)
88-88: Trailing comma missing
Add trailing comma
(COM812)
91-98: Use a single if
statement instead of nested if
statements
(SIM102)
93-98: Use a single if
statement instead of nested if
statements
(SIM102)
100-100: Trailing comma missing
Add trailing comma
(COM812)
107-107: Missing return type annotation for public function arg_parser_resolver
(ANN201)
133-133: Missing return type annotation for public function main
Add return type annotation: None
(ANN201)
🪛 yamllint (1.35.1)
.github/workflows/pull-request.yml
[error] 73-73: trailing spaces
(trailing-spaces)
Issue Number:
Fixes #2806
Summary by CodeRabbit
New Features
Chores