updated rubocop config
extracted folderfilter into its own function