-
Notifications
You must be signed in to change notification settings - Fork 0
Update abc.py #5
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
base: master
Are you sure you want to change the base?
Conversation
Test
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.
Pull Request has 1 issues found by Qlty.
- function-parameters - Function with many parameters (count = 9): abstractmethod
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.
Pull Request has 1 issues found by Qlty.
- function-parameters - Function with many parameters (count = 8): abstractmethod
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.
Pull Request has 1 issues found by Qlty.
- function-parameters - Function with many parameters (count = 9): abstractmethod
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.
Pull Request has 1 issues found by Qlty.
- function-parameters - Function with many parameters (count = 8): abstractmethod
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.
14 new issues were found
| Category | Tool | Rule | Count |
|---|---|---|---|
| structure | qlty | Function with many parameters (count = 6): isleap | 12 |
| structure | qlty | Function with many returns (count = 4): instancecheck | 2 |
qlty analyzed this pull request successfully in 24.96s.
|
|
||
|
|
||
| def isleap(year): | ||
| def isleap(year, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 6): isleap
| self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday | ||
|
|
||
| def getfirstweekday(self): | ||
| def getfirstweekday(self, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 5): getfirstweekday
| self.cssclasses_weekday_head[day], day_abbr[day]) | ||
|
|
||
| def formatweekheader(self): | ||
| def formatweekheader(self, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 5): formatweekheader
| return ''.join(v) | ||
|
|
||
| def formatyear(self, theyear, width=3): | ||
| def formatyear(self, theyear, a, b, c, d, e, width=3): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): formatyear
| return ''.join(v) | ||
|
|
||
| def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None): | ||
| def formatyearpage(self, theyear, a, b, c, d, e, width=3, css='calendar.css', encoding=None): |
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.
Qlty - function-parameters - Function with many parameters (count = 9): formatyearpage
|
|
||
|
|
||
| def abstractmethod(funcobj): | ||
| def abstractmethod(funcobj, a, b, c, d, e, f, g): |
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.
Qlty - function-parameters - Function with many parameters (count = 8): abstractmethod
| return cls | ||
|
|
||
| def register(cls, subclass): | ||
| def register(cls, subclass, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): register
| print("%s: %r" % (name, value), file=file) | ||
|
|
||
| def __instancecheck__(cls, instance): | ||
| def __instancecheck__(cls, instance, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): instancecheck
Qlty - return-statements - Function with many returns (count = 4): instancecheck
| return any(cls.__subclasscheck__(c) for c in {subclass, subtype}) | ||
|
|
||
| def __subclasscheck__(cls, subclass): | ||
| def __subclasscheck__(cls, subclass, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): subclasscheck
Qlty - return-statements - Function with many returns (count = 7): subclasscheck
|
|
||
|
|
||
| def get_cache_token(): | ||
| def get_cache_token(a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 5): get_cache_token
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.
14 new issues were found
| Category | Tool | Rule | Count |
|---|---|---|---|
| structure | qlty | Function with many parameters (count = 8): abstractmethod | 12 |
| structure | qlty | Function with many returns (count = 4): instancecheck | 2 |
qlty analyzed this pull request successfully in 52.70s.
|
|
||
|
|
||
| def abstractmethod(funcobj): | ||
| def abstractmethod(funcobj, a, b, c, d, e, f, g): |
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.
Qlty - function-parameters - Function with many parameters (count = 8): abstractmethod
| return cls | ||
|
|
||
| def register(cls, subclass): | ||
| def register(cls, subclass, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): register
| print("%s: %r" % (name, value), file=file) | ||
|
|
||
| def __instancecheck__(cls, instance): | ||
| def __instancecheck__(cls, instance, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): instancecheck
Qlty - return-statements - Function with many returns (count = 4): instancecheck
| return any(cls.__subclasscheck__(c) for c in {subclass, subtype}) | ||
|
|
||
| def __subclasscheck__(cls, subclass): | ||
| def __subclasscheck__(cls, subclass, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): subclasscheck
Qlty - return-statements - Function with many returns (count = 7): subclasscheck
|
|
||
|
|
||
| def get_cache_token(): | ||
| def get_cache_token(a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 5): get_cache_token
| self.cssclasses_weekday_head[day], day_abbr[day]) | ||
|
|
||
| def formatweekheader(self): | ||
| def formatweekheader(self, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 5): formatweekheader
| return ''.join(v) | ||
|
|
||
| def formatyear(self, theyear, width=3): | ||
| def formatyear(self, theyear, a, b, c, d, e, width=3): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): formatyear
| return ''.join(v) | ||
|
|
||
| def formatyearpage(self, theyear, width=3, css='calendar.css', encoding=None): | ||
| def formatyearpage(self, theyear, a, b, c, d, e, width=3, css='calendar.css', encoding=None): |
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.
Qlty - function-parameters - Function with many parameters (count = 9): formatyearpage
|
|
||
| class different_locale: | ||
| def __init__(self, locale): | ||
| def __init__(self, locale, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 6): init
| self.locale = locale | ||
|
|
||
| def formatweekday(self, day, width): | ||
| def formatweekday(self, day, width, a, b, c, d, e): |
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.
Qlty - function-parameters - Function with many parameters (count = 7): formatweekday
No description provided.