Skip to content

Ryan.coulter/scatest#1

Open
rjcoulter22 wants to merge 3 commits into
masterfrom
ryan.coulter/scatest
Open

Ryan.coulter/scatest#1
rjcoulter22 wants to merge 3 commits into
masterfrom
ryan.coulter/scatest

Conversation

@rjcoulter22
Copy link
Copy Markdown
Owner

Create Test PR

Trying to test opening a PR with bad code that should be caught by
static analysis
Trying to test opening a PR with bad code that should be caught by
static analysis
Testing, should hopefully flag with python rule
'''
def __bytes__(self):
pass
return "123"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Suggested change
return "123"
return b"123"
should return bytes, prefix with b (...read more)

The __bytes__ method should not return a string and instead, ensure to return bytes.

View in Datadog  Leave us feedback  Documentation

import re
import sys

class CodeViolation:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Quality Violation

Class CodeViolation should have an init method (...read more)

Ensure that a class has an __init__ method. This check is bypassed when the class is a data class (annotated with @DataClass).

View in Datadog  Leave us feedback  Documentation

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