What tools do you need to automate coding conventions?

Asked 1 years ago, Updated 1 years ago, 51 views

Automate coding conventions - 97 things programmers should know

Include code shaping in the build process.Every time you compile a code, everyone automatically shapes it.

It says so, but is there a standard tool for automatic plastic surgery?
Or are you making it yourself?

Also, what is the generic term for these tools??(I couldn't google it because I didn't understand this)

By the way, the language I usually touch is as follows.Please let me know if there are any applicable tools.

  • JavaScript
  • HTML
  • Haml
  • CoffeeScript
  • PHP
  • Ruby
  • CSS
  • SCSS

programming-language

2022-09-30 19:37

4 Answers

Generally, I think it belongs to the shaping of the code.
Also, a well-known HTML shaping tool is HTML Tidy, where the tool/library name is ~tidy, and the expression "pretty" is sometimes used instead of "beutiful" in perl culture.I think these are also useful as search terms.
It is recommended that you search the following:

  • code+shape
  • (language name) + tidy
  • (language name) + pretty


2022-09-30 19:37

Eclipse cleanup or archive actions are possible.

Other IDEs may have similar features.

http://www.ibm.com/developerworks/jp/opensource/library/os-eclipse-clean/

http://qiita.com/jabaraster/items/96a61e768b3d51909166


2022-09-30 19:37

PHP and Ruby have these things.

I've looked for other languages, but they're all online and they don't seem to be able to do it automatically like CI.
If you look for it, you'll find it, but I'll leave it to someone with more wisdom.


2022-09-30 19:37

Because the languages listed are scripted and markup languages, it seems that there is no equivalent of the tools used in the compilation language.
(Also, you can read linked articles as if they were supposed to be in the compilation language.)

In the case of scripting language, instead of using external tools, you will need to incorporate the shaping tool into the text editor and run it manually on a regular basis.
(Because there is no compilation (イル build) timing)


2022-09-30 19:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.