https://github.com/agda/fix-whitespace

Fixes whitespace issues

https://github.com/agda/fix-whitespace

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 9 committers (11.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.0%) to scientific vocabulary

Keywords

formatter sanitization version-control whitespace

Keywords from Contributors

programming-language agda dependent-types type-theory proof-assistant interactive projection sequences haskell archival
Last synced: 6 months ago · JSON representation

Repository

Fixes whitespace issues

Basic Info
Statistics
  • Stars: 8
  • Watchers: 8
  • Forks: 7
  • Open Issues: 6
  • Releases: 7
Topics
formatter sanitization version-control whitespace
Created over 6 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License

README.md

fix-whitespace: Fixes whitespace issues

Hackage version fix-whitespace on Stackage Nightly Stackage LTS version Build status Haskell-CI

This tool can keep your project and repository clean of trailing whitespace and missing terminal newline.

Usage: fix-whitespace [-h|--help] [-v|--verbose] [-V|--version] [--check] [--config CONFIG] [FILES]

The program does the following to files specified in FILES or in the configuration file fix-whitespace.yaml under the current directory (and its subdirectories):

  • Remove trailing whitespace.
  • Remove trailing lines containing nothing but whitespace.
  • Ensure that the file ends in a newline character.
  • Expand tabs to spaces (optionally).

Available options:

  • -h --help

Show this help information.

  • -v --verbose

Show files as they are being checked. Since 0.1: Display location of detected whitespace violations.

  • -V --version

Show program's version.

  • --config=CONFIG

Override the project configuration fix-whitespace.yaml.

  • --tab=TABSIZE

Expand tab characters to TABSIZE (default: 8) many spaces. Keep tabs if 0 is given as TABSIZE. (Option available since 0.0.9.)

  • --check

With --check the program does not change any files, it just checks if any files would have been changed. In the latter case, it returns with a non-zero exit code.

For an example configuration file see the one of Agda.

Continuous integration

fix-whitespace comfortably integrates into your GitHub CI via the fix-whitespace-action.

Owner

  • Name: Agda Github Community
  • Login: agda
  • Kind: organization

GitHub Events

Total
  • Issues event: 7
  • Watch event: 2
  • Delete event: 15
  • Issue comment event: 23
  • Push event: 8
  • Pull request review event: 10
  • Pull request review comment event: 10
  • Pull request event: 12
  • Fork event: 1
  • Create event: 6
Last Year
  • Issues event: 7
  • Watch event: 2
  • Delete event: 15
  • Issue comment event: 23
  • Push event: 8
  • Pull request review event: 10
  • Pull request review comment event: 10
  • Pull request event: 12
  • Fork event: 1
  • Create event: 6

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 125
  • Total Committers: 9
  • Avg Commits per committer: 13.889
  • Development Distribution Score (DDS): 0.576
Past Year
  • Commits: 8
  • Committers: 2
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
Andreas Abel a****l@i****e 53
Liang-Ting Chen l****w@g****m 32
Andrés Sicard-Ramírez a****r@e****o 25
Robert Estelle r****e@g****m 5
Artem Pelenitsyn a****n@g****m 4
dependabot[bot] 4****] 2
Oleg Grenrus o****s@i****i 2
Ed Nutting 1****g 1
Andrés Ignacio Torres a****m@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 28
  • Total pull requests: 49
  • Average time to close issues: 5 months
  • Average time to close pull requests: 14 days
  • Total issue authors: 8
  • Total pull request authors: 10
  • Average comments per issue: 1.36
  • Average comments per pull request: 1.57
  • Merged pull requests: 38
  • Bot issues: 0
  • Bot pull requests: 5
Past Year
  • Issues: 3
  • Pull requests: 11
  • Average time to close issues: 7 months
  • Average time to close pull requests: 11 days
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.67
  • Average comments per pull request: 1.55
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • andreasabel (16)
  • asr (5)
  • phadej (2)
  • philderbeast (1)
  • mouse07410 (1)
  • gallais (1)
  • bionade24 (1)
  • L-TChen (1)
Pull Request Authors
  • andreasabel (27)
  • asr (7)
  • dependabot[bot] (5)
  • ulysses4ever (2)
  • phadej (2)
  • EdNutting (2)
  • mpickering (2)
  • L-TChen (2)
  • aitorres (1)
  • rwe (1)
Top Labels
Issue Labels
enhancement (6) bug (3) UX (2) error reporting (2) testsuite (1) PR welcome (1) upstream (1) good first issue (1) ghc-9.2 (1) discussion (1) performance (1)
Pull Request Labels
CI (14) dependencies (6) enhancement (3) UX (1) ghc-9.4 (1) testsuite (1)

Packages

  • Total packages: 1
  • Total downloads:
    • hackage 1,689 total
  • Total dependent packages: 1
  • Total dependent repositories: 6
  • Total versions: 8
  • Total maintainers: 5
hackage.haskell.org: fix-whitespace

Removes trailing whitespace, lines containing only whitespace, expands tabs, and ensures that every file ends in a newline character.

  • Versions: 8
  • Dependent Packages: 1
  • Dependent Repositories: 6
  • Downloads: 1,689 Total
Rankings
Dependent packages count: 10.4%
Forks count: 16.0%
Dependent repos count: 23.6%
Stargazers count: 24.2%
Average: 29.4%
Downloads: 72.6%
Last synced: 6 months ago

Dependencies

fix-whitespace.cabal hackage
  • base >=4.9.0.0 && <5
  • directory >=1.2.6.2 && <1.4
  • extra >=1.1 && <2.0
  • filepath >=1.4.1.0 && <1.5
  • filepattern >=0.1.3 && <0.2
  • text >=1.2.3.0 && <1.3 || ==2.0.*
  • text >=1.2.3.1
  • yaml >=0.8.4 && <0.12
.github/workflows/haskell-ci.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
.github/workflows/stack.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/create-release v1 composite
  • actions/upload-release-asset v1 composite
  • haskell/actions/setup v2 composite