Git Product home page Git Product logo

ec4rs's Introduction

TheDaemoness

Critique Mailer Daemon v5.5 โ“’ 19xx

I'm a recovering perfectionist who makes stuff for tinkerers/hackers. Currently I'm mainly contributing improvements to newer parts of the IRC ecosystem.

Tools of Choice

  • Languages: Rust, Haskell, Scala
  • OS: Linux (Arch, btw)
  • Terminal: wezterm
  • Text Editor: Kakoune
  • IRC Client: glirc
  • Dotfiles: No they're mine you can't have them.

Me In Other Places

I'm on sr.ht. Many of my projects will be found there instead of Github.

I'm on Libera.Chat as She. Be aware that I often block PMs from unregistered users.

My Emails

My public email address, base64'd to deter low-effort web scraping, is c2hlQGRhZW1vbmVzcy5kZXYK. If you use the word albatross in the subject, I'll be more likely to assume you're a real human.

Public Email PGP Key: 7F75 BD5C DBF7 F1E4 0F95 6513 6023AE3B 887F8E29

Libera Chat Email PGP Key: 03F0 C84D 7958 6869 4DCC CEE9 48557895 8D1833B5

ec4rs's People

Contributors

kyle-rader-msft avatar thedaemoness avatar zqianem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ec4rs's Issues

Allowing empty values

It turns out that in many config files within a project of ours, empty values are normal and do not cause issues with our IDE's so we'd like our linter to mirror this if possible.

Proposal

Enable empty values to be parsed as empty lines or pairs behind a feature flag so callers can decide what level of enforcement they get.

Caching .editorconfig file(s)

Hello, I am currently an employee at Microsoft. We would like to use this library for a large project; however, we would like to have a caching layer to not have to parse the .editorconfig file(s) every time we are using them. Is this something you would entertain as an open-source contribution?

Trailing comments after section headers

Expected Behavior

Given a section header

[/*] # only root files
end_of_line = lf

The editorconfig file should parse and return LF as the EOL rule for files at the current directory with the config file.

Actual Behavior

Because of the strip_suffix behavior, if a section header doesn't end with ] the line will be considered invalid.

Precedent

We're migrating from https://github.com/editorconfig/editorconfig-core-net as the underlying EC parser, and discovered that running a new linter using ec4rs breaks on our existing .editorconfig files. While fixing the files is totally possible, the INI syntax one gets in VSCode suggests that the comment after a header is in fact highlighted as a comment and you would expect it to be ignored the same way trailing comments are in many formats like YAML and TOML.

Cannot parse UTF-8 with BOM files

Attempting to parse a valid EditorConfig file that has a UTF-8 BOM results in an ec4rs::Error of "invalid line".

This is an issue that should be handled early on in the IO. In our consuming project we handle files of ASCII, UTF-8, UTF-8-BOM, UTF-16-[BE|LE] by having our own small FileContent abstraction. Something similar may be useful here/there may be a crate for this already but we didn't fine a simple one we liked and it's not much code.

I can work on contributing a fix for this soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.