java-lint
v0.3.0
Published
Java lint utilities
Downloads
44,542
Readme
java-lint
Unused imports
Current implementation has a lazy implemented global identifiers collectors. False negatives may happen.
import { removeUnusedImports } from 'java-lint';
const dirtySource = ```package my.project;
import my.project.pack.Unused;
class Foo {}
```;
removeUnusedImports(dirtySource);
expect(dirtySource).toMatch(
```package my.project;
class Foo {}
```,
);