Tclint

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 4

0.5.0

This release has three major changes:

- The project now includes a language server, `tclsp`!
- This is an LSP-based language server that enables `tclint` editor integration supporting diagnostics and formatting. See the [docs](https://github.com/nmoroze/tclint/blob/main/docs/lsp.md) for more info.
- Style checks have been removed from `tclint`.
- This removes the `--no-check-style` flag and makes its behavior the default.
- Support has been dropped for Python 3.8, which is now EOL.

Detailed user-facing changes

- Installing the `tclint` PyPI package adds a `tclsp` binary to your path. There should be no need to run this directly; in most cases your editor will be configured to launch it for you.
- No more style-specific rules. References to these must be removed from config files.
- No more `style.allow-aligned-sets` config setting, since `tclfmt` doesn't respect it. This must be removed from config files.
- All the style-related configuration flags have been removed from the `tclint` CLI.
- The `--no-check-style` flag has been removed from the `tclint` CLI, its behavior is now the default.
- The `--show-categories` flag has been removed from the `tclint` CLI. The category separation isn't meaningful now that style checks have been removed.
- The reported positions of some violations have changed.

0.4.2

This release fixes a handful of minor bugs.

- Fix crash on `expr` or `proc` commands that have no arguments
- Fix bug in handling of unintended exceptions in command argument handlers, they're now caught gracefully
- Fix some missing syntax error handling in expressions (e.g. erroring out on an unbalanced closed paren)
- Fix incorrect position recorded for a single-item list that isn't enclosed in braces or quotes

0.4.1

This update features a few parser enhancements, including significant performance improvements (over 2x faster parsing the OpenROAD codebase)! In addition:

- Unbraced `expr` commands without substitutions are now parsed as expressions
- `proc` arguments are now parsed as lists

These two changes may have effects on formatting, and will result in `tclint` surfacing some syntax errors that were previously ignored.

In addition, this update enhances some checks:
- New `redundant-expr` check flags cases where an `[expr ...]` is unnecessary, e.g. `if {[expr i % 2] == 0}`
- The `unbraced-expr` check now flags cases where multiple braced or quoted words are passed to `expr`, since such cases can be hard to reason about

0.4.0

This release adds a new formatting utility, `tclfmt`! See the [tclfmt docs](https://github.com/nmoroze/tclint/blob/main/docs/tclfmt.md) to learn all about it.

`tclfmt` will be this project's canonical method of style enforcement going forward. That means `tclint`'s style checks will be deprecated. To preview its future behavior, `tclint` now supports a new option `--no-check-style`.

Other updates:
- Fix bug parsing `eval` command within a command substitution
- Fix some spelling mistakes in tool output
- Fix bug where `tclint` would not detect trailing whitespace on lines that contain URLs

0.3.2

- Fix bug where contents after the closing brace of a multi-line braced word triggers a spurious indent violation

0.3.1

- Fix regression in OpenROAD plugin where `remove_buffers` is checked incorrectly for latest OR version

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.