2

Some languages don't care about indentation, developers can write all their code in one line. Apache license requires to add a copyright notice if someone else changed the code, if I only changed code indentation of languages that don't care about indentation, should I add a notice?

5
  • I don't think that changing the style of the code violates any sort of code copyright. It would be different for art. Commented Apr 22, 2023 at 0:16
  • 1
    Could you add why you want to do this, e.g. is it for some sort of minimization, to put all the code on one line? Commented Apr 22, 2023 at 15:44
  • 1
    I use "cargo fmt&&sync" in shell, where cargo is a tool by Rust language developers, fmt means to format the code according to Rust standard format and sync means to write all cached changes to disk. Commented Apr 24, 2023 at 9:08
  • Possibly related: opensource.stackexchange.com/questions/12340/… It does not mention the "indentation only" special case in this Question, though. Commented Apr 27, 2023 at 6:12
  • Can you do just a "cargo fmt" first, and then check using a source control tool, which files were changed by that action? That's one way you might be able to comply with Apache easily "cause any modified files to carry prominent notices". Personally I have no experience with Rust or Cargo. Commented Apr 27, 2023 at 6:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.