summary refs log tree commit diff stats
path: root/compiler/linter.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #20397; fixes stylecheck regression (#20398)ringabout2022-09-211-0/+1
| | | | | * fixes #20397; fixes stylecheck * add testcase
* Change `styleCheck` to ignore foreign packages (#19822)quantimnot2022-07-141-29/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change `styleCheck` to ignore foreign packages * Symbols from foreign packages are now ignored. * Fixed `styleCheck` violations in `compiler` package. * Added symbol ownership to custom annotation pragmas. * Minor refactors to cleanup style check callsites. * Minor internal documentation of reasons why a symbol isn't checked. Style violations were fixed in the compiler after thet were exposed by the changes. The compiler wouldn't compile otherwise. Symbol ownership for custom pragma annotations is needed for checking the annotation's style. A NPE was raised otherwise. Fixes #10201 See also nim-lang/RFCs#456 * Fix a misunderstanding about excluding field style checks I had refactored the callsites of `styleCheckUse` to apply the DRY principle, but I misunderstood the field access handling in a template as a general case. This corrects it. * Fix some `styleCheck` violations in `compiler/evalffi` The violations were exposed in CI when the compiler was built with libffi. * Removed some uneeded transitionary code * Add changelog entry Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* add astmsgs; add `declared in` msg for usage lint errors (#17961)Timothee Cour2021-05-081-3/+4
| | | | | | | | | * add astmsgs; add `declared in` msg for usage lint errors * fix test * fix tests/tools/tlinter.nim * std prefix
* fixes #15848 [backport:1.2] (#17959)Andreas Rumpf2021-05-071-1/+1
|
* iterable[T] (#17196)Timothee Cour2021-04-111-1/+1
| | | | | | | | * fix failing test toSeq in manual which now works * changelog * reject proc fn(a: iterable) * add iterable to spec * remove MCS/UFCS limitation that now works
* nnkArglist => nnkArgList + special case stylecheck:error (#17529)Timothee Cour2021-03-271-3/+5
| | | | | * nnkArglist => nnkArgList * special case stylecheck:error
* fixes #17060 (#17083)Andreas Rumpf2021-02-181-1/+3
|
* Use modern enums in compiler (#15775)cooldome2020-11-021-1/+1
|
* Big compiler Cleanup (#14777)Clyybber2020-08-281-12/+4
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-3/+2
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* introduce csize_t instead of fixing csize (#12497)Arne Döring2019-10-311-1/+1
|
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-4/+2
|
* makes --styleCheck:error the default for the Nim compiler itselfAraq2019-07-141-5/+14
|
* minor style changesAraq2019-07-101-1/+1
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-7/+1
| | | | --styleCheck:error
* linter: refactoringsAraq2019-07-101-53/+4
|
* nim styleChecker: implemented all the missing features (bugfix)Araq2019-07-101-43/+53
|
* Nim style checker: document the switch; fixes #9564Araq2018-10-301-11/+15
|
* compiler refactoring; use typesafe path handing; docgen: render symbols ↵Andreas Rumpf2018-09-071-3/+3
| | | | between modules
* implements a --nep1:on switch to make the compiler enforce the naming ↵Andreas Rumpf2018-06-131-0/+176
conventions outlined in NEP-1