Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8588739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:52:40+00:00 2026-06-11T22:52:40+00:00

When you fork a project and work on it, is it OK to contribute

  • 0

When you fork a project and work on it, is it OK to contribute code formatting fixes along with implementing a feature / fixing a bug?

Examples of this include:

  • Mixed tabs/spaces in a file that you need to change only a line
  • Different indentation across a file

Pro argument: Fixing the formatting will improve the overall code quality.

Con argument: Fixing the formatting in an irrelevant part of the file will make tools point to you as the author of the code, and people who work on the same piece afterwards may get the wrong impression that you authored it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:52:41+00:00Added an answer on June 11, 2026 at 10:52 pm

    A decent compare tool can be set to ignore whitespace, not that this will help you if you’ve done things like move braces to a new line.

    If I was you I would submit two changes: one with the actual bug fix, and a second with the code formatting fixed.

    You should keep in mind that everyone has a slightly different code style, and some styles are no more right or better than others. Having said that, if the code is formatted in a truly awful way then you should fix it – properly formatted code can help with debugging and code review. You will show as the author of the changes but you shouldn’t be mistaken for the author of the module itself – any half decent source tracking tool should show who authored what and when.

    Edit:

    What I’m advocating here is that small variations in coding style can and should be ignored – any sufficiently experienced developer should be able to read and understand the code. The team should have an overall unified coding approach like camel casing of variable names, correct casing of method names, underscores for member variables, etc., but things like the formatting of a LINQ statement could be left to the individual developer (unless it is truly unreadable). When working on open source projects with members from across different cultures and backgrounds you are bound to strike differences. Using tools like ReSharper can help eliminate some of these differences, but on a communal project not everybody will have ReSharper (or even a half decent IDE, depending on what’s being developed).

    By all means correct the formatting of the ugly stuff, but don’t sweat the small stuff. Developers are a combination of engineer, artist and human being – you are going to get differences. Part of becoming an awesome developer is learning what you can live with and what must be changed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To implement github like fork/pull request function in my project, the auto-merge feature need
Background: We use github for our project and I work on my own fork
We use Subversion locally, and we're working on a project that uses a fork
A fork has already occurred in code: if (pid == 0) { printf(I am
I'm wanting to fork a github project that other's have forked and one of
I have a fork of a project which I am contributing to. Currently, I
I'm currently trying to cherry-pick a feature from the trunk of an OSS project
I would like to know if there is any way (or fork project of
I’m supposed to work on my client's project on GitHub, where the changes would
As I am currently doing this project in only C, I've up untill this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.