(#577) - Initial implementation of auto-compaction
Fix linting errors