-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix zeroturnaround#152, Add + in scientific notation regex * fix zeroturnaround#159, Add token override for SET datatype * add common operators to Tokenizer, dedupe * update missing operators * use exhaustive list of monad operators * fix .. operator for PlSQL * fix handling for braces (zeroturnaround #155), add test for braces & backticks * move all operator handling into formatOperator * fix handling of backticks (zeroturnaround#139) * update isToken * fix zeroturnaround#123, add hex string type * fix zeroturnaround#166, add negative lookahead for specialWordChar for reserved words * fix zeroturnaround#162, add handling for prefix/suffix only specialWordChars * Fix zeroturnaround#137, add @@ system variables * add support for array and map accessors * print help when no arguments passed * convert cli tool to cladd * rename bin file * add ts export for module * update cjs build with typescript * add ts-loader for umd build * update badges and GH Actions names * Update issue templates * add enhancement template * add feature request title * update package.json * move index.html to static dir * make parenOptions Partial type * split into css and js files * ♻️ * remove local script * move options to left menu * add new options to demo * add icon * add comments for token overrides * fix prefixed operators * add link to bug reports * update TokenizerOptions.specialWordChars.any to Optional Type * update CHANGELOG * update README badges * update README with vscode * add CONTRIBUTING.md * fix formatting for reservedDependentClauses * update release-it json
- Loading branch information
1 parent
9d30c4b
commit 63c05eb
Showing
46 changed files
with
1,638 additions
and
1,856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
name: Formatting Bug Report | ||
about: Raise an issue about the FORMATTING output | ||
title: '[FORMATTING] Issue Title Here' | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected Output** | ||
Please provide a code snippet of the expected SQL output. | ||
|
||
**Actual Output** | ||
Please provide a code snippet of the SQL output produced by the tool. | ||
|
||
**Usage** | ||
|
||
- How are you calling / using the script? (Please provide a code snippet) | ||
- What SQL language(s) does this apply to? | ||
- What Node version? (If applicable) | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
name: Suggest Improvement/Feature | ||
about: Suggest new features or improvements to existing ones | ||
title: 'Feature Request: Title Here' | ||
labels: enhancement | ||
assignees: '' | ||
--- | ||
|
||
**Describe the Feature** | ||
A clear and concise description of what the feature is. | ||
|
||
**Why do you want this feature?** | ||
Your reasoning behind suggesting this feature. | ||
|
||
**Info** | ||
|
||
- How would you be calling / using the script? | ||
- What SQL language(s) does this apply to? | ||
- What Node version? (If applicable) | ||
|
||
**Additional context** | ||
Add any other context about the feature here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Script Bug Report | ||
about: Raise an issue with the SCRIPT that occurred during runtime | ||
title: '[SCRIPT] Issue Title Here' | ||
labels: bug | ||
assignees: '' | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Usage** | ||
|
||
- How are you calling / using the script? (Please provide a code snippet) | ||
- What SQL language(s) does this apply to? | ||
- What Node version? (If applicable) | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Coveralls | ||
name: coveralls | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: NodeJS with Webpack | ||
name: webpack | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
## Bugs | ||
|
||
Please submit bugs and issues here: https://github.com/inferrinizzard/prettier-sql/issues \ | ||
There are issue templates available for FORMATTING or SCRIPT related bugs. | ||
|
||
# Development | ||
|
||
## Setup | ||
|
||
This project uses `yarn` as its package manager, please download it here if you don't already have it: | ||
|
||
- yarn: https://yarnpkg.com/getting-started | ||
|
||
Once you have `yarn` installed, you can run `yarn` in the root directory to install all dependencies and devDependencies from package.json. | ||
|
||
You're now ready to get started ! | ||
|
||
## Branch Guidelines | ||
|
||
New branches: Please branch off of the `develop` branch. | ||
|
||
### Naming | ||
|
||
Please use one of the following prefixes: (ie. feature/new-feature) | ||
|
||
- feature/ - development towards a new feature | ||
- dev/ - misc development not tied to a key feature / refactoring | ||
- issue/ - fix specifically for a issue # | ||
- bug/ - misc bug fixes not tied to a public issue | ||
- repo/ - meta dev related changes (ie. typescript, CI/CD, dependencies) | ||
|
||
## Testing | ||
|
||
Tests should be run before pushing commits to a remote branch, please do so with the `test` command in package.json \ | ||
It can be invoked via: | ||
|
||
- `yarn test` | ||
- `npm run test` | ||
- `jest` | ||
|
||
## New Tests | ||
|
||
Please add new tests for any new features and bug fixes. \ | ||
Language-specific tests should be included in their respective Test files, tests that apply to all languages should be in `behavesLikeSqlFormatter.js` | ||
|
||
# Contributors | ||
|
||
## `prettier-sql` | ||
|
||
- Sean Song <[email protected]> | ||
|
||
## `sql-formatter` | ||
|
||
- Adrien Pyke <[email protected]> | ||
- Andrew | ||
- Benjamin Bellamy | ||
- bingou | ||
- Damon Davison <[email protected]> | ||
- Davut Can Abacigil <[email protected]> | ||
- Erik Hirmo <[email protected]> | ||
- George Leslie-Waksman <[email protected]> | ||
- Ian Campbell <[email protected]> | ||
- ivan baktsheev | ||
- João Pimentel Ferreira | ||
- Martin Nowak <[email protected]> | ||
- Matheus Salmi <[email protected]> | ||
- Matheus Teixeira <[email protected]> | ||
- Nicolas Dermine <[email protected]> | ||
- Offir Baron <[email protected]> | ||
- Olexandr Sydorchuk <[email protected]> | ||
- Rafael Pinto <[email protected]> | ||
- Rahel Rjadnev-Meristo <[email protected]> | ||
- Rene Saarsoo <[email protected]> | ||
- Rodrigo Stuchi | ||
- Sasha Aliashkevich <[email protected]> | ||
- Sergei Egorov <[email protected]> | ||
- Tyler Jones <[email protected]> | ||
- Uku Pattak <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.