Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #2

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open

V2 #2

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
08d0517
Starting v2: Sanatise lines..
Oct 29, 2016
5244327
Starting processing files
Oct 30, 2016
c889bfe
Merge branch 'develop' into v2
Oct 30, 2016
78a4831
Change files names for merge
Oct 30, 2016
efe7c66
Merge branch 'develop' into v2
Oct 30, 2016
6d5bd8c
Merge branch 'master' into v2
Nov 16, 2016
4e5cdc5
Started betty-doc v2
Nov 17, 2016
613b6a0
Merge branch 'hotfix' into v2
Nov 17, 2016
1df96c0
Merge branch 'hotfix' into v2
Nov 23, 2016
74393c9
Merged branch hotfix
Nov 26, 2016
eeede0c
Removed unused stuff (About 2800 lines)
Dec 26, 2016
a0c845c
Remove unused stuff (betty-doc): About 2500 lines
Dec 27, 2016
66fc2af
Generic output display
Dec 27, 2016
9cfd96c
Removed more unused stuff + Add some TODO
Dec 27, 2016
14d997b
Minor fixes
Dec 28, 2016
3429fa0
Indentation
Dec 28, 2016
8200506
Undo debug
Dec 28, 2016
5f92e58
Options for each check
Jan 11, 2017
3fdd02f
Removed unused stuff
Feb 2, 2017
d023b0a
Started tests suits for V2
Feb 2, 2017
d0bd559
Apply fixes on v2
Feb 12, 2017
f98f4e0
Apply 40a7203 hotfix in v2
Feb 22, 2017
b93aeba
Apply change from master: Error message too verbose
Mar 2, 2017
0c32a26
Removed unusd variable
Mar 2, 2017
1653195
Removed ERROR and WARN subroutine. No more differenciation between er…
Mar 4, 2017
4c8847e
Apply hotfix 8d3c0d6
Mar 4, 2017
2415706
Apply hotfix 8d3c0d6
Mar 4, 2017
81063b4
Added quiet option for condensed output
Mar 5, 2017
a8ffdba
Tests Manaher script + Holberton section in README
Mar 6, 2017
d5296fc
Changed quiet mode to brief mode
Mar 6, 2017
8b74b54
Brief mode description
Mar 6, 2017
57b58c6
Test suite example
Mar 6, 2017
195f900
Added tests runner template
Mar 7, 2017
be2250d
Removed useless trailing new lines when calling WARN
Mar 7, 2017
2043e92
Betty doc output same as betty style
Mar 7, 2017
b460afa
Removed useless new line
Mar 8, 2017
7bbe98b
Apply hotfix 38f646f
Mar 8, 2017
eddc085
Add: 'assign-in-cond' test in Betty v2 with test suite
Feb 16, 2018
1d99516
Update: Moved Tests manager to root directory, and updated Travis CI
Feb 16, 2018
fcb80ca
Update: Changed 'assign-in-if' to 'assign-in-cond'
Feb 16, 2018
47f11dc
Add: 'avoid-externs' test in Betty v2 with test suite
Feb 16, 2018
d934ce3
Add: 'blank-before-decl' test in Betty v2 with test suite
Feb 16, 2018
79837f1
Update: Removed context from 'avoid-externs' snce the error is on an …
Feb 16, 2018
780395b
Add: 'blank-line-brace' test in Betty v2 with test suite
Feb 16, 2018
0a4cf3e
Update: Updated 'blank-before-decl' tests that were affected by 'blan…
Feb 16, 2018
bb0c962
Add: 'block-comment-leading' test in Betty v2 with test suite
Feb 16, 2018
663d13b
Add: 'block-comment-subsequent' test in Betty v2 with test suite
Feb 16, 2018
fbbdb1f
Add: 'block-comment-trailing' test in Betty v2 with test suite
Feb 16, 2018
3c1f0e4
Update: Put quotes in error message for 'block-comment-subsequent'
Feb 16, 2018
f413afb
Update: Remove TODO from tests
Feb 16, 2018
f5843f8
Add: 'bracket-space' test in Betty v2 with test suite
Feb 16, 2018
2bf1d70
Add: 'bracket-space-in' test in Betty v2 with test suite
Feb 16, 2018
254c35b
Add: 'c99-comments' test in Betty v2 with test suite
Feb 16, 2018
23799f8
Add: 'camelcase' test in Betty v2 with test suite
Feb 16, 2018
7cdcfe6
Add: 'cast-int-const' test in Betty v2 with test suite
Feb 16, 2018
a0bff40
Add: 'close-brace-space' test in Betty v2 with test suite
Feb 16, 2018
b493bf0
Add: 'code-indent' test in Betty v2 with test suite
Feb 16, 2018
670f3c8
Update: TODO
Mar 5, 2018
8209e47
Fix: Indentation in help message
Jun 27, 2018
f9dd18b
Update: Travis + typo
Sep 4, 2018
3ec9adb
Fix: Removed experimental keys on scalar
Sep 4, 2018
202664e
Fix: Install dependencies on Travis + Changed shebang to env
Sep 4, 2018
993cf10
Fix: Removed experimental keys on scalar + fixed negative region size
Sep 4, 2018
43c7215
Removed: PErl version 5.16 from Travis, minimum version is 5.18
Sep 4, 2018
9639638
Remove: MoreUtils external library
Sep 4, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
indent_size = 8
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Tests

*.report
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
script: bash test
language: perl
perl:
- "5.26"
- "5.24"
- "5.22"
- "5.20"
- "5.18"
install: true
sudo: false
script: perl tests-manager.pl
branches:
only:
- master
- v2
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ Run the following command to check if your code/doc fits the Betty Style (mostly
```ShellSession
./betty-doc.pl file1 [file2 [file3 [...]]]
```

## About Holberton School

![Holberton School logo](https://www.holbertonschool.com/holberton-logo.png)

Holberton school is a community-driven school.
We train full-stack software engineers in two years, using peer and project-based learning.
At Holberton School, there are no formal teachers and no lectures, student learn by building.

Read more on [our website](https://www.holbertonschool.com/).
22 changes: 22 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# TODO

- Print version
- WARN and report subroutines can be merged into one

```
if (s_option('bracket-space-in')) {
WARN("bracket-space-in",
"space prohibited after that open square bracket");
}
```
could be simplified by removing the `s_option('bracket-space-in')`, and move it in the `WARN` subroutine

- The following must be illegal:

```
if (ac != 3)
{
_putchar('E'); _putchar('r'); _putchar('r'); _putchar('o');
_putchar('r'); _putchar('\n'); exit(98);
}
```
Loading