formatter
Here are 836 public repositories matching this topic...
Command line arguments
- --line-length
- --target-version
- --skip-string-normalization
pyproject.toml
- line-length
- target_version
- skip-string-normalization
Vim
- g:black_linelength
- g:black_skip_string_normalization
Also a skip-string-normalization = 'true' value should be included in the example
pyproject.toml. One might think it should be an int becau
I found that yapf doesn't recognize the SPACES_AROUND_SUBSCRIPT_COLON knob that's listed in the docs. Here's how I produced the error:
Config (setup.cfg)
[yapf]
based_on_style = pep8
spaces_around_subscript_colon = true
Shell
>> yapf -i <filepath>
yapf: Unknown style option "SPACES_AROUND_SUBSCRIPT_COLON"
According to the CLDR documentation, we can specify a region overriding the region specified in the language identifier.
Does Globalize support this extension?
If yes, any help would be greatly appreciated.
If it is possible, compare Autopep8 with:
- https://github.com/psf/black and https://github.com/google/yapf
- https://github.com/PyCQA/pylint with https://github.com/PyCQA/pyflakes
(regarding features, ease of use, plugins etc.)
As a table that looks like https://github.com/wemake-services/wemake-python-styleguide#what-we-are-about
https://google.github.io/styleguide/javaguide.html#s3-source-file-structure says
A source file consists of, in order:
- License or copyright information, if present
- Package statement
- Import statements
- Exactly one top-level class
Exactly one blank line separates each section that is present.
But google-java-format does not add the blank line between a Licens
Currently, when formatters are registered, they are registered for the entire project. This can cause some problems. For example, in the following structure:
/folder1
package.json
foo.php
/folder2
bar.php
If the package.json in folder1 registers the php plugin, then the php plugin will be registered for the whole project. However, when the user opens bar.php the
rustfmt 1.x ran in "recursive" mode by default wherein all the mods within the AST would be visited and formatted, including those mods defined in external files not explicitly passed as args to rustfmt.
rustfmt 2.x inverts that behavior and will now only format files explicitly passed to rustfmt unless the --recursive flag is passed (in which case rustfmt 2.x formats everything like rus
Versions:
prettier-eslintversion: 9.0.1nodeversion:10.16npm(oryarn) version: 1.13
Have you followed the debugging tips?
Yes
Relevant code or config
// setting.json
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"vetur.formaFor example, ParamExp has a Name field of type *Lit, but it can never be nil. The reason it's a pointer is for consistency with all the other literal fields.
@alexeagle mentioned that the TS style guide has lots of documentation, but it doesn't seem like any of that is available here.
The most common issue we run into is type coercion. Apparently this is what the docs for that should say:
TypeScript code may use the String() and Boolean() (note: no new!) functions, string template literals, or !! to coerce types.
const bool = Boole-
Updated
May 27, 2020 - Ruby
It would be awesome to provided a documentation for each available option in configuration.
Even if there is some description in uncrustify --show-config But it is not so detailed and doesn't provide adequate example.
Documentation is a essential part of every software.
"lint-staged": {
"src/**/*.js": [
"prettier --write --trailing-comma es5 --semi false --print-width 160",
"git add"
],
"*.scss": [
"stylefmt",
"stylelint --syntax scss",
"git add"
]
},
How I currently am using it, how am I messing it up?
-
Updated
Apr 3, 2020 - Vim script
When I try to beautify the i get the following problem
TypeError: Cannot read property 'on' of undefined
I just installed beautify and uncrustify
https://gist.github.com/ODCA117/917affd6b11437517535a45350379820
I started using spotless in a maven java project for the first time. I am getting an exception indicating that there are unused imports. I can strip down the file to be as simple as
package example;
public interface Test {
}
There are no imports at all, but still there is the removeUnusedImports error.
Full Stack trace:
[spotless-stacktrace.txt](https://github.com/diffplug/s
-
Updated
May 2, 2020 - Swift
Version: 0.8.2
elm-format changes code (A) into (B) and then when run again (B) into (C).
There are at least two bugs here:
elm-formatgenerates output (B) which it doesn't accept as validelm-formatmangles two consecutive lists by first moving them closer and then mangling them by separating each list item into its own list.
(A)
{-|
- one
- two
- three
-
Updated
May 28, 2020 - PHP
I was a witness and participant of scalafmt adoption into a few large codebases and it always caused the developers to study the scalafmt sources for optimal configuration selection. In my opinion software should not force users to read source code (even if users is programmers).
In my sweet dreams configuration page in docs contains exa
-
Updated
May 11, 2020 - PHP
-
Updated
May 22, 2020 - JavaScript
check if NNNNNNN-DD.AAAA.JTR.OOOO is valid.
It would be very helpful to have a :NeoformatInfo method, similar to :NeomakeInfo.
When something goes wrong, it is very helpful to see what formatter is being run and with what arguments (and whether I overrode defaults or not).
Maybe I've missed it, but it's not obvious to me how to write a plugin that plays nice with vim-codefmt. We have a custom code formatter at work, and I'd really like to write a lightweight internal plugin that uses codefmt to do the heavy interface lifting.
Any tips?
-
Updated
May 26, 2020 - Vim script
Improve this page
Add a description, image, and links to the formatter topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the formatter topic, visit your repo's landing page and select "manage topics."


Hi,
I'm looking for something like .prettierignore but on a global level, i don't want to copy that file to every new directory i make just to ignore 1 file extension which isn't supported anyway.
AFAIK this isn't supported right?
BTW the extension in this case is EJS which prettier thinks is JS and some other stuff so the best way really is to ignore .ejs as a whole.