-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/elm book elm review (#827)
* Add elm-review and some rules * Add elm-book's elm-review in yarn review * Add elm-review and elm-format actions on elm-book * Fix on-push-action.yml * Change elm-review-action and elm-format-action versions * Fix formatting issue - elm-format on CI works ✅ * Change config for elm-review on elm-book step * Use CLI commands * Fix elm-review errors
- Loading branch information
1 parent
83b5b4d
commit 6f09147
Showing
14 changed files
with
230 additions
and
115 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
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,45 @@ | ||
{ | ||
"type": "application", | ||
"source-directories": [ | ||
"src" | ||
], | ||
"elm-version": "0.19.1", | ||
"dependencies": { | ||
"direct": { | ||
"elm/core": "1.0.5", | ||
"jfmengels/elm-review": "2.9.0", | ||
"jfmengels/elm-review-common": "1.2.2", | ||
"jfmengels/elm-review-debug": "1.0.6", | ||
"jfmengels/elm-review-simplify": "2.0.19", | ||
"jfmengels/elm-review-unused": "1.1.23", | ||
"sparksp/elm-review-camelcase": "1.1.0", | ||
"sparksp/elm-review-imports": "1.0.1", | ||
"stil4m/elm-syntax": "7.2.9", | ||
"truqu/elm-review-nobooleancase": "1.0.0", | ||
"truqu/elm-review-noleftpizza": "2.0.0", | ||
"truqu/elm-review-noredundantconcat": "1.0.0", | ||
"truqu/elm-review-noredundantcons": "1.0.0" | ||
}, | ||
"indirect": { | ||
"elm/html": "1.0.0", | ||
"elm/json": "1.1.3", | ||
"elm/parser": "1.1.0", | ||
"elm/project-metadata-utils": "1.0.2", | ||
"elm/random": "1.0.0", | ||
"elm/time": "1.0.0", | ||
"elm/virtual-dom": "1.0.3", | ||
"elm-community/list-extra": "8.6.0", | ||
"elm-explorations/test": "1.2.2", | ||
"miniBill/elm-unicode": "1.0.2", | ||
"pzp1997/assoc-list": "1.0.0", | ||
"rtfeldman/elm-hex": "1.0.0", | ||
"stil4m/structured-writer": "1.0.3" | ||
} | ||
}, | ||
"test-dependencies": { | ||
"direct": { | ||
"elm-explorations/test": "1.2.2" | ||
}, | ||
"indirect": {} | ||
} | ||
} |
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,54 @@ | ||
module ReviewConfig exposing (config) | ||
|
||
{-| Do not rename the ReviewConfig module or the config function, because | ||
`elm-review` will look for these. | ||
To add packages that contain rules, add them to this review project using | ||
`elm install author/packagename` | ||
when inside the directory containing this file. | ||
-} | ||
|
||
import NoBooleanCase | ||
import NoDebug.Log | ||
import NoDebug.TodoOrToString | ||
import NoExposingEverything | ||
import NoLeftPizza | ||
import NoMissingTypeAnnotation | ||
import NoModuleOnExposedNames | ||
import NoRedundantConcat | ||
import NoRedundantCons | ||
import NoUnused.CustomTypeConstructorArgs | ||
import NoUnused.CustomTypeConstructors | ||
import NoUnused.Dependencies | ||
import NoUnused.Exports | ||
import NoUnused.Modules | ||
import NoUnused.Variables | ||
import Review.Rule as Rule exposing (Rule) | ||
import Simplify | ||
import UseCamelCase | ||
|
||
|
||
config : List Rule | ||
config = | ||
[ NoDebug.Log.rule | ||
, NoDebug.TodoOrToString.rule | ||
, NoUnused.Variables.rule | ||
, NoUnused.Modules.rule | ||
, NoUnused.CustomTypeConstructors.rule [] | ||
, NoUnused.CustomTypeConstructorArgs.rule | ||
, NoUnused.Dependencies.rule | ||
, NoUnused.Exports.rule | ||
, NoBooleanCase.rule | ||
, NoExposingEverything.rule | ||
, NoMissingTypeAnnotation.rule | ||
, Simplify.rule Simplify.defaults | ||
, NoLeftPizza.rule NoLeftPizza.Redundant | ||
, UseCamelCase.rule UseCamelCase.default | ||
, NoModuleOnExposedNames.rule | ||
, NoRedundantConcat.rule | ||
, NoRedundantCons.rule | ||
] | ||
|> List.map (Rule.ignoreErrorsForDirectories [ "../src/elm" ]) |
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
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
Oops, something went wrong.