Hyperstyle

Latest version: v1.4.4

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.4.2

Fix several configs in Go

1.4.1

Run inspectors on code without files: flake8 + pylint

1.4.0

Support go language

1.3.1

**Changes**:
- Added a few classes that will help simplify inspectors:
- `IssueDescriptionParser` -- A parser for an issue description. It allows to parse the issue description using regex and convert the resulting groups using the converter.
- `IssueConfig` -- Custom config for a code issue. The main task of this dataclass is to change the issue description. If necessary, you can specify a parser that will parse the old description and insert the extracted data into the new description.
- `MeasurableIssueConfig` -- Custom config for a measurable issue. The main task of this dataclass is to contain a parser that will extract the measure from the description. It is also possible to specify a new issue description if necessary. Unlike `IssueConfig`, this dataclass contains an additional field `measure_position`, which indicates the index by which the measure can be found in the regular expression pattern. This field is useful if the parser parses not only the measure but other data as well.
- `IssueConfigsHandler` -- A class that handles issue configs. It accepts issue configs, turns them into dictionaries and handles requests for getting measures and descriptions.
- Simplified:
- [x] `flake8`;
- [x] `pylint`;
- [x] `pmd`;
- [x] `checkstyle`;
- [x] `detekt`;
- [x] `eslint`;
- `radon` does not need to be simplified because it collects only one type of issue (`MAINTAINABILITY`).
- `pythonast` has not been migrated to the new architecture because it works directly with code, not through CLI.
- Added a metric field to some issue tips.
- Added a lot of tests.
- Moved some common files to a separate folder.

1.3.0

- Updated PMD from 6.36.0 to 6.37.0.
- Added tests that check PMD and Checkstyle on the new syntax
- [ImplicitSwitchFallThrough](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_errorprone.html#implicitswitchfallthrough) has been replaced with [MissingBreakInSwitch](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_errorprone.html#missingbreakinswitch) because of its deprecation.
- The following Java rules have been replaced with [SimplifiableTestAssertion](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#simplifiabletestassertion) because of their deprecation:
- [UseAssertEqualsInsteadOfAssertTrue](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#useassertequalsinsteadofasserttrue)
- [UseAssertNullInsteadOfAssertTrue](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#useassertnullinsteadofasserttrue)
- [UseAssertSameInsteadOfAssertTrue](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#useassertsameinsteadofasserttrue)
- [UseAssertTrueInsteadOfAssertEquals](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#useasserttrueinsteadofassertequals)
- [SimplifyBooleanAssertion](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_design.html#simplifybooleanassertion)
- [ReturnEmptyArrayRatherThanNull](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_errorprone.html#returnemptyarrayratherthannull) has been replaced with [ReturnEmptyCollectionRatherThanNull](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_errorprone.html#returnemptycollectionratherthannull) because of its deprecation.
- The following Java rules have been replaced with [PrimitiveWrapperInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_bestpractices.html#primitivewrapperinstantiation) because of their deprecation:
- [BooleanInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#booleaninstantiation)
- [ByteInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#byteinstantiation)
- [IntegerInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#integerinstantiation)
- [LongInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#longinstantiation)
- [ShortInstantiation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#shortinstantiation)
- [UnnecessaryWrapperObjectCreation](https://pmd.github.io/pmd-6.37.0/pmd_rules_java_performance.html#unnecessarywrapperobjectcreation) has been removed because of its deprecated with no planned replacement before PMD 7.

1.2.7

Some minor changes with Python and Java inspectors

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.