We'd like to find a "lightweight" method of enforcing code standards prior to check-in. We really like the idea of using Eclipse's built-in Save Actions (go to Preferences >> Java >> Editor >> Save Actions
) which has a Format source code
function that can run every time the developer saves a file.
This way, so long as each developer using the same format rules, and has Save Actions enabled, we can be fairly comfortable that by the time code makes it to review, that our code standards have been enforced (for the most part).
What I'm trying to figure out is: what file(s) does Eclipse use to save these format rules to? How could I keep such a file in source control, and have developers check it out?
- Where is it located (within the workspace)?