Coder Social home page Coder Social logo

Comments (3)

craigbarnes avatar craigbarnes commented on June 27, 2024

I've thought about something like this, but I'm not sure if your use case is the same as mine. I sometimes write my own notes, todo files, build configs, etc. in git repo directories and they're always matched by the [*] rule, even though they're never intended to be checked into the repo.

I'm thinking of adding something like this to my editorconfig implementation (and possibly contributing it to editorconfig-core-c too). A more complete description of your use case would help inform what the implementation should look like.

from editorconfig-core-c.

likeadeckofcards avatar likeadeckofcards commented on June 27, 2024

@craigbarnes The idea here is that the organization has a format that would be in a base config to force all of the code into the same format. However, some people like to view their code slightly different than the format provided by the base config. This config we would not want to be added to any kind of repo to prevent user specific settings from being distributed to the rest of the organization.

from editorconfig-core-c.

craigbarnes avatar craigbarnes commented on June 27, 2024

some people like to view their code slightly different than the format provided by the base config

Slightly different how? With different indent settings?

The implementation I had in mind was to allow a second config file in each directory that would take precedence over .editorconfig. It'd be exactly equivalent to just appending the contents to the bottom of .editorconfig, but with the benefit of not changing the git index if .editorconfig is a tracked file.

The only way I could see it working for your use case though, is if the base config and your overrides both agree on using indent_style = tab and you only want to change the display width of tabs (tab_width).

from editorconfig-core-c.

Related Issues (20)

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.