Skip to content
Making simple fixes easier to do at scale.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.travis.yml
CONTRIBUTING.md
LICENSE
Makefile
README.md
easyfix.sh
easyfix_testing.sh

README.md

Easyfix

Build Status

Easyfix is a tool for making easy fixes to text files, enabling simple large-scale cleanups of your code, documentation, or any other files.

Unlike other language-specific frameworks, Easyfix is language-agnostic and is thus applicable to type of files, such as shell scripts, documentation, etc. Of course, it can also be used with C++ and Java code, but since it is language-agnostic, it does not parse the files and hence cannot do language-semantics-aware editing.

At its core, Easyfix is a simple in-place rewriter using regular expressions, which may be easier and faster to use for simple cleanups than getting out the heavy machinery.

It also provides a very simple-to-use testing mechanism so you can verify that your cleanup will affect exactly what you want to change and neither over-apply nor under-apply the rewrite, before running the modification script on a large tree of files.

Usage

To use easyfix, simply create two files:

  • <your_file>.sh to make the changes, and
  • <your_file>_test.sh to verify the changes

See the examples directory for samples of both types of files.

Contributing

See CONTRIBUTING.md for more details.

License

Apache 2.0; see LICENSE for more details.

Disclaimer

This is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

You can’t perform that action at this time.