Skip to content

Develop - #2

Merged
anton-knyazev merged 31 commits into
mainfrom
develop
Nov 20, 2020
Merged

Develop#2
anton-knyazev merged 31 commits into
mainfrom
develop

Conversation

@Just-D-A

Copy link
Copy Markdown
Contributor

No description provided.

add max class length check
add max fun length check
add simplifications function check
refactoring
Comment thread checks/src/main/java/com/example/lint/checks/LintIssueRegistry.kt Outdated
add args bundle for fragment checking
add intent extra params checking
add classes count checking
add packages count checking
add simplification control instruction checking
/** Issue describing the problem and pointing to the detector implementation */
@JvmField
val ISSUE: Issue = Issue.create(
id = "NAME_CONSTANTS_CORRECTLY",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NAME_CONSTANTS_SCREAMING_SNAKE_CASE


private const val MAX_CLASSES_IN_PACKAGE_COUNT = 5

private var classesMap = mutableMapOf<String, ArrayList<String>>()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

подумать как избавить от синглотона

override fun createUastHandler(context: JavaContext): UElementHandler? {
return object : UElementHandler() {
override fun visitExpression(node: UExpression) {
// val expression = node.expression ?: return

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Comment thread checks/src/main/java/com/example/lint/checks/LintIssueRegistry.kt Outdated
Comment thread checks/src/main/java/com/example/lint/checks/LintIssueRegistry.kt Outdated
@anton-knyazev
anton-knyazev merged commit a3b2465 into main Nov 20, 2020
@anton-knyazev anton-knyazev linked an issue Nov 20, 2020 that may be closed by this pull request
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.

Привила именования классов sealed

3 participants