Comments (3)
I agree that it makes this command safer, but it is not expected for common commands. For example, rm
and mv
are (very) unsafe, but their default behaviour is to do something that cannot be undone even without any warning. You also need a configuration file to run, otherwise it just does nothing.
from fix-whitespace.
For example,
rm
andmv
are (very) unsafe, but their default behaviour is to do something that cannot be undone even without any warning.
I'd say these two commands are kind of atomic commands whose effect is very predictable. In contrast, fix-whitespace
does an analysis first. Usually, I would like to see the action plan based on the analysis first before committing to it.
I see two main uses of fix-whitespace
:
- In batch mode (like the Agda Makefile): There, one would many
--fix
directly, but writing an extra--fix
in a batch file is zero overhead. - Interactively. There, I would usually be careful and
--check
first, maybe make some adjustments,--check
again, and finally--fix
.
So the default --check
looks more sensible to me.
from fix-whitespace.
Anyway, there is no consensus, so let's keep the status-quo for now.
from fix-whitespace.
Related Issues (20)
- Support GHC 8.10.3
- Support GHC 9.0.1
- Release fix-whitespace on hackage HOT 1
- Support GHC 8.10.6
- Support GHC 9.2 HOT 1
- Release new version supporting GHC 8.10.7 HOT 3
- Catch error `hGetContents: invalid argument (invalid byte sequence)`
- Use `fix-whitespace.yaml` as filter when file arguments are given
- Make tab expansion optional (new option `--tab`). HOT 1
- Add `--version` option
- Release a github action that does `fix-whitespace --check` HOT 3
- Fix trailing tabs, too. HOT 5
- Add testsuite
- Report error when file does not end with a newline character HOT 1
- Performance problem with error message feature HOT 7
- Build with GHC 9.8
- create_release workflow is outdated; use `gh release`
- GHC 9.10
- Keeping the tabs that are recipe prefixes? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fix-whitespace.