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

v1 #96

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

v1 #96

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
53f8f9c
Fixes for Brighterscript Typing-Phase-1 breaking changes
markwpearce May 24, 2023
cad6866
Fixes for release v0.66.0-alpha1
markwpearce Jun 13, 2023
3e54289
Updated peerDependency
markwpearce Jun 26, 2023
722b98a
Updated peerDependency
markwpearce Jun 26, 2023
78f1c71
Tweak build.yml to support prerelease publishing
TwitchBronBron Jul 5, 2023
d63e260
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Jul 5, 2023
b623648
fix missing types
TwitchBronBron Jul 5, 2023
6186d68
0.9.0-alpha.0
TwitchBronBron Jul 5, 2023
61481e1
Fix event structure
TwitchBronBron Jul 5, 2023
81aa853
Performance boost by lifting some global lookups
TwitchBronBron Jul 14, 2023
f4cebf6
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Jul 14, 2023
483fab1
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Jul 17, 2023
72d9c23
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Jul 27, 2023
c495fb9
brighterscript@0.66.0-alpha.4
TwitchBronBron Jul 27, 2023
d518efb
update changelog for v0.9.0-alpha.0
TwitchBronBron Jul 27, 2023
8c49713
Silence one bsc diagnostic
elsassph Aug 1, 2023
5a4de6f
Add bsc-0.66-alpha.6. Fix tests
TwitchBronBron Sep 21, 2023
1a89364
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Sep 21, 2023
3704798
update changelog for v0.9.0-alpha.1
TwitchBronBron Sep 21, 2023
99e5c5f
0.9.0-alpha.1
TwitchBronBron Sep 21, 2023
0708eb5
Merge branch 'master' of https://github.com/rokucommunity/bslint into…
TwitchBronBron Jan 26, 2024
79b1cb8
Merge branch 'master' of https://github.com/rokucommunity/bslint into v1
TwitchBronBron Jan 26, 2024
47cce91
Upgrade to bsc 1.0.0-alpha.25 (#97)
TwitchBronBron Feb 1, 2024
9a92033
update changelog for v1.0.0-alpha.25
TwitchBronBron Feb 1, 2024
26dd9a7
1.0.0-alpha.25
TwitchBronBron Feb 1, 2024
04f98a9
upgrade to brighterscript@1.0.0-alpha.26
TwitchBronBron Feb 1, 2024
8cd19bf
update changelog for v1.0.0-alpha.26
TwitchBronBron Feb 1, 2024
c8568f3
1.0.0-alpha.26
TwitchBronBron Feb 1, 2024
ac82ff8
Merge branch 'master' of https://github.com/rokucommunity/bslint into v1
TwitchBronBron Mar 8, 2024
978108a
brighterscript@1.0.0-alpha.27
TwitchBronBron Mar 8, 2024
78df03d
Update changelog for v1.0.0-alpha.27
TwitchBronBron Mar 8, 2024
c551e80
1.0.0-alpha.27
TwitchBronBron Mar 8, 2024
e5484af
Brighterscript Alpha 29/30 updates (#109)
markwpearce May 16, 2024
3d899ab
update changelog for v1.0.0-alpha.30
TwitchBronBron May 16, 2024
9748fd6
1.0.0-alpha.30
TwitchBronBron May 16, 2024
ed2fdc1
Sorts diagnostics in tests for errors on same line (#111)
markwpearce Jun 4, 2024
edda8f9
Updated to Brighterscript v1.0.0-alpha31
markwpearce Jun 4, 2024
aaa8002
Tweaks
TwitchBronBron Jun 4, 2024
2575e2f
brighterscript@1.0.0-alpha.32
TwitchBronBron Jun 5, 2024
e2cfccb
update changelog for v1.0.0-alpha.32
TwitchBronBron Jun 5, 2024
fcc385c
1.0.0-alpha.32
TwitchBronBron Jun 5, 2024
fa34cb8
Updated Brighterscript to v1.0.0-alpha.33 and fixed issues (#112)
markwpearce Jun 20, 2024
fc32e5a
update changelog for v1.0.0-alpha.33
TwitchBronBron Jun 21, 2024
11e948d
1.0.0-alpha.33
TwitchBronBron Jun 21, 2024
eeb2af4
Added test for throw in conditional compile block (#114)
markwpearce Jul 2, 2024
c41f3d3
Merge branch 'master' of https://github.com/rokucommunity/bslint into v1
TwitchBronBron Jul 24, 2024
67d640b
update changelog for v1.0.0-alpha.34
TwitchBronBron Jul 24, 2024
6380ed5
1.0.0-alpha.34
TwitchBronBron Jul 24, 2024
4581ee9
Check if in TypeExpression before doing VariableExpression checks (#122)
markwpearce Jul 26, 2024
fa6a65c
Adds Name Shadowing lint rule (#124)
markwpearce Jul 30, 2024
8aa3b31
Updated to work with with Brighterscript v1.0.0-alpha.35 (#125)
markwpearce Aug 1, 2024
613dd36
update changelog for v1.0.0-alpha.35
TwitchBronBron Aug 1, 2024
559452e
1.0.0-alpha.35
TwitchBronBron Aug 1, 2024
7c7edb1
Removing peer-dependency because it keeps causing issues (#126)
TwitchBronBron Aug 1, 2024
1dea9d0
brighterscript@1.0.0-alpha.36
TwitchBronBron Aug 9, 2024
1aad223
update changelog for v1.0.0-alpha.36
TwitchBronBron Aug 9, 2024
7b0b695
1.0.0-alpha.36
TwitchBronBron Aug 9, 2024
3f893d0
Conditional compile code flow - var tracking (#132)
markwpearce Sep 16, 2024
5af5184
upgrade to bsc 1.0.0-alpha.37
TwitchBronBron Sep 25, 2024
a2d1570
update changelog for v1.0.0-alpha.37
TwitchBronBron Sep 25, 2024
9e61830
1.0.0-alpha.37
TwitchBronBron Sep 25, 2024
c5aec95
Fix a crash when comment is missing trivia array (#134)
TwitchBronBron Sep 30, 2024
8262a61
Update changelog for v1.0.0-alpha.38
TwitchBronBron Oct 1, 2024
cecab0b
1.0.0-alpha.38
TwitchBronBron Oct 1, 2024
96612fc
Update changelog for v1.0.0-alpha.39
TwitchBronBron Oct 3, 2024
1c3455e
1.0.0-alpha.39
TwitchBronBron Oct 3, 2024
77cae00
upgrade to bsc@1.0.0-alpha.40
TwitchBronBron Oct 20, 2024
c42948e
update changelog for v1.0.0-alpha.40
TwitchBronBron Oct 20, 2024
ebae93d
1.0.0-alpha.40
TwitchBronBron Oct 20, 2024
4ad777a
upgrade to bsc@1.0.0-alpha.41 and update changelog
TwitchBronBron Oct 20, 2024
d5291f0
1.0.0-alpha.41
TwitchBronBron Oct 20, 2024
83c44a1
Actually add name property to plugin classes (#137)
markwpearce Nov 18, 2024
9aab022
Adds -allow-implicit for type annotations (#133)
markwpearce Jan 21, 2025
e569940
Updated tests to match v1 Diagnostics, (#140)
markwpearce Jan 21, 2025
1226938
update changelog for v1.0.0-alpha.42
TwitchBronBron Jan 21, 2025
7004517
1.0.0-alpha.42
TwitchBronBron Jan 21, 2025
590ccc2
Adds diagnostic for when a variables type changes (#130)
markwpearce Jan 29, 2025
e6e3975
update changelog for v1.0.0-alpha.43
TwitchBronBron Feb 3, 2025
1473b6f
1.0.0-alpha.43
TwitchBronBron Feb 3, 2025
55d52bd
Fixes issue if getSymbols() returns undefined
markwpearce Feb 6, 2025
b78eff7
Fixes issue if getSymbol() returns undefined (#141)
TwitchBronBron Feb 6, 2025
8418349
update changelog for v1.0.0-alpha.44
TwitchBronBron Feb 6, 2025
0cb2b0f
1.0.0-alpha.44
TwitchBronBron Feb 6, 2025
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
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,7 @@ jobs:
with:
asset_paths: '["./*.tgz"]'

#If there's a dash followed by an alpha character, this is a prerelease and should be tagged "next". Otherwise tag as "latest"
- run: if [[ "${{ github.ref }}" =~ -[a-zA-Z] ]]; then echo "DIST_TAG=next" >> $GITHUB_ENV; else echo "DIST_TAG=latest" >> $GITHUB_ENV; fi
#upload to npm
- run: npm publish --access=public
- run: npm publish --tag ${{env.DIST_TAG}}
143 changes: 142 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,147 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



## [1.0.0-alpha.44](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) - 2024-02-06
### Fixed
- issue if `getSymbol()` returns undefined ([#141](https://github.com/rokucommunity/bslint/pull/141))



## [1.0.0-alpha.43](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) - 2024-02-03
### Added
- diagnostic for when a variables type changes ([#130](https://github.com/rokucommunity/bslint/pull/130))



## [1.0.0-alpha.42](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) - 2024-01-21
### Added
- Adds `allow-implicit` for type annotations ([#133](https://github.com/rokucommunity/bslint/pull/133))
### Changed
- upgrade to [brighterscript@1.0.0-alpha.42](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha42---2025-01-17)
### Fixed
- Actually add name property to plugin classes ([#137](https://github.com/rokucommunity/bslint/pull/137))



## [1.0.0-alpha.41](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) - 2024-10-20
### Changed
- upgrade to [brighterscript@1.0.0-alpha.41](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha41---2024-10-20)



## [1.0.0-alpha.40](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) - 2024-10-20
### Changed
- upgrade to [brighterscript@1.0.0-alpha.40](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha40---2024-10-19)



## [1.0.0-alpha.39](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) - 2024-10-03
### Changed
- upgrade to [brighterscript@1.0.0-alpha.39](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha39---2024-10-03)



## [1.0.0-alpha.38](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) - 2024-10-01
### Changed
- upgrade to [brighterscript@1.0.0-alpha.38](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha38---2024-10-01)
### Fixed
- crash when comment is missing trivia array ([#134](https://github.com/rokucommunity/bslint/pull/134))



## [1.0.0-alpha.37](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) - 2024-09-25
### Changed
- upgrade to [brighterscript@1.0.0-alpha.37](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha37---2024-09-25)
### Fixed
- Conditional compile code flow - var tracking ([#132](https://github.com/rokucommunity/bslint/pull/132))



## [1.0.0-alpha.36](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) - 2024-08-09
### Changed
- upgrade to [brighterscript@1.0.0-alpha.36](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha36---2024-08-09)
- Removed brighterscript as a peer-dependency because it keeps causing issues with the alpha releases ([#126](https://github.com/rokucommunity/bslint/pull/126))



## [1.0.0-alpha.35](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) - 2024-08-01
### Added
- name shadowing lint rule ([#124](https://github.com/rokucommunity/bslint/pull/124))
### Changed
- upgrade to [brighterscript@1.0.0-alpha.35](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha35---2024-07-31)
### Fixed
- check if in `TypeExpression` before doing `VariableExpression` checks ([#122](https://github.com/rokucommunity/bslint/pull/122))



## [1.0.0-alpha.34](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) - 2024-07-24
### Changed
- upgrade to [brighterscript@1.0.0-alpha.34](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha34---2024-07-24)
### Fixed
- fix bugs with new conditional compile blocks ([#114](https://github.com/rokucommunity/bslint/pull/114))



## [1.0.0-alpha.33](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) - 2024-06-21
### Changed
- upgrade to [brighterscript@1.0.0-alpha.33](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha33---2024-06-14)



## [1.0.0-alpha.32](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) - 2024-06-05
### Changed
- upgrade to [brighterscript@1.0.0-alpha.32](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha32---2024-06-05)



## [1.0.0-alpha.31](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) - 2024-06-04
### Changed
- upgrade to [brighterscript@1.0.0-alpha.31](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha31---2024-06-04)



## [1.0.0-alpha.30](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.27...v1.0.0-alpha.30) - 2024-05-16
Skipped a few brighterscript releases because there were some bugs we couldn't mitigate. This release tracks bsc@1.0.0-alpha.30
### Changed
- upgrade to [brighterscript@1.0.0-alpha.30](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha30---2024-05-16)



## [1.0.0-alpha.27](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) - 2024-02-01
### Changed
- upgrade to [brighterscript@1.0.0-alpha.27](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha27---2024-02-27)



## [1.0.0-alpha.26](https://github.com/rokucommunity/bslint/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) - 2024-02-01
### Changed
- upgrade to [brighterscript@1.0.0-alpha.26](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha26---2024-02-01)



## [1.0.0-alpha.25](https://github.com/rokucommunity/bslint/compare/v0.9.0-alpha.1...v1.0.0-alpha.25) - 2024-02-01
### Changed
- Align with the brighterscript alpha prerelease numbers
- upgrade to [brighterscript@1.0.0-alpha.25](https://github.com/rokucommunity/brighterscript/blob/release-1.0.0/CHANGELOG.md#100-alpha25---2024-01-25)



## [0.9.0-alpha.1](https://github.com/rokucommunity/bslint/compare/v0.9.0-alpha.0...v0.9.0-alpha.1) - 2023-09-21
### Changed
- fixes for brighterscript v0.66.0-alpha.5 through v0.66.0-alpha.6
## [0.8.16](https://github.com/rokucommunity/bslint/compare/v0.8.15...v0.8.16) - 2024-01-25
### Changed
- upgrade to [brighterscript@0.65.18](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#06518---2024-01-25). Notable changes since 0.65.17:
- Prevent overwriting the Program._manifest if already set on startup ([brighterscript#1027](https://github.com/rokucommunity/brighterscript/pull/1027))
- Improving null safety: Add FinalizedBsConfig and tweak plugin events ([brighterscript#1000](https://github.com/rokucommunity/brighterscript/pull/1000))
## [0.8.19](https://github.com/rokucommunity/bslint/compare/v0.8.18...v0.8.19) - 2024-03-07
### Changed
- upgrade to [brighterscript@0.65.25](https://github.com/rokucommunity/brighterscript/blob/master/CHANGELOG.md#06525---2024-03-07). Notable changes since 0.65.23:
- Support when tokens have null ranges ([brighterscript#1072](https://github.com/rokucommunity/brighterscript/pull/1072))
- Support whitespace in conditional compile keywords ([brighterscript#1090](https://github.com/rokucommunity/brighterscript/pull/1090))
- Allow negative patterns in diagnostic filters ([brighterscript#1078](https://github.com/rokucommunity/brighterscript/pull/1078))


## [0.8.22](https://github.com/rokucommunity/bslint/compare/v0.8.21...0.8.22) - 2024-07-24
### Changed
- add rule to prevent use of `assocarray` and `array` component fields in xml ([#115](https://github.com/rokucommunity/bslint/pull/115))
Expand Down Expand Up @@ -196,7 +337,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix namespace-relative items ([brighterscript#789](https://github.com/rokucommunity/brighterscript/pull/789))
- Wrap transpiled template strings in parens ([brighterscript#788](https://github.com/rokucommunity/brighterscript/pull/788))
- Simplify the ast range logic ([brighterscript#784](https://github.com/rokucommunity/brighterscript/pull/784))
### Fixed
### Fixed
- do not consider consts as unused variables ([#85](https://github.com/rokucommunity/bslint/pull/85))


Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,14 @@ Default rules:
- `all`: enforce both arguments and return type annotations
- `return`: enforce return type annotations
- `args`: enforce arguments type annotations
- `all-allow-implicit`: enforce argument and return type annotations, but allows arguments with default values to not have an annotation
- `args-allow-implicit`: enforce arguments type annotations, but allows arguments with default values to not have an annotation
- `off`: do not validate (**default**)

- `name-shadowing`: enforces that no two items have the same name (`error | warn | info | off`)

- `type-reassignment`: enforces that a variable is not used to reference multiple types (`error | warn | info | off`)

### Code flow rules

Valid values for the rules severity are: `error | warn | info | off`.
Expand Down
Loading
Loading