
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Third-party rules for JVM and Python lint tools, meant to be used in conjunction with official ones. Most of the rules are opinionated personal code styles. However, some already exists in other linters, providing the same experience across multiple languages.
Language | Linter | Variants |
---|---|---|
Kotlin | Ktlint | Ktlint Style |
Java | Checkstyle | Sun Style or Google Java Style |
Groovy | CodeNarc | Groovy Style |
Python | Pylint | Pylint Style or Google Python Style |
repositories {
mavenCentral()
}
dependencies {
ktlint "com.hanggrian.rulebook:rulebook-ktlint:$version"
checkstyle "com.hanggrian.rulebook:rulebook-checkstyle:$version"
codenarc "com.hanggrian.rulebook:rulebook-codenarc:$version"
}
pip install pylint regex rulebook-pylint
ktlint
, add this project as dependency.configurations {
ktlint
}
dependencies {
ktlint "com.hanggrian.rulebook:rulebook-ktlint:$libraryVersion"
}
// the rest of ktlint tasks' configuration
checkstyle
, add this project as dependency./config/checkstyle/codenarc.xml
.plugins {
checkstyle
}
checkstyle {
toolVersion "$checkstyleVersion"
configFile "path/to/rulebook_checkstyle.xml"
}
dependencies {
checkstyle "com.hanggrian.rulebook:rulebook-checkstyle:$libraryVersion"
}
codenarc
, add this project as dependency./config/codenarc/codenarc.xml
.plugins {
codenarc
}
codenarc {
toolVersion "$codenarcVersion"
configFile "path/to/rulebook_codenarc.xml"
}
dependencies {
codenarc "com.hanggrian.rulebook:rulebook-codenarc:$libraryVersion"
}
pylintrc
.Presuming the IDE is IntelliJ IDEA or PyCharm, consider applying the linter style to it.
Explained in Ktlint IntelliJ IDEA Configuration, using standard Kotlin coding conventions is enough:
kotlin.code.style=official
to root gradle.properties
.Explained in Google Java Format:
Apply few changes in settings:
FAQs
Extended lint rules for JVM and Python
We found that rulebook-pylint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.